- clean up spec file
This commit is contained in:
parent
6b9cac077a
commit
52217fdb61
52
vim.spec
52
vim.spec
@ -6,16 +6,7 @@
|
|||||||
%define desktop_file_utils_version 0.2.93
|
%define desktop_file_utils_version 0.2.93
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Set this to 1 if you're building the enterprise version
|
|
||||||
%define enterprise 0
|
|
||||||
%define withruby 0
|
|
||||||
|
|
||||||
%if %{enterprise}
|
|
||||||
# don't include ruby interpreter
|
|
||||||
%define withnetbeans 0
|
%define withnetbeans 0
|
||||||
%else
|
|
||||||
%define withnetbeans 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define withcvim 0
|
%define withcvim 0
|
||||||
|
|
||||||
@ -29,7 +20,7 @@
|
|||||||
Summary: The VIM editor.
|
Summary: The VIM editor.
|
||||||
Name: vim
|
Name: vim
|
||||||
Version: %{baseversion}.%{beta}%{patchlevel}
|
Version: %{baseversion}.%{beta}%{patchlevel}
|
||||||
Release: 1
|
Release: 2
|
||||||
License: freeware
|
License: freeware
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}%{?beta}%{?CVSDATE}.tar.bz2
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}%{?beta}%{?CVSDATE}.tar.bz2
|
||||||
@ -103,23 +94,18 @@ Patch3001: vim-6.2-rh1.patch
|
|||||||
Patch3002: vim-6.1-rh2.patch
|
Patch3002: vim-6.1-rh2.patch
|
||||||
Patch3003: vim-6.1-rh3.patch
|
Patch3003: vim-6.1-rh3.patch
|
||||||
Patch3004: vim-7.0-rclocation.patch
|
Patch3004: vim-7.0-rclocation.patch
|
||||||
Patch3005: vim-6.2-rh4.patch
|
Patch3005: vim-6.4-cvim.patch
|
||||||
#Patch3006: vim-6.2-rh5.patch
|
Patch3006: vim-6.4-checkhl.patch
|
||||||
Patch3008: vim-6.4-cvim.patch
|
Patch3007: vim-7.0-fstabsyntax.patch
|
||||||
Patch3009: vim-6.4-checkhl.patch
|
Patch3008: vim-6.4-lib64.patch
|
||||||
Patch3010: vim-7.0-fstabsyntax.patch
|
Patch3009: vim-7.0-warning.patch
|
||||||
Patch3011: vim-6.4-lib64.patch
|
#
|
||||||
Patch3012: vim-7.0-warning.patch
|
|
||||||
|
|
||||||
Patch3100: vim-selinux.patch
|
Patch3100: vim-selinux.patch
|
||||||
Patch3101: vim-selinux2.patch
|
Patch3101: vim-selinux2.patch
|
||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Buildrequires: python-devel perl libtermcap-devel gettext
|
Buildrequires: python-devel perl libtermcap-devel gettext
|
||||||
Buildrequires: libacl-devel gpm-devel autoconf
|
Buildrequires: libacl-devel gpm-devel autoconf
|
||||||
%if "%{withruby}" == "1"
|
|
||||||
Buildrequires: ruby ruby-devel
|
|
||||||
%endif
|
|
||||||
%if %{WITH_SELINUX}
|
%if %{WITH_SELINUX}
|
||||||
Buildrequires: libselinux-devel
|
Buildrequires: libselinux-devel
|
||||||
%endif
|
%endif
|
||||||
@ -278,13 +264,11 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
|||||||
%patch3002 -p1
|
%patch3002 -p1
|
||||||
%patch3003 -p1
|
%patch3003 -p1
|
||||||
%patch3004 -p1
|
%patch3004 -p1
|
||||||
#patch3005 -p1
|
|
||||||
#patch3006 -p1
|
|
||||||
|
|
||||||
|
%patch3006 -p1
|
||||||
|
%patch3007 -p1
|
||||||
|
%patch3008 -p1
|
||||||
%patch3009 -p1
|
%patch3009 -p1
|
||||||
%patch3010 -p1
|
|
||||||
%patch3011 -p1
|
|
||||||
%patch3012 -p1
|
|
||||||
|
|
||||||
%if %{WITH_SELINUX}
|
%if %{WITH_SELINUX}
|
||||||
%patch3100 -p1
|
%patch3100 -p1
|
||||||
@ -294,21 +278,16 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
|||||||
%if "%{withcvim}" == "1"
|
%if "%{withcvim}" == "1"
|
||||||
mkdir cvim
|
mkdir cvim
|
||||||
( cd cvim; unzip %{SOURCE12}; )
|
( cd cvim; unzip %{SOURCE12}; )
|
||||||
patch -p1 < %{PATCH3008}
|
patch -p1 < %{PATCH3005}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd src
|
cd src
|
||||||
autoconf
|
autoconf
|
||||||
#perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h
|
|
||||||
#perl -pi -e "s,\\\$VIM,/usr/share/vim/%{vimdir}/macros,g" os_unix.h
|
|
||||||
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
||||||
%if "%{withruby}" == "1"
|
|
||||||
export RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]')
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
|
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
|
||||||
--disable-tclinterp --with-x=yes \
|
--disable-tclinterp --with-x=yes \
|
||||||
@ -321,9 +300,6 @@ export RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]')
|
|||||||
%else
|
%else
|
||||||
--disable-netbeans \
|
--disable-netbeans \
|
||||||
%endif
|
%endif
|
||||||
%if "%{withruby}" == "1"
|
|
||||||
--enable-rubyinterp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make
|
make
|
||||||
cp vim gvim
|
cp vim gvim
|
||||||
@ -339,9 +315,6 @@ make clean
|
|||||||
%else
|
%else
|
||||||
--disable-netbeans \
|
--disable-netbeans \
|
||||||
%endif
|
%endif
|
||||||
%if "%{withruby}" == "1"
|
|
||||||
--enable-rubyinterp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make
|
make
|
||||||
cp vim enhanced-vim
|
cp vim enhanced-vim
|
||||||
@ -608,6 +581,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 03 2006 Karsten Hopp <karsten@redhat.de> 7.0.042-2
|
||||||
|
- clean up spec file
|
||||||
|
|
||||||
* Mon Jul 24 2006 Karsten Hopp <karsten@redhat.de> 7.0.042-1
|
* Mon Jul 24 2006 Karsten Hopp <karsten@redhat.de> 7.0.042-1
|
||||||
- patchlevel 42
|
- patchlevel 42
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user