|
|
|
@ -7,15 +7,13 @@
|
|
|
|
|
|
|
|
|
|
Summary: A network tool for managing many disparate systems
|
|
|
|
|
Name: puppet
|
|
|
|
|
Version: 0.24.4
|
|
|
|
|
Version: 0.24.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
|
|
|
|
|
URL: http://puppet.reductivelabs.com/
|
|
|
|
|
Source: http://reductivelabs.com/downloads/puppet/%{name}-%{version}.tgz
|
|
|
|
|
# Man pages that were omitted from the release tarball
|
|
|
|
|
Source1: manpages.tar.gz
|
|
|
|
|
|
|
|
|
|
Requires: ruby >= 1.8.1
|
|
|
|
|
%if %has_ruby_abi
|
|
|
|
@ -45,8 +43,6 @@ The server can also function as a certificate authority and file server.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -a 1
|
|
|
|
|
(cd man/man8 && rm pi.8 puppetdoc.8)
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
for f in bin/* ; do
|
|
|
|
@ -55,8 +51,8 @@ done
|
|
|
|
|
# Fix some rpmlint complaints
|
|
|
|
|
for f in mac_dscl.pp mac_dscl_revert.pp \
|
|
|
|
|
mac_netinfo.pp mac_pkgdmg.pp ; do
|
|
|
|
|
sed -i -e'1d' examples/code/$f
|
|
|
|
|
chmod a-x examples/code/$f
|
|
|
|
|
sed -i -e'1d' examples/$f
|
|
|
|
|
chmod a-x examples/$f
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
find examples/ -type f -empty | xargs rm
|
|
|
|
@ -78,6 +74,7 @@ mv %{buildroot}%{_sbindir}/puppet %{buildroot}%{_bindir}/puppet
|
|
|
|
|
mv %{buildroot}%{_sbindir}/ralsh %{buildroot}%{_bindir}/ralsh
|
|
|
|
|
mv %{buildroot}%{_sbindir}/filebucket %{buildroot}%{_bindir}/filebucket
|
|
|
|
|
mv %{buildroot}%{_sbindir}/puppetrun %{buildroot}%{_bindir}/puppetrun
|
|
|
|
|
mv %{buildroot}%{_sbindir}/puppetdoc %{buildroot}%{_bindir}/puppetdoc
|
|
|
|
|
install -Dp -m0644 %{pbuild}/lib/puppet.rb %{buildroot}%{ruby_sitelibdir}/puppet.rb
|
|
|
|
|
cp -a %{pbuild}/lib/puppet %{buildroot}%{ruby_sitelibdir}
|
|
|
|
|
find %{buildroot}%{ruby_sitelibdir} -type f -perm +ugo+x -print0 | xargs -0 -r chmod a-x
|
|
|
|
@ -100,6 +97,8 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf
|
|
|
|
|
%{_bindir}/puppet
|
|
|
|
|
%{_bindir}/ralsh
|
|
|
|
|
%{_bindir}/filebucket
|
|
|
|
|
%{_bindir}/puppetdoc
|
|
|
|
|
%exclude %{_mandir}/man8/pi.8.gz
|
|
|
|
|
%{_sbindir}/puppetd
|
|
|
|
|
%{ruby_sitelibdir}/*
|
|
|
|
|
%{_initrddir}/puppet
|
|
|
|
@ -108,7 +107,6 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/puppet/puppet.conf
|
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/puppet/puppetd.conf
|
|
|
|
|
%doc CHANGELOG COPYING LICENSE README examples
|
|
|
|
|
%exclude %{_sbindir}/puppetdoc
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/puppet
|
|
|
|
|
# These need to be owned by puppet so the server can
|
|
|
|
|
# write to them
|
|
|
|
@ -119,6 +117,7 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf
|
|
|
|
|
%doc %{_mandir}/man8/puppet.conf.8.gz
|
|
|
|
|
%doc %{_mandir}/man8/puppetd.8.gz
|
|
|
|
|
%doc %{_mandir}/man8/ralsh.8.gz
|
|
|
|
|
%doc %{_mandir}/man8/puppetdoc.8.gz
|
|
|
|
|
|
|
|
|
|
%files server
|
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
@ -171,6 +170,14 @@ fi
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 28 2008 David Lutterkort <dlutter@redhat.com> - 0.24.5-1
|
|
|
|
|
- Add /usr/bin/puppetdoc
|
|
|
|
|
|
|
|
|
|
* Thu Jul 24 2008 Brenton Leanhardt <bleanhar@redhat.com>
|
|
|
|
|
- New version
|
|
|
|
|
- man pages now ship with tarball
|
|
|
|
|
- examples/code moved to root examples dir in upstream tarball
|
|
|
|
|
|
|
|
|
|
* Tue Mar 25 2008 David Lutterkort <dlutter@redhat.com> - 0.24.4-1
|
|
|
|
|
- Add man pages (from separate tarball, upstream will fix to
|
|
|
|
|
include in main tarball)
|
|
|
|
|