From 536f368b95a832f5b2d5c10e13fddd9aac94dab0 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Thu, 6 Mar 2008 12:17:29 -0500 Subject: [PATCH] Create a vim subpackage for syntax highlighting --- puppet.spec | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/puppet.spec b/puppet.spec index fc6b610..5b4b4ab 100644 --- a/puppet.spec +++ b/puppet.spec @@ -8,7 +8,7 @@ Summary: A network tool for managing many disparate systems Name: puppet Version: 0.24.2 -Release: 1%{?dist} +Release: 1.1%{?dist} License: GPLv2+ Group: System Environment/Base @@ -41,6 +41,15 @@ Requires: puppet = %{version}-%{release} Provides the central puppet server daemon which provides manifests to clients. The server can also function as a certificate authority and file server. +%package vim +Group: Applications/Editors +Summary: Vim syntax highlighting for puppet +Requires: puppet = %{version}-%{release} +Requires: vim-common + +%description vim +Provides vim syntax highlighting for puppet files. + %prep %setup -q @@ -89,6 +98,11 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetmasterd.conf touch %{buildroot}%{_sysconfdir}/puppet/puppetca.conf touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf +# install vim syntax files +for d in ftdetect syntax; do + install -Dp -m0644 ext/vim/$d/puppet.vim %{buildroot}%{_datadir}/vim/vimfiles/$d/puppet.vim +done + %files %defattr(-, root, root, 0755) %{_bindir}/puppet @@ -122,6 +136,14 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf %ghost %config(noreplace,missingok) %{_sysconfdir}/puppet/puppetmasterd.conf %{_sbindir}/puppetca +%files vim +%defattr(-, root, root, 0755) +# vim doesn't own these dirs, so we need to +%if 0%{?rhel} +%dir %{_datadir}/vim/vimfiles +%endif +%{_datadir}/vim/vimfiles/* + %pre /usr/sbin/groupadd -r puppet 2>/dev/null || : /usr/sbin/useradd -g puppet -c "Puppet" \ @@ -157,6 +179,9 @@ fi rm -rf %{buildroot} %changelog +* Thu Mar 06 2008 Todd Zullinger - 0.24.2-1.1 +- Create a vim subpackage for syntax highlighting + * Wed Mar 5 2008 David Lutterkort - 0.24.2-1 - New version -- 1.6.2.2