[uzbl] Ship vim highlighting files
Ben Boeckel
mathstuf at fedoraproject.org
Sun Oct 10 19:50:13 UTC 2010
commit 62a6ce9e9b7780d2bab14a0f31055cc074fdaa5f
Author: Ben Boeckel <MathStuf at gmail.com>
Date: Sun Oct 10 15:45:20 2010 -0400
Ship vim highlighting files
uzbl.spec | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/uzbl.spec b/uzbl.spec
index cee9023..5cdcd30 100644
--- a/uzbl.spec
+++ b/uzbl.spec
@@ -1,4 +1,5 @@
%global uzblcommit afc0f873e
+%global vim_version 72
Name: uzbl
Summary: Lightweight WebKit browser following the UNIX philosophy
@@ -77,6 +78,14 @@ one window containing multiple tabs, each tab containing a full
embedded uzbl-browser Ideal as a quick and simple solution to manage
multiple uzbl-browser instances without getting lost.
+%package vim
+Summary: Vim highlighting for uzbl's config
+Group: Applications/Text
+Requires: vim-enhanced
+
+%description vim
+Highlighting files for uzbl's configuration.
+
%prep
%setup -q -n %{name}-%{uzblcommit}
@@ -100,6 +109,13 @@ cp -pr icons %{buildroot}%{_datadir}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
+mkdir -p %{buildroot}%{_datadir}/vim/vim%{vim_version}/ftdetect/
+install -p extras/vim/ftdetect/uzbl.vim %{buildroot}%{_datadir}/vim/vim%{vim_version}/ftdetect/uzbl.vim
+mkdir -p %{buildroot}%{_datadir}/vim/vim%{vim_version}/ftplugin/
+install -p extras/vim/ftplugin/uzbl.vim %{buildroot}%{_datadir}/vim/vim%{vim_version}/ftplugin/uzbl.vim
+mkdir -p %{buildroot}%{_datadir}/vim/vim%{vim_version}/syntax/
+install -p extras/vim/syntax/uzbl.vim %{buildroot}%{_datadir}/vim/vim%{vim_version}/syntax/uzbl.vim
+
%clean
rm -rf %{buildroot}
@@ -142,6 +158,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%defattr(-, root, root, -)
%{_bindir}/uzbl-tabbed
+%files vim
+%defattr(-, root, root, -)
+%{_datadir}/vim/vim%{vim_version}/ftdetect/uzbl.vim
+%{_datadir}/vim/vim%{vim_version}/ftplugin/uzbl.vim
+%{_datadir}/vim/vim%{vim_version}/syntax/uzbl.vim
+
+
%changelog
* Mon Sep 6 2010 Daiki Ueno <dueno at redhat.com> - 0-0.18.20100626gitafc0f873e
- add patch to avoid crash on "Open Image in New Window" (#584733)
More information about the scm-commits
mailing list