File puppet.spec of Package puppet
#
# spec file for package puppet (Version 0.24.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: puppet
Version: 0.24.5
Release: 1
License: GPL v2 or later
Group: Productivity/Networking/System
Url: http://reductivelabs.com/projects/puppet/
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}-yumconf.diff
Patch1: %{name}-%{version}-install.diff
Requires: ruby >= 1.8.1
Requires: facter >= 1.1.4
BuildRequires: facter >= 1.1.4
BuildRequires: ruby >= 1.8.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A network tool for managing many disparate systems
%description
Puppet lets you centrally manage every important aspect of your system
using a cross-platform specification language that manages all the
separate elements normally aggregated in different files, like users,
cron jobs, and hosts, along with obviously discrete elements like
packages, services, and files.
%package server
License: GPL v2 or later
Group: Productivity/Networking/System
Summary: A network tool for managing many disparate systems
Requires: puppet = %{version}-%{release}
%description server
Puppet lets you centrally manage every important aspect of your system
using a cross-platform specification language that manages all the
separate elements normally aggregated in different files, like users,
cron jobs, and hosts, along with obviously discrete elements like
packages, services, and files.
%prep
%setup -q
%patch
%patch1
sed -i 's#/usr/local/bin/ruby#/usr/bin/ruby#' lib/puppet/external/nagios.rb
%build
%install
DESTDIR=$RPM_BUILD_ROOT ruby -rvendor-specific install.rb install --prefix=%{buildroot}
mkdir -p $RPM_BUILD_ROOT/etc/puppet
mkdir -p $RPM_BUILD_ROOT/var/lib/puppet
mkdir -p $RPM_BUILD_ROOT/var/run/puppet
mkdir -p $RPM_BUILD_ROOT/var/log/puppet
install -m0644 conf/redhat/puppet.conf $RPM_BUILD_ROOT/etc/puppet/puppet.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING LICENSE README
%{_bindir}/filebucket
%{_bindir}/puppet
%{_bindir}/ralsh
%{_bindir}/puppetd
%{_bindir}/puppetdoc
%{_bindir}/puppetca
%dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppet
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppet/*
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppet.rb
%dir /etc/puppet
%dir /var/lib/puppet
%dir /var/log/puppet
%dir /var/run/puppet
%config /etc/puppet/puppet.conf
%{_mandir}/man?/*
%files server
%defattr(-, root, root, 0755)
%{_bindir}/puppetmasterd
%{_bindir}/puppetrun
%changelog
* Tue Sep 09 2008 anicka@suse.cz
- update to 0.24.5
* You can now select the encoding format when transferring
the catalog, with 'yaml' still being the default but 'marshal'
being an option.
* Removed support for the 'node_name' setting in LDAP and external
node lookups.
* Also removed support for 'default' nodes in external nodes.
* Exporting or collecting resources no longer raises an exception
when no storeconfigs is enabled, it just produces a warning.
* Always using the cert name to store yaml files
* Added support for the --all option to puppetca --clean. If
puppetca --clean --all is issued then all client certificates
are removed.
* Resources now return the 'should' value for properties from
the [] accessor method (they previously threw an exception when
this method was used with properties).
* Modified the 'master' handler to use the Catalog class to
compile node configurations, rather than using the Configuration
handler, which was never used directly.
* Modified the 'master' handler (responsible for sending
configurations to clients) to always return Time.now as its
compile date, so configurations will always get recompiled.
* Saving new facts now expires any cached node information.
* Switching how caching is handled, so that objects now all
have an expiration date associated with them. This makes it
much easier to know whether a given cached object should be used
or if it should be regenerated.
* Changing the default environment to production.
- fix installation script (man8 permissions)
* Mon Sep 01 2008 anicka@suse.cz
- package created (version 0.24.4)