diff options
author | Jacob Helwig <jacob@puppetlabs.com> | 2010-09-29 15:11:54 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-09-30 14:18:38 -0700 |
commit | e7424c69822a91360c94469dfef4ccddda7f6d25 (patch) | |
tree | e24aacf6a5910209ad51c45a01ed0789d61e6d2a /conf | |
parent | 0aaa742e0f09c25fb5591b72c9073bb1fee59ece (diff) | |
download | puppet-e7424c69822a91360c94469dfef4ccddda7f6d25.tar.gz puppet-e7424c69822a91360c94469dfef4ccddda7f6d25.tar.xz puppet-e7424c69822a91360c94469dfef4ccddda7f6d25.zip |
(#4772) Update SuSE .spec file
Diffstat (limited to 'conf')
-rw-r--r-- | conf/suse/puppet.spec | 23 | ||||
-rw-r--r-- | conf/suse/ruby-env.patch | 17 |
2 files changed, 13 insertions, 27 deletions
diff --git a/conf/suse/puppet.spec b/conf/suse/puppet.spec index bd4b35885..777f6a4b6 100644 --- a/conf/suse/puppet.spec +++ b/conf/suse/puppet.spec @@ -4,23 +4,20 @@ Summary: A network tool for managing many disparate systems Name: puppet -Version: 2.6.0 +Version: 2.6.1 Release: 1%{?dist} License: GPL Group: Productivity/Networking/System URL: http://puppetlabs.com/projects/puppet/ Source0: http://puppetlabs.com/downloads/puppet/%{name}-%{version}.tar.gz -Source1: client.init -Source2: server.init -Patch0: ruby-env.patch PreReq: %{insserv_prereq} %{fillup_prereq} Requires: ruby >= 1.8.2 Requires: facter >= 1.5 Requires: cron BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: ruby >= 1.8.7 +BuildRequires: ruby >= 1.8.2 %description Puppet lets you centrally manage every important aspect of your system using a @@ -39,11 +36,10 @@ The server can also function as a certificate authority and file server. %prep %setup -q -%patch0 -p0 %build -for f in bin/* ; do - sed -i -e '1c#!/usr/bin/ruby' $f +for f in bin/* sbin/*; do + sed -i -e '1s,^#!.*ruby$,#!/usr/bin/ruby,' $f done %install @@ -63,16 +59,16 @@ done find %{buildroot}%{ruby_sitelibdir} -type f -perm +ugo+x -exec chmod a-x '{}' \; %{__cp} -a %{pbuild}/conf/redhat/client.sysconfig %{buildroot}%{_confdir}/client.sysconfig %{__install} -Dp -m0644 %{buildroot}%{_confdir}/client.sysconfig %{buildroot}/var/adm/fillup-templates/sysconfig.puppet -%{__install} -Dp -m0755 %SOURCE1 %{buildroot}%{_initrddir}/puppet %{__cp} -a %{pbuild}/conf/redhat/server.sysconfig %{buildroot}%{_confdir}/server.sysconfig %{__install} -Dp -m0644 %{buildroot}%{_confdir}/server.sysconfig %{buildroot}/var/adm/fillup-templates/sysconfig.puppetmaster -%{__install} -Dp -m0755 %SOURCE2 %{buildroot}%{_initrddir}/puppetmaster %{__cp} -a %{pbuild}/conf/redhat/fileserver.conf %{buildroot}%{_confdir}/fileserver.conf %{__install} -Dp -m0644 %{buildroot}%{_confdir}/fileserver.conf %{buildroot}%{_sysconfdir}/puppet/fileserver.conf %{__cp} -a %{pbuild}/conf/redhat/puppet.conf %{buildroot}%{_confdir}/puppet.conf %{__install} -Dp -m0644 %{buildroot}%{_confdir}/puppet.conf %{buildroot}%{_sysconfdir}/puppet/puppet.conf %{__cp} -a %{pbuild}/conf/redhat/logrotate %{buildroot}%{_confdir}/logrotate %{__install} -Dp -m0644 %{buildroot}%{_confdir}/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/puppet +%{__install} -Dp -m0755 %{confdir}/client.init %{buildroot}%{_initrddir}/puppet +%{__install} -Dp -m0755 %{confdir}/server.init %{buildroot}%{_initrddir}/puppetmaster %{__ln_s} %{_initrddir}/puppet %{buildroot}%{_sbindir}/rcpuppet %{__ln_s} %{_initrddir}/puppetmaster %{buildroot}%{_sbindir}/rcpuppetmaster @@ -140,6 +136,13 @@ find %{buildroot}%{ruby_sitelibdir} -type f -perm +ugo+x -exec chmod a-x '{}' \; %{__rm} -rf %{buildroot} %changelog +* Tue Sep 14 2010 Ben Kevan <ben.kevan@gmail.com> - 2.6.1 +- New version to 2.6.1 +- Add client.init and server.init from source since it's now included in the packages +- Change BuildRequires Ruby version to match Requires Ruby version +- Removed ruby-env patch, replaced with sed in prep +- Update urls to puppetlabs.com + * Wed Jul 21 2010 Ben Kevan <ben.kevan@gmail.com> - 2.6.0 - New version and ruby version bump - Add puppetdoc to %_bindir (unknown why original suse package, excluded or forgot to add) diff --git a/conf/suse/ruby-env.patch b/conf/suse/ruby-env.patch deleted file mode 100644 index 0a7a8a748..000000000 --- a/conf/suse/ruby-env.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- sbin/puppetd 2010-07-18 14:17:38.000000000 -0700 -+++ sbin/puppetd 2010-07-21 17:31:57.057138615 -0700 -@@ -1,4 +1,4 @@ --#!/usr/bin/env ruby -+#!/usr/bin/ruby - - require 'puppet/application/agent' - Puppet::Application[:agent].run - ---- sbin/puppetmasterd 2010-07-18 14:17:38.000000000 -0700 -+++ sbin/puppetmasterd 2010-07-21 17:32:10.178513969 -0700 -@@ -1,4 +1,4 @@ --#!/usr/bin/env ruby -+#!/usr/bin/ruby - - require 'puppet/application/master' - Puppet::Application[:master].run |