Ismail Dönmez 2014-08-27 12:25:24 +00:00 committed by Git OBS Bridge
parent 0c332ead23
commit 863006a63c
4 changed files with 21 additions and 12 deletions

13
_service Normal file
View File

@ -0,0 +1,13 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">hg</param>
<param name="url">https://code.google.com/p/vim/</param>
<param name="filename">vim</param>
<param name="versionprefix">7.4.417.hg</param>
<param name="revision">v7-4-417</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">vim*.tar</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed397439890e2be12ce7c5ace616f6de4cb935422666562232e6ae96e9310001
size 7799164

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d2668a9d8f2b681565ac4351f9158e89a3de58fb5187d80b5600a2fde9ab186
size 9944130

View File

@ -17,13 +17,14 @@
%define pkg_version 7.4 %define pkg_version 7.4
%define official_ptchlvl 417 %define patchlevel 417
%define revision 6162
%define VIM_SUBDIR vim74 %define VIM_SUBDIR vim74
%define site_runtimepath /usr/share/vim/site %define site_runtimepath /usr/share/vim/site
%define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?_smp_mflags} %define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?_smp_mflags}
Name: vim Name: vim
Version: 7.4.%{official_ptchlvl} Version: 7.4.%{patchlevel}.hg.%{revision}
Release: 0 Release: 0
BuildRequires: db-devel BuildRequires: db-devel
%if 0%{?suse_version} > 1020 %if 0%{?suse_version} > 1020
@ -73,7 +74,7 @@ License: SUSE-Vim
Group: Productivity/Editors/Vi Group: Productivity/Editors/Vi
# #
Url: http://www.vim.org/ Url: http://www.vim.org/
Source: vim-%{version}.tar.bz2 Source: vim-%{version}.tar.xz
Source3: suse.vimrc Source3: suse.vimrc
Source4: vimrc_example1 Source4: vimrc_example1
Source5: vimrc_example2 Source5: vimrc_example2
@ -166,7 +167,7 @@ You need package vim for the help and other documentation too. If you
want less features, you might want to install vim instead. want less features, you might want to install vim instead.
%prep %prep
%setup -q -n vim %setup -q
%patch3 -p1 %patch3 -p1
%patch4 -p1 %patch4 -p1
@ -187,11 +188,6 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim
%patch101 %patch101
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} . cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
# newer perl? ugly hack to fix build anyway.
%if 0%{?suse_version} > 1210
sed -i -e 's/^XS(XS_/XS_INTERNAL(XS_/' src/if_perl.xs
%endif
%build %build
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing" export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1} export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}