[vim] update spec file template (#736774)

Karsten Hopp karsten at fedoraproject.org
Tue Feb 7 13:40:02 UTC 2012


commit 80a1b0c0855321c7487451c3b31e41737d14edbb
Author: Karsten Hopp <karsten at redhat.com>
Date:   Tue Feb 7 14:41:32 2012 +0100

    update spec file template (#736774)

 spec-template.new |   36 ++++++++++++++++++++++++++++++++++++
 vim.spec          |    5 +++++
 2 files changed, 41 insertions(+), 0 deletions(-)
---
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


More information about the scm-commits mailing list