cleanup spec
authorAnas Nashif <anas.nashif@intel.com>
Fri, 22 Feb 2013 00:41:51 +0000 (16:41 -0800)
committerJacek Bukarewicz <j.bukarewicz@samsung.com>
Thu, 16 Jan 2014 13:10:16 +0000 (14:10 +0100)
packaging/vim.spec

index 3a9c684..baea9e2 100644 (file)
@@ -29,7 +29,6 @@ Requires(pre):         update-alternatives
 #
 Provides:       vi
 Provides:       vim_client
-%define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?jobs:-j%jobs}
 #
 %define vim_prereq %{name}-base = %{version}
 # Explicitly require versioned perl for libperl.so
@@ -46,8 +45,6 @@ file name completion, block operations, and editing of binary data.
 Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
 of UNIX.
 
-For SUSE Linux, Vim is used as /usr/bin/vi.
-
 Package vim contains the normal version of vim. To get the full runtime
 environment install additionally vim-data.
 
@@ -67,8 +64,6 @@ file name completion, block operations, and editing of binary data.
 Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
 of UNIX.
 
-For SUSE Linux, Vim is used as /usr/bin/vi.
-
 Package vim-data contains the runtime files.
 
 %package base
@@ -98,6 +93,7 @@ want to install the vim-data package.
 Summary:        A version of the VIM editor which includes recent enhancements
 Group:          Productivity/Editors/Vi
 Requires:       %{perl_requires}
+Requires:       vim-data
 Provides:       vi
 Provides:       vim_client
 Requires(pre):         %{vim_prereq}
@@ -159,14 +155,14 @@ popd
     --disable-perlinterp --disable-pythoninterp \
     --disable-rubyinterp --disable-tclinterp
 sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
-%make
+make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?jobs:-j%jobs}
 cp src/vim vim-normal
 make distclean
 #
 # build enhanced binary
 %configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} --disable-gui
 sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
-%make
+make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?jobs:-j%jobs}
 cp src/vim vim-enhanced
 #make distclean
 #
@@ -175,7 +171,6 @@ cp src/vim vim-enhanced
 %install
 # create icon directory to have the icon from the tarball installed
 install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
-#%make_install STRIP=:
 
 cd src
 make install DESTDIR=%{buildroot} BINDIR=%{_bindir} VIMRCLOC=/etc VIMRUNTIMEDIR=%{site_runtimepath}