diff --git a/template.spec b/template.spec new file mode 100644 index 0000000..2b1f97c --- /dev/null +++ b/template.spec @@ -0,0 +1,42 @@ +Name: +Version: +Release: 1%{?dist} +Summary: + +Group: +License: +URL: +Source0: +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: +Requires: + +%description + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc + + + +%changelog diff --git a/vim.spec b/vim.spec index 9a13acd..b4c22dc 100644 --- a/vim.spec +++ b/vim.spec @@ -42,6 +42,7 @@ Source12: vi_help.txt %if %{withvimspell} Source13: vim-spell-files.tar.bz2 %endif +Source14: template.spec Patch2002: vim-7.0-fixkeys.patch Patch2003: vim-6.2-specsyntax.patch @@ -826,6 +827,7 @@ mkdir -p $RPM_BUILD_ROOT/bin mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/after cp -f %{SOURCE11} . +cp -f %{SOURCE14} $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/ cp runtime/doc/uganda.txt LICENSE @@ -982,6 +984,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{_datadir}/%{name}/%{vimdir} %dir %{_datadir}/%{name}/vimfiles %dir %{_datadir}/%{name}/vimfiles/after +%{_datadir}/%{name}/vimfiles/template.spec %{_datadir}/%{name}/%{vimdir}/autoload %{_datadir}/%{name}/%{vimdir}/colors %{_datadir}/%{name}/%{vimdir}/compiler @@ -1135,6 +1138,7 @@ rm -rf $RPM_BUILD_ROOT * Tue Mar 11 2008 Karsten Hopp 7.1.270-1 - patchlevel 270 - don't write swapfile on most common locations for USB-sticks (#436752) +- add spec file template * Mon Mar 10 2008 Tom "spot" Callaway 7.1.269-2 - BR: ExtUtils::Embed to find perl headers diff --git a/vimrc b/vimrc index 5eaf262..9097e86 100644 --- a/vimrc +++ b/vimrc @@ -22,6 +22,8 @@ if has("autocmd") \ endif " don't write swapfile on most commonly used directories for NFS mounts or USB sticks autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp + " start with spec file template + autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec endif if has("cscope") && filereadable("/usr/bin/cscope")