summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2010-05-03 14:54:39 -0400
committerTodd Zullinger <tmz@pobox.com>2010-05-03 14:54:39 -0400
commit5a1a45c51d89bdbc3eb9cc9dbc546041a27eaa9e (patch)
tree746750fe21cc26ab1231814a47870d684184f3ee
parent2257605b8698cc4f7e3488d415d9749b99477d54 (diff)
downloadpuppet-5a1a45c51d89bdbc3eb9cc9dbc546041a27eaa9e.tar.gz
puppet-5a1a45c51d89bdbc3eb9cc9dbc546041a27eaa9e.tar.xz
puppet-5a1a45c51d89bdbc3eb9cc9dbc546041a27eaa9e.zip
Update Red Hat spec file for 0.25.5
With RHEL-6 just around the corner, now is also a good time to adjust the ruby(selinux) conditional to work there. The rundir-perms patch from tarball is applied rather than including it separately in the SRPM. It makes for one less file to track in downstream distros. Other minor changes are pulled in from the Fedora/EPEL spec file.
-rw-r--r--conf/redhat/puppet.spec26
1 files changed, 16 insertions, 10 deletions
diff --git a/conf/redhat/puppet.spec b/conf/redhat/puppet.spec
index 3c22e8abe..8d036429c 100644
--- a/conf/redhat/puppet.spec
+++ b/conf/redhat/puppet.spec
@@ -1,17 +1,18 @@
# Augeas and SELinux requirements may be disabled at build time by passing
# --without augeas and/or --without selinux to rpmbuild or mock
-%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
-%define confdir conf/redhat
+%{!?ruby_sitelibdir: %global ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
+%global confdir conf/redhat
Name: puppet
-Version: 0.25.2
+Version: 0.25.5
Release: 1%{?dist}
Summary: A network tool for managing many disparate systems
License: GPLv2+
-URL: http://puppet.puppetlabs.com/
-Source0: http://puppetlabs.com/downloads/puppet/%{name}-%{version}.tar.gz
-Patch0: rundir-perms.patch
+URL: http://puppetlabs.com
+Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz
+Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.sign
+
Group: System Environment/Base
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -26,10 +27,10 @@ Requires: ruby-shadow
%endif
# Pull in ruby selinux bindings where available
-%if 0%{?fedora}
-%if 0%{?fedora} >= 12
+%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
%{!?_without_selinux:Requires: ruby(selinux)}
%else
+%if 0%{?fedora} || 0%{?rhel} >= 5
%{!?_without_selinux:Requires: libselinux-ruby}
%endif
%endif
@@ -65,7 +66,7 @@ The server can also function as a certificate authority and file server.
%prep
%setup -q
-%patch0 -p1
+patch -p1 < conf/redhat/rundir-perms.patch
%build
# Fix some rpmlint complaints
@@ -153,9 +154,9 @@ install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
%attr(-, puppet, puppet) %{_localstatedir}/run/puppet
%attr(-, puppet, puppet) %{_localstatedir}/log/puppet
%attr(-, puppet, puppet) %{_localstatedir}/lib/puppet
+%{_mandir}/man5/puppet.conf.5.gz
%{_mandir}/man8/pi.8.gz
%{_mandir}/man8/puppet.8.gz
-%{_mandir}/man8/puppet.conf.8.gz
%{_mandir}/man8/puppetca.8.gz
%{_mandir}/man8/puppetd.8.gz
%{_mandir}/man8/ralsh.8.gz
@@ -220,6 +221,11 @@ fi
rm -rf %{buildroot}
%changelog
+* Mon May 03 2010 Todd Zullinger <tmz@pobox.com> - 0.25.5-1
+- Update to 0.25.5
+- Adjust selinux conditional for EL-6
+- Apply rundir-perms patch from tarball rather than including it separately
+
* Fri Jan 01 2010 Todd Zullinger <tmz@pobox.com> - 0.25.2-1
- Update to 0.25.2
- Install auth.conf, puppetqd manpage, and queuing examples/docs