From d89985899c65b54ad77e5961b81972cc6b34fe6b Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Jul 30 2013 15:53:01 +0000 Subject: Included vim syntax highlighting Thanks to Zane Bitter --- diff --git a/stgit.spec b/stgit.spec index b42af76..35b30ae 100644 --- a/stgit.spec +++ b/stgit.spec @@ -1,7 +1,7 @@ Summary: Patch stack for Git repositories Name: stgit Version: 0.17 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: Development/Tools URL: http://www.procode.org/stgit/ @@ -12,7 +12,7 @@ Patch: stgit-0.16-tmpl.patch BuildArch: noarch BuildRequires: git-core, python2-devel, asciidoc, xmlto -Requires: git-core, python2 +Requires: git-core, python2, vim-filesystem %description StGit is a Python application providing similar functionality @@ -38,19 +38,29 @@ make all doc prefix=%{_prefix} %{?_smp_mflags} make install install-doc DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} # Install bash completion -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d +install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d ln -s ../..%{_datadir}/%{name}/completion/stgit-completion.bash \ $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name} +# Install vim syntax highlighting +install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax +install -m 644 contrib/vim/syntax/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/ +install -m 644 -D contrib/vim/ftdetect/stg.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/ftdetect/stg.vim + %files %doc AUTHORS COPYING README RELEASENOTES %{_bindir}/stg %{python_sitelib}/* -%{_datadir}/stgit/ -%{_sysconfdir}/bash_completion.d/ %{_mandir}/man1/stg* +%{_sysconfdir}/bash_completion.d/ +%{_datadir}/stgit/ +%{_datadir}/vim/vimfiles/syntax/*.vim +%{_datadir}/vim/vimfiles/ftdetect/stg.vim %changelog +* Tue Jul 30 2013 Peter Schiffer - 0.17-2 +- included vim syntax highlighting (thanks to Zane Bitter ) + * Thu Jul 4 2013 Peter Schiffer - 0.17-1 - resolves: #979618 updated to 0.17