From 80a1b0c0855321c7487451c3b31e41737d14edbb Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Feb 07 2012 13:41:32 +0000 Subject: update spec file template (#736774) --- diff --git a/spec-template.new b/spec-template.new new file mode 100644 index 0000000..da55800 --- /dev/null +++ b/spec-template.new @@ -0,0 +1,36 @@ +Name: +Version: +Release: 1%{?dist} +Summary: + +Group: +License: +URL: +Source0: + +BuildRequires: +Requires: + +%description + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%files +%doc + + + +%changelog diff --git a/vim.spec b/vim.spec index 10c5100..1f819c9 100644 --- a/vim.spec +++ b/vim.spec @@ -41,6 +41,7 @@ Source12: vi_help.txt Source13: vim-spell-files.tar.bz2 %endif Source14: spec-template +Source15: spec-template.new Patch2002: vim-7.0-fixkeys.patch Patch2003: vim-6.2-specsyntax.patch @@ -1089,7 +1090,11 @@ mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} cp -f %{SOURCE11} . +%if %{?fedora}%{!?fedora:0} >= 16 || %{?rhel}%{!?rhel:0} >= 6 +cp -f %{SOURCE15} $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/template.spec +%else cp -f %{SOURCE14} $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/template.spec +%endif cp runtime/doc/uganda.txt LICENSE # Those aren't Linux info files but some binary files for Amiga: rm -f README*.info