enable dynamic lua interpreter (rhbz#988112)
This commit is contained in:
parent
c2fa5d0747
commit
1126b2a8d0
19
vim.spec
19
vim.spec
@ -12,6 +12,7 @@
|
|||||||
%define withvimspell 0
|
%define withvimspell 0
|
||||||
%define withhunspell 0
|
%define withhunspell 0
|
||||||
%define withruby 1
|
%define withruby 1
|
||||||
|
%define withlua 1
|
||||||
|
|
||||||
%define baseversion 7.4
|
%define baseversion 7.4
|
||||||
%define vimdir vim74
|
%define vimdir vim74
|
||||||
@ -20,7 +21,7 @@ Summary: The VIM editor
|
|||||||
URL: http://www.vim.org/
|
URL: http://www.vim.org/
|
||||||
Name: vim
|
Name: vim
|
||||||
Version: %{baseversion}.%{patchlevel}
|
Version: %{baseversion}.%{patchlevel}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Vim
|
License: Vim
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
|
||||||
@ -250,6 +251,9 @@ BuildRequires: libselinux-devel
|
|||||||
%if "%{withruby}" == "1"
|
%if "%{withruby}" == "1"
|
||||||
Buildrequires: ruby-devel ruby
|
Buildrequires: ruby-devel ruby
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{withlua}" == "1"
|
||||||
|
Buildrequires: lua-devel
|
||||||
|
%endif
|
||||||
%if %{desktop_file}
|
%if %{desktop_file}
|
||||||
# for /usr/bin/desktop-file-install
|
# for /usr/bin/desktop-file-install
|
||||||
Requires: desktop-file-utils
|
Requires: desktop-file-utils
|
||||||
@ -607,6 +611,11 @@ export CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOU
|
|||||||
%else
|
%else
|
||||||
--disable-rubyinterp \
|
--disable-rubyinterp \
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{withlua}" == "1"
|
||||||
|
--enable-luainterp=dynamic \
|
||||||
|
%else
|
||||||
|
--disable-luainterp \
|
||||||
|
%endif
|
||||||
|
|
||||||
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
|
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
|
||||||
cp vim gvim
|
cp vim gvim
|
||||||
@ -636,6 +645,11 @@ make clean
|
|||||||
%else
|
%else
|
||||||
--disable-rubyinterp \
|
--disable-rubyinterp \
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{withlua}" == "1"
|
||||||
|
--enable-luainterp=dynamic \
|
||||||
|
%else
|
||||||
|
--disable-luainterp \
|
||||||
|
%endif
|
||||||
|
|
||||||
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
|
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
|
||||||
cp vim enhanced-vim
|
cp vim enhanced-vim
|
||||||
@ -1050,6 +1064,9 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 18 2014 Karsten Hopp <karsten@redhat.com> 7.4.179-2
|
||||||
|
- enable dynamic lua interpreter
|
||||||
|
|
||||||
* Sat Feb 15 2014 Karsten Hopp <karsten@redhat.com> 7.4.179-1
|
* Sat Feb 15 2014 Karsten Hopp <karsten@redhat.com> 7.4.179-1
|
||||||
- patchlevel 179
|
- patchlevel 179
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user