diff --git a/vim-8.0-copy-paste.patch b/0001-vim-8.0-copy-paste.patch similarity index 100% rename from vim-8.0-copy-paste.patch rename to 0001-vim-8.0-copy-paste.patch diff --git a/vim.spec b/vim.spec index 2032b88ef842e2d49001b777d24a247ea4e49919..9eebce681f60918e7916378754182995ee7e6c6a 100644 --- a/vim.spec +++ b/vim.spec @@ -1,8 +1,12 @@ -%define anolis_release 4 +%define anolis_release 5 + %bcond_without gui %bcond_with default_editor %bcond_with libsodium_crypt +%global data_vimdir %{_datadir}/%{name}/%{vimdir} +%global data_dir %{_datadir}/%{name} + %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 %endif @@ -29,13 +33,13 @@ %define patchlevel 1267 -Summary: The VIM editor -URL: http://www.vim.org/ Name: vim +Summary: Vim - the ubiquitous text editor Version: %{baseversion} Release: %{anolis_release}%{?dist} Epoch: 2 License: Vim and MIT +URL: http://www.vim.org/ Source0: https://github.com/vim/vim/archive/refs/tags/v%{baseversion}.%{patchlevel}.tar.gz Source1: virc Source2: vimrc @@ -51,143 +55,120 @@ Source11: vim-default-editor.fish Source12: view_wrapper Source13: vi_wrapper -Patch1: vim-8.0-copy-paste.patch +Patch0001: 0001-vim-8.0-copy-paste.patch -# uses autoconf in spec file -BuildRequires: autoconf +BuildRequires: autoconf gcc glibc-gconv-extra make +BuildRequires: gettext gpm-devel libacl-devel +BuildRequires: ncurses-devel python3-devel +BuildRequires: perl-devel perl-generators perl(ExtUtils::Embed) perl(ExtUtils::ParseXS) %if %{desktop_file} -# for /usr/bin/desktop-file-install BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} Requires: desktop-file-utils %endif -# gcc is no longer in buildroot by default -BuildRequires: gcc -# for translations -BuildRequires: gettext - -BuildRequires: glibc-gconv-extra - -# for mouse support in console -BuildRequires: gpm-devel -# for setting ACL on created files -BuildRequires: libacl-devel - -# selinux support %if %{WITH_SELINUX} BuildRequires: libselinux-devel %endif -# for xchacha20 encryption %if %{with libsodium_crypt} BuildRequires: libsodium-devel %endif -# for lua plugin %if "%{withlua}" == "1" BuildRequires: lua-devel %endif -# uses make -BuildRequires: make -# screen handling library -BuildRequires: ncurses-devel -# for perl plugin -BuildRequires: perl-devel -BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::Embed) -BuildRequires: perl(ExtUtils::ParseXS) -# for python plugin -BuildRequires: python3-devel - -# for ruby plugin %if "%{withruby}" == "1" -BuildRequires: ruby -BuildRequires: ruby-devel +BuildRequires: ruby ruby-devel %endif - %description -VIM (VIsual editor iMproved) is an updated and improved version of the -vi editor. Vi was the first real screen-based editor for UNIX, and is -still very popular. VIM improves on vi by adding new features: -multiple windows, multi-level undo, block highlighting and more. +Vim is a highly configurable text editor built to enable efficient +text editing. It is an improved version of the vi editor distributed +with most UNIX systems. Vim is often called a "programmer's editor," +and so useful for programming that many consider it an entire IDE. It's +not just for programmers, though. Vim is perfect for all kinds of text +editing, from composing email to editing configuration files. -%package doc -Summary: Documentation files for %{name} -Requires: vim-common = %{epoch}:%{version}-%{release} -BuildArch: noarch +Despite what the above comic suggests, Vim can be configured to work in +a very simple (Notepad-like) way, called evim or Easy Vim. + +Vim isn't an editor designed to hold its users' hands. It is a tool, +the use of which must be learned. Vim isn't a word processor. Although it +can display text with various forms of highlighting and formatting, it isn't +there to provide WYSIWYG editing of typeset documents. +(It is great for editing TeX, though.) -%description doc -The %{name}-doc package contains documentation files for %{name}. %package common Summary: The common files needed by any version of the VIM editor -Conflicts: %{name}-minimal < %{epoch}:9.0 -# shared files between common and minimal -Requires: %{name}-data = %{epoch}:%{version}-%{release} +Requires: %{name}-data = %{EVR} Requires: %{name}-filesystem +Conflicts: %{name}-minimal < %{epoch}:9.0 %description common -VIM (VIsual editor iMproved) is an updated and improved version of the -vi editor. Vi was the first real screen-based editor for UNIX, and is -still very popular. VIM improves on vi by adding new features: -multiple windows, multi-level undo, block highlighting and more. The -vim-common package contains files which every VIM binary will need in -order to run. - -If you are installing vim-enhanced or vim-X11, you'll also need -to install the vim-common package. +Vim-common is a package that provides common files for the Vim editor. +These files include documentation, syntax highlighting, and other configuration +files. It is a necessary package to install if you want to use Vim on your system. +Vim-common is typically installed alongside the Vim editor, which is a highly +configurable and powerful text editor that is popular among developers and system +administrators. If wanting the vim-enhanced or vim-X11, you also need to install +the vim-common package. %package spell Summary: The dictionaries for spell checking. This package is optional -Requires: vim-common = %{epoch}:%{version}-%{release} +Requires: vim-common = %{EVR} %description spell -This subpackage contains dictionaries for vim spell checking in -many different languages. +Vim-spell is a package for the Vim editor that provides spell-checking +functionality. It includes a dictionary of words that Vim can use to +check the spelling of a document, as well as commands for adding and +removing words from the dictionary. With Vim-spell, you can easily identify +and correct spelling errors in your documents, making it a valuable tool +for writers, editors, and anyone who works with text. Vim-spell is typically +installed as a plugin or extension for the Vim editor and can be enabled +or disabled as needed. %package minimal Summary: A minimal version of the VIM editor -Conflicts: %{name}-common < %{epoch}:9.0 -Conflicts: vim-wrappers < 2:9.0 -Obsoletes: vim-wrappers < 2:9.0 +Obsoletes: %{name}-wrappers < 2:9.0 Provides: vi Provides: %{_bindir}/vi -# shared files between common and minimal -Requires: %{name}-data = %{epoch}:%{version}-%{release} +Requires: %{name}-data = %{EVR} +Conflicts: %{name}-common < %{epoch}:9.0 +Conflicts: %{name}-wrappers < 2:9.0 %description minimal -VIM (VIsual editor iMproved) is an updated and improved version of the -vi editor. Vi was the first real screen-based editor for UNIX, and is -still very popular. VIM improves on vi by adding new features: -multiple windows, multi-level undo, block highlighting and more. The -vim-minimal package includes a minimal version of VIM, providing -the commands vi, view, ex, rvi, and rview. NOTE: The online help is -only available when the vim-common package is installed. +Vim-minimal is a stripped-down version of the Vim editor, designed to provide only +the most essential features and functionality. It is designed for users who prefer +a more lightweight and streamlined text editor, without the additional features and +plugins that can sometimes clutter the interface and slow down performance. + +Vim-minimal typically comes with a minimal set of plugins and configuration files, +allowing users to customize the editor to their specific needs. Despite its minimal +design, Vim-minimal still includes many of the core features of the Vim editor, +such as syntax highlighting, multiple buffers, and powerful search and replace functionality. + +Overall, Vim-minimal is a great choice for users who want a fast and efficient text +editor without all the bells and whistles of a full-featured IDE. %package enhanced Summary: A version of the VIM editor which includes recent enhancements -Conflicts: vim-wrappers < 2:9.0 -# vim bundles libvterm, which is used during build - so we need to provide -# bundled libvterm for catching possible libvterm CVEs -Provides: bundled(libvterm) -Provides: vim +Provides: %{name} Provides: %{_bindir}/mergetool -Provides: %{_bindir}/vim -Requires: vim-common = %{epoch}:%{version}-%{release} -# required for vimtutor (#395371) +Provides: %{_bindir}/%{name} +Requires: %{name}-common = %{EVR} Requires: which -# suggest python3, python2, lua, ruby and perl packages because of their -# embedded functionality in Vim/GVim +Provides: bundled(libvterm) +Conflicts: vim-wrappers < 2:9.0 %if "%{withlua}" == "1" Suggests: lua-libs %endif -Suggests: perl-devel Suggests: python3 Suggests: python3-libs +Suggests: perl-devel %if "%{withruby}" == "1" Suggests: ruby @@ -195,17 +176,14 @@ Suggests: ruby-libs %endif %description enhanced -VIM (VIsual editor iMproved) is an updated and improved version of the -vi editor. Vi was the first real screen-based editor for UNIX, and is -still very popular. VIM improves on vi by adding new features: -multiple windows, multi-level undo, block highlighting and more. The -vim-enhanced package contains a version of VIM with extra, recently -introduced features like Python and Perl interpreters. - -Install the vim-enhanced package if you'd like to use a version of the -VIM editor which includes recently added enhancements like -interpreters for the Python and Perl scripting languages. You'll also -need to install the vim-common package. +Vim-enhanced is an enhanced version of the Vim editor that includes additional +features and functionality. It is designed to provide more advanced editing +capabilities than the standard version of Vim, making it a popular choice +among developers and power users. Overall, Vim-enhanced is a great choice for +users who require advanced editing capabilities and want to customize their +editor with a wide range of plugins and extensions. However, it may not be the +best choice for users who prefer a more minimalistic or lightweight approach +to text editing. %package filesystem Summary: VIM filesystem layout @@ -218,44 +196,22 @@ packages that add vim files, p.e. additional syntax files or filetypes. %if %{with gui} %package X11 Summary: The VIM version of the vi editor for the X Window System - GVim -# devel of libICE, gtk3, libSM, libX11, libXpm and libXt are needed in buildroot -# so configure script can have correct macros enabled for GUI (#1603272) -# generic gnome toolkit for graphical support -BuildRequires: gtk3-devel -# inter-client exchange library - for X session management protocol -BuildRequires: libICE-devel -# X session management library -BuildRequires: libSM-devel -# core X11 protocol client library -BuildRequires: libX11-devel -# X PixMap library for X11 - for creating images in X PixMap format -BuildRequires: libXpm-devel -# X Toolkit Intrinsics library - working with widgets? -BuildRequires: libXt-devel -# for testing validity of appdata file -BuildRequires: libappstream-glib -# for sound support -BuildRequires: libcanberra-devel +BuildRequires: gtk3-devel libICE-devel libSM-devel libX11-devel libXpm-devel +BuildRequires: libXt-devel libappstream-glib libcanberra-devel -Provides: gvim Provides: %{_bindir}/mergetool Provides: %{_bindir}/gvim -# GVIM graphics are based on GTK3 +Provides: gvim Requires: gtk3 -# needed for icons (#226526) Requires: hicolor-icon-theme -# for getting/setting extended attributes - they are pairs (name:value) -# from inodes (files, dirs etc.) Requires: libattr >= 2.4 -Requires: vim-common = %{epoch}:%{version}-%{release} -# suggest python3, python2, lua, ruby and perl packages because of their -# embedded functionality in Vim/GVim +Requires: %{name}-common = %{EVR} %if "%{withlua}" == "1" Suggests: lua-libs %endif -Suggests: perl-devel Suggests: python3 +Suggests: perl-devel Suggests: python3-libs %if "%{withruby}" == "1" @@ -264,24 +220,23 @@ Suggests: ruby-libs %endif %description X11 -VIM (VIsual editor iMproved) is an updated and improved version of the -vi editor. Vi was the first real screen-based editor for UNIX, and is -still very popular. VIM improves on vi by adding new features: -multiple windows, multi-level undo, block highlighting and -more. VIM-X11 is a version of the VIM editor which will run within the -X Window System. If you install this package, you can run VIM as an X -application with a full GUI interface and mouse support by command gvim. - -Install the vim-X11 package if you'd like to try out a version of vi -with graphics and mouse capabilities. You'll also need to install the -vim-common package. +When it comes to Vim, X11 allows for the use of Vim in a graphical environment, +rather than a pure text-only console. This means that Vim can be run in a terminal +emulator window, where it can take advantage of the windowing system's features, +such as window resizing and copy/paste functionality. + +Using Vim in an X11 environment can also provide access to additional features, +such as syntax highlighting and mouse support, which may not be available in a +standard terminal environment. Overall, using Vim in an X11 environment can provide +a more user-friendly and feature-rich experience, making it a popular choice among +developers and power users. %endif %package data Summary: Shared data for Vi and Vim BuildArch: noarch -Conflicts: %{name}-common < 2:9.0 Conflicts: %{name}-filesystem < 2:9.0 +Conflicts: %{name}-common < 2:9.0 Conflicts: %{name}-minimal < 2:9.0 %description data @@ -292,22 +247,28 @@ shared between vim-minimal and vim-common packages. %package default-editor Summary: Set vim as the default editor BuildArch: noarch -Conflicts: system-default-editor Conflicts: nano-default-editor < 5.3-3 Provides: system-default-editor Requires: vim-enhanced +Conflicts: system-default-editor %description default-editor This subpackage contains files needed to set Vim as the default editor. %endif +%package doc +Summary: Documentation files for %{name} +Requires: vim-common = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep %setup -q -b 0 -n vim-%{baseversion}.%{patchlevel} %patch1 -p1 -# fix rogue dependencies from sample code -chmod -x runtime/tools/mve.awk +%{__chmod} -x runtime/tools/mve.awk perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk @@ -320,57 +281,30 @@ export CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOU cp -f os_unix.h os_unix.h.save -# Configure options: -# --enable-fail-if-missing - we need to fail if configure options aren't satisfied -# --with-features - for setting how big amount of features is enabled -# --enable-multibyte - enabling multibyte editing support - for editing files in languages, which one character -# cannot be represented by one byte - Asian languages, Unicode -# --disable-netbeans - disabling socket interface for integrating Vim into NetBeans IDE -# --enable-selinux - enabling selinux support -# --enable-Ninterp - enabling internal interpreter -# --with-x - yes if we want X11 support (graphical Vim for X11) -# --with-tlib - which terminal library to use -# --disable-gpm - disabling support for General Purpose Mouse - Linux mouse daemon - perl -pi -e "s/vimrc/virc/" os_unix.h -%configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/virc\"'" \ - --prefix=%{_prefix} --with-features=small --with-x=no \ - --enable-multibyte \ - --disable-netbeans \ +%configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/virc\"'" --prefix=%{_prefix} --with-features=small --with-x=no \ + --enable-multibyte --disable-netbeans \ %if %{WITH_SELINUX} --enable-selinux \ %else --disable-selinux \ %endif - --disable-pythoninterp --disable-perlinterp --disable-tclinterp \ - --with-tlib=ncurses --enable-gui=no --disable-gpm --exec-prefix=/ \ - --with-compiledby="" \ - --with-modified-by="" \ - --enable-fail-if-missing \ - --disable-canberra \ - --disable-libsodium + --disable-pythoninterp --disable-perlinterp --disable-tclinterp --with-tlib=ncurses --enable-gui=no --disable-gpm --exec-prefix=/ \ + --with-compiledby="" --with-modified-by="" --enable-fail-if-missing \ + --disable-canberra --disable-libsodium %make_build -cp vim minimal-vim -make clean +%{__cp} vim minimal-vim +%{__make} clean -mv -f os_unix.h.save os_unix.h +%{__mv} -f os_unix.h.save os_unix.h %if %{with gui} -# More configure options: -# --enable-xim - enabling X Input Method - international input module for X, -# it is for multibyte languages in Vim with X -# --enable-termtruecolor - use terminal with true colors %configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/vimrc\"'" \ - --with-features=huge \ - --enable-python3interp=dynamic \ - --enable-perlinterp=dynamic \ - --disable-tclinterp --with-x=yes \ - --enable-xim --enable-multibyte \ - --with-tlib=ncurses \ - --enable-gtk3-check --enable-gui=gtk3 \ - --with-compiledby="" --enable-cscope \ + --with-features=huge --enable-python3interp=dynamic --enable-perlinterp=dynamic \ + --disable-tclinterp --with-x=yes --enable-xim --enable-multibyte --with-tlib=ncurses \ + --enable-gtk3-check --enable-gui=gtk3 --with-compiledby="" --enable-cscope \ --with-modified-by="" \ %if "%{withnetbeans}" == "1" --enable-netbeans \ @@ -397,24 +331,18 @@ mv -f os_unix.h.save os_unix.h %else --disable-libsodium \ %endif - --enable-fail-if-missing \ - --enable-canberra + --enable-fail-if-missing --enable-canberra %make_build -cp vim gvim -make clean +%{__cp} vim gvim +%{__make} clean %endif %configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/vimrc\"'" \ - --prefix=%{_prefix} --with-features=huge \ - --enable-python3interp=dynamic \ - --enable-perlinterp=dynamic \ - --disable-tclinterp \ - --with-x=no \ - --enable-gui=no --exec-prefix=%{_prefix} --enable-multibyte \ - --enable-cscope --with-modified-by="" \ - --with-tlib=ncurses \ - --with-compiledby="" \ + --prefix=%{_prefix} --with-features=huge --enable-python3interp=dynamic \ + --enable-perlinterp=dynamic --disable-tclinterp --with-x=no \ + --enable-gui=no --exec-prefix=%{_prefix} --enable-multibyte --enable-cscope --with-modified-by="" \ + --with-tlib=ncurses --with-compiledby="" \ %if "%{withnetbeans}" == "1" --enable-netbeans \ %else @@ -444,53 +372,41 @@ make clean --disable-canberra %make_build -cp vim enhanced-vim +%{__cp} %{name} enhanced-vim %install -mkdir -p %{buildroot}/%{_bindir} -mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} -mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} -cp -f %{SOURCE7} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec -cp runtime/doc/uganda.txt LICENSE -# Those aren't Linux info files but some binary files for Amiga: -rm -f README*.info +%{__mkdir} -p %{buildroot}/%{_bindir} +%{__mkdir} -p %{buildroot}/%{data_dir}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} +%{__mkdir} -p %{buildroot}/%{data_dir}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} +%{__cp} -f %{SOURCE7} %{buildroot}/%{data_dir}/vimfiles/template.spec +%{__cp} runtime/doc/uganda.txt LICENSE + +%{__rm} -f README*.info cd src -# Adding STRIP=/bin/true, because Vim wants to strip the binaries by himself -# and put the stripped files into correct dirs. Build system (koji/brew) -# does it for us, so there is no need to do it in Vim %make_install BINDIR=%{_bindir} STRIP=/bin/true -# make install creates vim binary and view symlink, they will be wrappers -# so remove them here -rm -f %{buildroot}%{_bindir}/{vim,view} -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps -mkdir -p %{buildroot}%{_libexecdir} -install -m755 minimal-vim %{buildroot}%{_libexecdir}/vi -install -m755 enhanced-vim %{buildroot}%{_bindir}/vim -install -m755 %{SOURCE12} %{buildroot}%{_bindir}/view -install -m755 %{SOURCE13} %{buildroot}%{_bindir}/vi +%{__rm} -f %{buildroot}%{_bindir}/{vim,view} +%{__mkdir} -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps +%{__mkdir} -p %{buildroot}%{_libexecdir} +%{__install} -m755 minimal-vim %{buildroot}%{_libexecdir}/vi +%{__install} -m755 enhanced-vim %{buildroot}%{_bindir}/vim +%{__install} -m755 %{SOURCE12} %{buildroot}%{_bindir}/view +%{__install} -m755 %{SOURCE13} %{buildroot}%{_bindir}/vi %if %{with gui} make installgtutorbin DESTDIR=%{buildroot} BINDIR=%{_bindir} -install -m755 gvim %{buildroot}%{_bindir}/gvim -install -p -m644 %{SOURCE3} \ +%{__install} -m755 gvim %{buildroot}%{_bindir}/gvim +%{__install} -p -m644 %{SOURCE3} \ %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gvim.png -install -p -m644 %{SOURCE4} \ +%{__install} -p -m644 %{SOURCE4} \ %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gvim.png -install -p -m644 %{SOURCE5} \ +%{__install} -p -m644 %{SOURCE5} \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gvim.png -install -p -m644 %{SOURCE6} \ +%{__install} -p -m644 %{SOURCE6} \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png -# Register as an application to be visible in the software center -# -# NOTE: It would be *awesome* if this file was maintained by the upstream -# project, translated and installed into the right place during `make install`. -# -# See http://www.freedesktop.org/software/appstream/docs/ for more details. -# -mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo +%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/metainfo cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/gvim.appdata.xml < @@ -504,17 +420,19 @@ SentUpstream: 2014-05-22 Vim

- Vim is an advanced text editor that seeks to provide the power of the - de-facto Unix editor 'Vi', with a more complete feature set. - It's useful whether you're already using vi or using a different editor. + Vim is a greatly improved version of the good old UNIX editor Vi. + Many new features have been added: multi-level undo, syntax highlighting, + command line history, on-line help, spell checking, filename completion, + block operations, script language, etc. There is also a Graphical User + Interface (GUI) available. Still, Vi compatibility is maintained, those + who have Vi "in the fingers" will feel at home. See runtime/doc/vi_diff.txt + for differences with Vi.

- Vim is a highly configurable text editor built to enable efficient text - editing. - Vim is often called a "programmer's editor," and so useful for programming - that many consider it an entire IDE. It is not just for programmers, though. - Vim is perfect for all kinds of text editing, from composing email to - editing configuration files. + Vim is very useful for editing programs and other plain text files. + All commands are given with normal keyboard characters, so those who can + type with ten fingers can work very fast. Additionally, function keys can + be mapped to commands by the user, and the mouse can be used.

@@ -534,202 +452,189 @@ done echo ".so man1/vimdiff.1" > %{buildroot}/%{_mandir}/man1/gvimdiff.1 echo ".so man1/vimtutor.1" > %{buildroot}/%{_mandir}/man1/gvimtutor.1 %else -# Remove files included in X11 subpackage, but built by default: -rm %{buildroot}/%{_mandir}/man1/evim.* -rm %{buildroot}/%{_datadir}/applications/{vim,gvim}.desktop -rm %{buildroot}/%{_datadir}/icons/{hicolor,locolor}/*/apps/gvim.png +%{__rm} %{buildroot}/%{_mandir}/man1/evim.* +%{__rm} %{buildroot}/%{_datadir}/applications/{vim,gvim}.desktop +%{__rm} %{buildroot}/%{_datadir}/icons/{hicolor,locolor}/*/apps/gvim.png %endif ( cd %{buildroot} - ln -sf %{_libexecdir}/vi .%{_bindir}/rvi - ln -sf %{_libexecdir}/vi .%{_bindir}/rview - ln -sf %{_libexecdir}/vi .%{_bindir}/ex - ln -sf vim .%{_bindir}/rvim - ln -sf vim .%{_bindir}/vimdiff + ln -s -f %{_libexecdir}/vi .%{_bindir}/rview + ln -s -f %{_libexecdir}/vi .%{_bindir}/ex + ln -s -f vim .%{_bindir}/vimdiff + ln -s -f %{_libexecdir}/vi .%{_bindir}/rvi + ln -s -f vim .%{_bindir}/rvim perl -pi -e "s,%{buildroot},," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1 - rm -f .%{_mandir}/man1/rvim.1 + %{__rm} -f .%{_mandir}/man1/rvim.1 cp -p .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vi.1 - ln -sf vi.1 .%{_mandir}/man1/rvi.1 - ln -sf vi.1 .%{_mandir}/man1/ex.1 - ln -sf vi.1 .%{_mandir}/man1/view.1 - ln -sf vi.1 .%{_mandir}/man1/rview.1 - ln -sf vim.1 .%{_mandir}/man1/vimdiff.1 + ln -s -f vi.1 .%{_mandir}/man1/ex.1 + ln -s -f vi.1 .%{_mandir}/man1/view.1 + ln -s -f vim.1 .%{_mandir}/man1/vimdiff.1 + ln -s -f vi.1 .%{_mandir}/man1/rvi.1 + ln -s -f vi.1 .%{_mandir}/man1/rview.1 %if %{with gui} - ln -sf gvim ./%{_bindir}/gview - ln -sf gvim ./%{_bindir}/gex - ln -sf gvim ./%{_bindir}/evim - ln -sf gvim ./%{_bindir}/gvimdiff - ln -sf gvim ./%{_bindir}/vimx + ln -s -f gvim ./%{_bindir}/evim + ln -s -f gvim ./%{_bindir}/gvimdiff + ln -s -f gvim ./%{_bindir}/vimx + ln -s -f gvim ./%{_bindir}/gex + ln -s -f gvim ./%{_bindir}/gview %if "%{desktop_file}" == "1" - desktop-file-install \ - --dir %{buildroot}/%{_datadir}/applications \ - %{buildroot}/%{_datadir}/applications/gvim.desktop - # --add-category "Development;TextEditor;X-Red-Hat-Base" D\ + desktop-file-install --dir %{buildroot}/%{_datadir}/applications %{buildroot}/%{_datadir}/applications/gvim.desktop %else - mkdir -p ./%{_sysconfdir}/X11/applnk/Applications - cp %{buildroot}/%{_datadir}/applications/gvim.desktop ./%{_sysconfdir}/X11/applnk/Applications/gvim.desktop + %{__mkdir} -p ./%{_sysconfdir}/X11/applnk/Applications + cp %{buildroot}/%{_datadir}/applications/gvim.desktop \ + ./%{_sysconfdir}/X11/applnk/Applications/gvim.desktop %endif %endif - # ja_JP.ujis is obsolete, ja_JP.eucJP is recommended. - ( cd ./%{_datadir}/%{name}/%{vimdir}/lang; \ - ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim ) + ( cd ./%{data_vimdir}/lang; ln -s -f menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim ) ) -pushd %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tutor -mkdir conv +pushd %{buildroot}/%{data_vimdir}/tutor +%{__mkdir} conv + iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8 iconv -f CP1252 -t UTF8 tutor.ca > conv/tutor.ca - iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it - #iconv -f CP1253 -t UTF8 tutor.gr > conv/tutor.gr + iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl + iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk iconv -f CP1252 -t UTF8 tutor.fr > conv/tutor.fr iconv -f CP1252 -t UTF8 tutor.es > conv/tutor.es iconv -f CP1252 -t UTF8 tutor.de > conv/tutor.de - #iconv -f CP737 -t UTF8 tutor.gr.cp737 > conv/tutor.gr.cp737 - #iconv -f EUC-JP -t UTF8 tutor.ja.euc > conv/tutor.ja.euc - #iconv -f SJIS -t UTF8 tutor.ja.sjis > conv/tutor.ja.sjis - iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8 iconv -f UTF8 -t UTF8 tutor.ko.utf-8 > conv/tutor.ko.utf-8 iconv -f CP1252 -t UTF8 tutor.no > conv/tutor.no - iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl - iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk iconv -f KOI8R -t UTF8 tutor.ru > conv/tutor.ru iconv -f CP1252 -t UTF8 tutor.sv > conv/tutor.sv - mv -f tutor.ja.euc tutor.ja.sjis tutor.ko.euc tutor.pl.cp1250 tutor.zh.big5 tutor.ru.cp1251 tutor.zh.euc tutor.sr.cp1250 tutor.sr.utf-8 conv/ - rm -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv -mv -f conv/* . + iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it + %{__mv} -f tutor.ja.euc tutor.ja.sjis tutor.ko.euc tutor.pl.cp1250 tutor.zh.big5 tutor.ru.cp1251 tutor.zh.euc tutor.sr.cp1250 tutor.sr.utf-8 conv/ + %{__rm} -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv +%{__mv} -f conv/* . rmdir conv popd -# Dependency cleanups -chmod 644 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/doc/vim2html.pl \ - %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/*.pl \ - %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/vim132 -chmod 644 ../runtime/doc/vim2html.pl +%{__chmod} 644 %{buildroot}/%{data_vimdir}/doc/vim2html.pl \ + %{buildroot}/%{data_vimdir}/tools/*.pl \ + %{buildroot}/%{data_vimdir}/tools/vim132 +%{__chmod} 644 ../runtime/doc/vim2html.pl -mkdir -p %{buildroot}%{_sysconfdir} -install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/virc -install -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/vimrc +%{__mkdir} -p %{buildroot}%{_sysconfdir} +%{__install} -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/virc +%{__install} -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/vimrc %if %{with default_editor} -mkdir -p %{buildroot}/%{_sysconfdir}/profile.d -install -p -m644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.sh -install -p -m644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.csh -mkdir -p %{buildroot}/%{_datadir}/fish/vendor_conf.d/ -install -p -m644 %{SOURCE11} %{buildroot}/%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish -mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/profile.d +%{__install} -p -m644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.sh +%{__install} -p -m644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.csh +%{__mkdir} -p %{buildroot}/%{_datadir}/fish/vendor_conf.d/ +%{__install} -p -m644 %{SOURCE11} %{buildroot}/%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish +%{__mkdir} -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %endif -mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/ -install -p -m644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/macros.d/ +%{__mkdir} -p %{buildroot}%{_rpmconfigdir}/macros.d/ +%{__install} -p -m644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/macros.d/ -(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;) -rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/macros/maze/maze*.c -rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/tools -rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl -rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~ +(cd ../runtime; %{__rm} -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;) +%{__rm} -f %{buildroot}/%{_datadir}/vim/%{vimdir}/macros/maze/maze*.c +%{__rm} -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/tools +%{__rm} -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl +%{__rm} -f %{buildroot}/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~ -# Remove not UTF-8 manpages for i in pl.ISO8859-2 it.ISO8859-1 ru.KOI8-R fr.ISO8859-1 da.ISO8859-1 de.ISO8859-1 tr.ISO8859-9; do - rm -rf %{buildroot}/%{_mandir}/$i + %{__rm} -rf %{buildroot}/%{_mandir}/$i done -# use common man1/ru directory -mv %{buildroot}/%{_mandir}/ru.UTF-8 %{buildroot}/%{_mandir}/ru +mv %{buildroot}/%{_mandir}/ru.UTF-8 \ + %{buildroot}/%{_mandir}/ru -# Remove duplicate man pages for i in fr.UTF-8 it.UTF-8 pl.UTF-8 da.UTF-8 de.UTF-8 tr.UTF-8; do - rm -rf %{buildroot}/%{_mandir}/$i + %{__rm} -rf %{buildroot}/%{_mandir}/$i done -# Install symlink for rvim man page echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man1/rvim.1 -mkdir -p %{buildroot}/%{_mandir}/man5 +%{__mkdir} -p %{buildroot}/%{_mandir}/man5 echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man5/vimrc.5 echo ".so man1/vi.1" > %{buildroot}/%{_mandir}/man5/virc.5 -touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags +touch %{buildroot}/%{data_dir}/vimfiles/doc/tags +%transfiletriggerin common -- %{data_dir}/vimfiles/doc +%{_bindir}/vim -c ":helptags %{data_dir}/vimfiles/doc" -c :q &> /dev/null || : -# Refresh documentation helptags -%transfiletriggerin common -- %{_datadir}/%{name}/vimfiles/doc -%{_bindir}/vim -c ":helptags %{_datadir}/%{name}/vimfiles/doc" -c :q &> /dev/null || : +%transfiletriggerpostun common -- %{data_dir}/vimfiles/doc +> %{data_dir}/vimfiles/doc/tags || : +%{_bindir}/vim -c ":helptags %{data_dir}/vimfiles/doc" -c :q &> /dev/null || : -%transfiletriggerpostun common -- %{_datadir}/%{name}/vimfiles/doc -> %{_datadir}/%{name}/vimfiles/doc/tags || : -%{_bindir}/vim -c ":helptags %{_datadir}/%{name}/vimfiles/doc" -c :q &> /dev/null || : +%generate_compatibility_deps %files common %config(noreplace) %{_sysconfdir}/vimrc %{!?_licensedir:%global license %%doc} %doc runtime/docs -%{_datadir}/%{name}/%{vimdir}/autoload -%{_datadir}/%{name}/%{vimdir}/colors -%{_datadir}/%{name}/%{vimdir}/compiler -%{_datadir}/%{name}/%{vimdir}/pack -%{_datadir}/%{name}/%{vimdir}/doc -%{_datadir}/%{name}/%{vimdir}/*.vim -%exclude %{_datadir}/%{name}/%{vimdir}/defaults.vim -%{_datadir}/%{name}/%{vimdir}/ftplugin -%{_datadir}/%{name}/%{vimdir}/indent -%{_datadir}/%{name}/%{vimdir}/keymap -%{_datadir}/%{name}/%{vimdir}/lang/*.vim -%{_datadir}/%{name}/%{vimdir}/lang/*.txt -%dir %{_datadir}/%{name}/%{vimdir}/lang -%{_datadir}/%{name}/%{vimdir}/macros -%{_datadir}/%{name}/%{vimdir}/plugin -%{_datadir}/%{name}/%{vimdir}/print -%{_datadir}/%{name}/%{vimdir}/syntax -%{_datadir}/%{name}/%{vimdir}/tutor -%{_datadir}/%{name}/%{vimdir}/import/dist/*.vim +%{data_vimdir}/colors +%{data_vimdir}/compiler +%{data_vimdir}/pack +%{data_vimdir}/doc +%{data_vimdir}/*.vim +%exclude %{data_vimdir}/defaults.vim +%{data_vimdir}/ftplugin +%{data_vimdir}/indent +%{data_vimdir}/keymap +%{data_vimdir}/lang/*.vim +%{data_vimdir}/lang/*.txt +%{data_vimdir}/autoload +%dir %{data_vimdir}/lang +%{data_vimdir}/macros +%{data_vimdir}/plugin +%{data_vimdir}/print +%{data_vimdir}/syntax +%{data_vimdir}/tutor +%{data_vimdir}/import/dist/*.vim %if ! %{withvimspell} -%{_datadir}/%{name}/%{vimdir}/spell +%{data_vimdir}/spell %endif -%lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af -%lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca -%lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs -%lang(cs.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/cs.cp1250 -%lang(da) %{_datadir}/%{name}/%{vimdir}/lang/da -%lang(de) %{_datadir}/%{name}/%{vimdir}/lang/de -%lang(en_GB) %{_datadir}/%{name}/%{vimdir}/lang/en_GB -%lang(eo) %{_datadir}/%{name}/%{vimdir}/lang/eo -%lang(es) %{_datadir}/%{name}/%{vimdir}/lang/es -%lang(fi) %{_datadir}/%{name}/%{vimdir}/lang/fi -%lang(fr) %{_datadir}/%{name}/%{vimdir}/lang/fr -%lang(ga) %{_datadir}/%{name}/%{vimdir}/lang/ga -%lang(it) %{_datadir}/%{name}/%{vimdir}/lang/it -%lang(ja) %{_datadir}/%{name}/%{vimdir}/lang/ja -%lang(ja.euc-jp) %{_datadir}/%{name}/%{vimdir}/lang/ja.euc-jp -%lang(ja.sjis) %{_datadir}/%{name}/%{vimdir}/lang/ja.sjis -%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko -%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko.UTF-8 -%lang(lv) %{_datadir}/%{name}/%{vimdir}/lang/lv -%lang(nb) %{_datadir}/%{name}/%{vimdir}/lang/nb -%lang(nl) %{_datadir}/%{name}/%{vimdir}/lang/nl -%lang(no) %{_datadir}/%{name}/%{vimdir}/lang/no -%lang(pl) %{_datadir}/%{name}/%{vimdir}/lang/pl -%lang(pl.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/pl.UTF-8 -%lang(pl.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/pl.cp1250 -%lang(pt_BR) %{_datadir}/%{name}/%{vimdir}/lang/pt_BR -%lang(ru) %{_datadir}/%{name}/%{vimdir}/lang/ru -%lang(ru.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/ru.cp1251 -%lang(sk) %{_datadir}/%{name}/%{vimdir}/lang/sk -%lang(sk.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/sk.cp1250 -%lang(sr) %{_datadir}/%{name}/%{vimdir}/lang/sr -%lang(sv) %{_datadir}/%{name}/%{vimdir}/lang/sv -%lang(tr) %{_datadir}/%{name}/%{vimdir}/lang/tr -%lang(uk) %{_datadir}/%{name}/%{vimdir}/lang/uk -%lang(uk.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/uk.cp1251 -%lang(vi) %{_datadir}/%{name}/%{vimdir}/lang/vi -%lang(zh_CN) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN -%lang(zh_CN.cp936) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.cp936 -%lang(zh_TW) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW -%lang(zh_CN.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.UTF-8 -%lang(zh_TW.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW.UTF-8 +%lang(af) %{data_vimdir}/lang/af +%lang(ca) %{data_vimdir}/lang/ca +%lang(cs) %{data_vimdir}/lang/cs +%lang(cs.cp1250) %{data_vimdir}/lang/cs.cp1250 +%lang(da) %{data_vimdir}/lang/da +%lang(de) %{data_vimdir}/lang/de +%lang(en_GB) %{data_vimdir}/lang/en_GB +%lang(eo) %{data_vimdir}/lang/eo +%lang(es) %{data_vimdir}/lang/es +%lang(fi) %{data_vimdir}/lang/fi +%lang(fr) %{data_vimdir}/lang/fr +%lang(ga) %{data_vimdir}/lang/ga +%lang(it) %{data_vimdir}/lang/it +%lang(ja) %{data_vimdir}/lang/ja +%lang(ja.euc-jp) %{data_vimdir}/lang/ja.euc-jp +%lang(ja.sjis) %{data_vimdir}/lang/ja.sjis +%lang(ko) %{data_vimdir}/lang/ko +%lang(ko) %{data_vimdir}/lang/ko.UTF-8 +%lang(lv) %{data_vimdir}/lang/lv +%lang(nb) %{data_vimdir}/lang/nb +%lang(nl) %{data_vimdir}/lang/nl +%lang(no) %{data_vimdir}/lang/no +%lang(pl) %{data_vimdir}/lang/pl +%lang(pl.UTF-8) %{data_vimdir}/lang/pl.UTF-8 +%lang(pl.cp1250) %{data_vimdir}/lang/pl.cp1250 +%lang(pt_BR) %{data_vimdir}/lang/pt_BR +%lang(ru) %{data_vimdir}/lang/ru +%lang(ru.cp1251) %{data_vimdir}/lang/ru.cp1251 +%lang(sk) %{data_vimdir}/lang/sk +%lang(sk.cp1250) %{data_vimdir}/lang/sk.cp1250 +%lang(sr) %{data_vimdir}/lang/sr +%lang(sv) %{data_vimdir}/lang/sv +%lang(tr) %{data_vimdir}/lang/tr +%lang(uk) %{data_vimdir}/lang/uk +%lang(uk.cp1251) %{data_vimdir}/lang/uk.cp1251 +%lang(vi) %{data_vimdir}/lang/vi +%lang(zh_CN) %{data_vimdir}/lang/zh_CN +%lang(zh_CN.cp936) %{data_vimdir}/lang/zh_CN.cp936 +%lang(zh_TW) %{data_vimdir}/lang/zh_TW +%lang(zh_CN.UTF-8) %{data_vimdir}/lang/zh_CN.UTF-8 +%lang(zh_TW.UTF-8) %{data_vimdir}/lang/zh_TW.UTF-8 /%{_bindir}/xxd %{_mandir}/man1/rvim.* %{_mandir}/man1/vim.* @@ -759,59 +664,59 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %if %{withvimspell} %files spell -%dir %{_datadir}/%{name}/%{vimdir}/spell -%{_datadir}/%{name}/vim70/spell/cleanadd.vim -%lang(af) %{_datadir}/%{name}/%{vimdir}/spell/af.* -%lang(am) %{_datadir}/%{name}/%{vimdir}/spell/am.* -%lang(bg) %{_datadir}/%{name}/%{vimdir}/spell/bg.* -%lang(ca) %{_datadir}/%{name}/%{vimdir}/spell/ca.* -%lang(cs) %{_datadir}/%{name}/%{vimdir}/spell/cs.* -%lang(cy) %{_datadir}/%{name}/%{vimdir}/spell/cy.* -%lang(da) %{_datadir}/%{name}/%{vimdir}/spell/da.* -%lang(de) %{_datadir}/%{name}/%{vimdir}/spell/de.* -%lang(el) %{_datadir}/%{name}/%{vimdir}/spell/el.* -%lang(en) %{_datadir}/%{name}/%{vimdir}/spell/en.* -%lang(eo) %{_datadir}/%{name}/%{vimdir}/spell/eo.* -%lang(es) %{_datadir}/%{name}/%{vimdir}/spell/es.* -%lang(fo) %{_datadir}/%{name}/%{vimdir}/spell/fo.* -%lang(fr) %{_datadir}/%{name}/%{vimdir}/spell/fr.* -%lang(ga) %{_datadir}/%{name}/%{vimdir}/spell/ga.* -%lang(gd) %{_datadir}/%{name}/%{vimdir}/spell/gd.* -%lang(gl) %{_datadir}/%{name}/%{vimdir}/spell/gl.* -%lang(he) %{_datadir}/%{name}/%{vimdir}/spell/he.* -%lang(hr) %{_datadir}/%{name}/%{vimdir}/spell/hr.* -%lang(hu) %{_datadir}/%{name}/%{vimdir}/spell/hu.* -%lang(id) %{_datadir}/%{name}/%{vimdir}/spell/id.* -%lang(it) %{_datadir}/%{name}/%{vimdir}/spell/it.* -%lang(ku) %{_datadir}/%{name}/%{vimdir}/spell/ku.* -%lang(la) %{_datadir}/%{name}/%{vimdir}/spell/la.* -%lang(lt) %{_datadir}/%{name}/%{vimdir}/spell/lt.* -%lang(lv) %{_datadir}/%{name}/%{vimdir}/spell/lv.* -%lang(mg) %{_datadir}/%{name}/%{vimdir}/spell/mg.* -%lang(mi) %{_datadir}/%{name}/%{vimdir}/spell/mi.* -%lang(ms) %{_datadir}/%{name}/%{vimdir}/spell/ms.* -%lang(nb) %{_datadir}/%{name}/%{vimdir}/spell/nb.* -%lang(nl) %{_datadir}/%{name}/%{vimdir}/spell/nl.* -%lang(nn) %{_datadir}/%{name}/%{vimdir}/spell/nn.* -%lang(ny) %{_datadir}/%{name}/%{vimdir}/spell/ny.* -%lang(pl) %{_datadir}/%{name}/%{vimdir}/spell/pl.* -%lang(pt) %{_datadir}/%{name}/%{vimdir}/spell/pt.* -%lang(ro) %{_datadir}/%{name}/%{vimdir}/spell/ro.* -%lang(ru) %{_datadir}/%{name}/%{vimdir}/spell/ru.* -%lang(rw) %{_datadir}/%{name}/%{vimdir}/spell/rw.* -%lang(sk) %{_datadir}/%{name}/%{vimdir}/spell/sk.* -%lang(sl) %{_datadir}/%{name}/%{vimdir}/spell/sl.* -%lang(sr) %{_datadir}/%{name}/%{vimdir}/spell/sr.* -%lang(sv) %{_datadir}/%{name}/%{vimdir}/spell/sv.* -%lang(sw) %{_datadir}/%{name}/%{vimdir}/spell/sw.* -%lang(tet) %{_datadir}/%{name}/%{vimdir}/spell/tet.* -%lang(th) %{_datadir}/%{name}/%{vimdir}/spell/th.* -%lang(tl) %{_datadir}/%{name}/%{vimdir}/spell/tl.* -%lang(tn) %{_datadir}/%{name}/%{vimdir}/spell/tn.* -%lang(uk) %{_datadir}/%{name}/%{vimdir}/spell/uk.* -%lang(yi) %{_datadir}/%{name}/%{vimdir}/spell/yi.* -%lang(yi-tr) %{_datadir}/%{name}/%{vimdir}/spell/yi-tr.* -%lang(zu) %{_datadir}/%{name}/%{vimdir}/spell/zu.* +%dir %{data_vimdir}/spell +%{data_dir}/vim70/spell/cleanadd.vim +%lang(af) %{data_vimdir}/spell/af.* +%lang(am) %{data_vimdir}/spell/am.* +%lang(bg) %{data_vimdir}/spell/bg.* +%lang(ca) %{data_vimdir}/spell/ca.* +%lang(cs) %{data_vimdir}/spell/cs.* +%lang(cy) %{data_vimdir}/spell/cy.* +%lang(da) %{data_vimdir}/spell/da.* +%lang(de) %{data_vimdir}/spell/de.* +%lang(el) %{data_vimdir}/spell/el.* +%lang(en) %{data_vimdir}/spell/en.* +%lang(eo) %{data_vimdir}/spell/eo.* +%lang(es) %{data_vimdir}/spell/es.* +%lang(fo) %{data_vimdir}/spell/fo.* +%lang(fr) %{data_vimdir}/spell/fr.* +%lang(ga) %{data_vimdir}/spell/ga.* +%lang(gd) %{data_vimdir}/spell/gd.* +%lang(gl) %{data_vimdir}/spell/gl.* +%lang(he) %{data_vimdir}/spell/he.* +%lang(hr) %{data_vimdir}/spell/hr.* +%lang(hu) %{data_vimdir}/spell/hu.* +%lang(id) %{data_vimdir}/spell/id.* +%lang(it) %{data_vimdir}/spell/it.* +%lang(ku) %{data_vimdir}/spell/ku.* +%lang(la) %{data_vimdir}/spell/la.* +%lang(lt) %{data_vimdir}/spell/lt.* +%lang(lv) %{data_vimdir}/spell/lv.* +%lang(mg) %{data_vimdir}/spell/mg.* +%lang(mi) %{data_vimdir}/spell/mi.* +%lang(ms) %{data_vimdir}/spell/ms.* +%lang(nb) %{data_vimdir}/spell/nb.* +%lang(nl) %{data_vimdir}/spell/nl.* +%lang(nn) %{data_vimdir}/spell/nn.* +%lang(ny) %{data_vimdir}/spell/ny.* +%lang(pl) %{data_vimdir}/spell/pl.* +%lang(pt) %{data_vimdir}/spell/pt.* +%lang(ro) %{data_vimdir}/spell/ro.* +%lang(ru) %{data_vimdir}/spell/ru.* +%lang(rw) %{data_vimdir}/spell/rw.* +%lang(sk) %{data_vimdir}/spell/sk.* +%lang(sl) %{data_vimdir}/spell/sl.* +%lang(sr) %{data_vimdir}/spell/sr.* +%lang(sv) %{data_vimdir}/spell/sv.* +%lang(sw) %{data_vimdir}/spell/sw.* +%lang(tet) %{data_vimdir}/spell/tet.* +%lang(th) %{data_vimdir}/spell/th.* +%lang(tl) %{data_vimdir}/spell/tl.* +%lang(tn) %{data_vimdir}/spell/tn.* +%lang(uk) %{data_vimdir}/spell/uk.* +%lang(yi) %{data_vimdir}/spell/yi.* +%lang(yi-tr) %{data_vimdir}/spell/yi-tr.* +%lang(zu) %{data_vimdir}/spell/zu.* %endif %files minimal @@ -837,23 +742,23 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %files filesystem %{_rpmconfigdir}/macros.d/macros.vim -%dir %{_datadir}/%{name}/vimfiles/after -%dir %{_datadir}/%{name}/vimfiles/after/* -%dir %{_datadir}/%{name}/vimfiles/autoload -%dir %{_datadir}/%{name}/vimfiles/colors -%dir %{_datadir}/%{name}/vimfiles/compiler -%dir %{_datadir}/%{name}/vimfiles/doc -%ghost %{_datadir}/%{name}/vimfiles/doc/tags -%dir %{_datadir}/%{name}/vimfiles/ftdetect -%dir %{_datadir}/%{name}/vimfiles/ftplugin -%dir %{_datadir}/%{name}/vimfiles/indent -%dir %{_datadir}/%{name}/vimfiles/keymap -%dir %{_datadir}/%{name}/vimfiles/lang -%dir %{_datadir}/%{name}/vimfiles/plugin -%dir %{_datadir}/%{name}/vimfiles/print -%dir %{_datadir}/%{name}/vimfiles/spell -%dir %{_datadir}/%{name}/vimfiles/syntax -%dir %{_datadir}/%{name}/vimfiles/tutor +%dir %{data_dir}/vimfiles/after +%dir %{data_dir}/vimfiles/after/* +%dir %{data_dir}/vimfiles/autoload +%dir %{data_dir}/vimfiles/colors +%dir %{data_dir}/vimfiles/compiler +%dir %{data_dir}/vimfiles/doc +%ghost %{data_dir}/vimfiles/doc/tags +%dir %{data_dir}/vimfiles/ftdetect +%dir %{data_dir}/vimfiles/ftplugin +%dir %{data_dir}/vimfiles/indent +%dir %{data_dir}/vimfiles/keymap +%dir %{data_dir}/vimfiles/lang +%dir %{data_dir}/vimfiles/plugin +%dir %{data_dir}/vimfiles/print +%dir %{data_dir}/vimfiles/spell +%dir %{data_dir}/vimfiles/syntax +%dir %{data_dir}/vimfiles/tutor %if %{with gui} %files X11 @@ -885,11 +790,11 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %files data %license LICENSE -%dir %{_datadir}/%{name} -%dir %{_datadir}/%{name}/%{vimdir} -%{_datadir}/%{name}/%{vimdir}/defaults.vim -%dir %{_datadir}/%{name}/vimfiles -%{_datadir}/%{name}/vimfiles/template.spec +%dir %{data_dir} +%dir %{data_dir}/%{vimdir} +%{data_vimdir}/defaults.vim +%dir %{data_dir}/vimfiles +%{data_dir}/vimfiles/template.spec %if %{with default_editor} %files default-editor @@ -899,6 +804,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %endif %changelog +* Wed Apr 12 2023 Heng Qi -2:9.0-5 +- Refactor the spec file + * Tue Jan 31 2023 Funda Wang - 2:9.0-4 - New patchlevel 9.0.1267