Hello community,

here is the log from the commit of package rubygem-puppet for openSUSE:Factory 
checked in at 2015-01-09 20:49:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-puppet (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-puppet.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-puppet"

Changes:
--------
New Changes file:

--- /dev/null   2014-12-25 22:38:16.200041506 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-puppet.new/rubygem-puppet.changes       
2015-01-09 20:49:32.000000000 +0100
@@ -0,0 +1,663 @@
+-------------------------------------------------------------------
+Tue Dec  2 18:04:24 UTC 2014 - tampak...@opensuse.org
+
+- Switch installation from tarball to gem, using the new packaging schema
+- Rename puppet to rubygem-puppet for the above reason
+- Rename puppet-server to puppet-master / puppetmaster, since PuppetLabs has a
+  new product out that is called Puppet Server
+- Install more sample config files (auth.conf, fileserver.conf, tagmail.conf)
+- Add rubygem(ruby-shadow) and rubygem(augeas) as Recommends
+- Separate emacs syntax files to different subpkg
+
+-------------------------------------------------------------------
+Sat Nov  8 20:23:07 UTC 2014 - da...@darins.net
+
+- update to 3.7.3
+  *  PUP-3601: Bump facter dependency to 2.3.0
+  *  PUP-3471: Windows Puppet x86 Installer Expands Environment Variables in 
Path
+  *  PUP-3302: Puppet resource broken when directory environments enabled
+  *  PUP-3500: Adding a setting to puppet.conf that has a :hook handled on 
define preloads incorrect directory environment settings.
+  *  PUP-3505: Future parser handling undef’s incorrectly
+  *  PUP-3514: Future parser not showing line/column for error
+  *  PUP-3558: Future parser, square brackets in references cause syntax 
errors related to non-ASCII characters
+  *  PUP-3602: Do not convert strings that are on the form “0e" to floating 
point
+  *  PUP-3555: introduce override-able factory pattern for constructing 
environment cache entries
+
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    
https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=12001
+
+- remove old .changelog
+- fix invalid arg in init script for SLE
+
+-------------------------------------------------------------------
+Tue Oct 28 09:21:58 UTC 2014 - bo...@steki.net
+
+- updated buildrequires to use rubygem(xxx) syntax as that is correct syntax
+
+-------------------------------------------------------------------
+Thu Oct 23 16:57:53 UTC 2014 - da...@darins.net
+
+- Update to 3.7.2
+  * PUP-3467: Reject SSLv3 connections in Puppet
+  * PUP-3345: Puppet Master Memory Leak
+  * PUP-643: Solaris pkg package provider does not handle expiring
+    certificates
+  * PUP-1165: Spurious ‘trigger changed’ messages generated by scheduled
+    task provider
+  * PUP-3203: scheduled_task triggers cannot be updated
+  * PUP-3357: Unexpected error with multiple SSH keys without comments
+  * PUP-3351: Puppet evaluates classes declared with parameters before
+    classes declared without parameters
+  * PUP-3258: puppet apply + ENC + 3.7.x: does not read the .pp file
+  * PUP-3244: ENC returned environment ignored when using directory 
environments
+  * PUP-3334: Changes to environment.conf are not being picked up, even
+    when environment timeout is set to 0.
+  * PUP-3363: future parser give weird error in trailing comma after assignment
+  * PUP-3366: type system does not handle Enum/String compare correctly
+  * PUP-3401: Type system does not handle Pattern correctly
+  * PUP-3365: consider not doing deep undef to empty string map in 3xi
+    function API
+  * PUP-3364: Attempt to use Numeric as title in a Resource type causes
+    internal error
+  * PUP-3201: Validation thinks that an Undef instance is of type Runtime
+  * PUP-3315: Windows agent installer should specify that FQDN is expected
+  * PUP-3227: Upgrade conflict: puppetmaster-common and puppet-common
+ 
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    
https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=11925
+
+-------------------------------------------------------------------
+Sat Sep 27 06:31:18 UTC 2014 - tbecht...@suse.com
+
+- Also create user/group when only installing the puppet client
+
+-------------------------------------------------------------------
+Wed Sep 24 15:23:25 UTC 2014 - da...@darins.net
+
+- Updated systemd coding style 
+
+-------------------------------------------------------------------
+Thu Sep 18 17:32:47 UTC 2014 - da...@darins.net
+
+- Fix packaging for SLE_11
+
+-------------------------------------------------------------------
+Tue Sep 16 19:59:22 UTC 2014 - da...@darins.net
+
+- Update to 3.7.1
+  * PUP-3222: Windows service provider references a non-existent class
+  * PUP-3190: “each” no longer supported in Puppet 3.7.0
+  * PUP-3191: Symlinks to missing targets cause a File Not Found error
+    instead of a warning
+  * PUP-3231: Specifying –tags doesn’t cause suitability check to be
+    skipped for skipped resources
+  * PUP-894: Too easy to hit “CRL not yet valid for <host>” 
+    (and not very informative)
+  * PUP-1680: “incorrect header check” using Ruby 2
+  * PUP-3177: Resource titles ending with square brackets fail
+  * PUP-3174: After enabling directory environments the manifestdir
+    setting is still required to be valid
+  * PUP-3162: Block $environment in directory based environment
+    configuration settings
+  * PUP-3186: Puppetmaster removes /etc/puppet/environments/production
+    if it’s a link rather than a directory
+
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    
https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=11854
+
+-------------------------------------------------------------------
+Fri Sep  5 16:57:18 UTC 2014 - da...@darins.net
+
+- Update to 3.7.0 
+  * A nearly-final implementation of the Puppet 4 language
+  * Preview support for a new, fast, natively compiled Facter
+  * 64-bit Puppet packages for Windows
+  * Lots of deprecations to prepare for Puppet 4.0
+
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    https://tickets.puppetlabs.com/issues/?filter=12643
+
+-------------------------------------------------------------------
+Sun Aug  3 08:19:53 UTC 2014 - tampak...@opensuse.org
+
+- Add Supplements: packageand(vim,puppet), in order to trigger automatic
+  installation for users of both packages. Suggested by dimstar
+
+-------------------------------------------------------------------
+Sat Jul 26 18:36:00 UTC 2014 - tampak...@opensuse.org
+
+- Split the vim syntax files to separate subpackage, puppet-vim
+
+-------------------------------------------------------------------
+Wed Jun 11 13:06:50 UTC 2014 - da...@darins.net
+
+- Update to 3.6.2
+  Security Fixes
+  * CVE-2014-3248
+    (Arbitrary Code Execution with Required Social Engineering)
+  * CVE-2014-3253
+    (Apache 2.4+ does not enforce CRL checks by default)
+  * [PUP-2635] - user purge_ssh_keys not purged
+  * [PUP-2639] - Increase environment_timeout default.
+  * [PUP-2650] - 3.6.1 issues "warning" message for deprecation
+  * [PUP-2659] - Puppet stops working with error 'Attempted to pop,
+     but already at root of the context stack.'
+  * [PUP-2660] - purging ssh_authorized_key fails because of missing user value
+  * [PUP-2689] - A node can't always collect its own exported resources
+  * [PUP-2692] - Puppet master passenger processes keep growing
+  * [PUP-2705] - Regression with external facts pluginsync not preserving
+     executable bit
+
+-------------------------------------------------------------------
+Tue May 27 12:03:10 UTC 2014 - bo...@steki.net
+
+- Puppet 3.6.1 is a bug fix release in the Puppet 3.6 series.
+  It also makes the transaction_uuid more reliably available to extensions. 
+
+-------------------------------------------------------------------
+Wed May 21 20:30:00 UTC 2014 - da...@darins.net
+
+- Update to 3.6.0
+  Bug Fixes
+  * [PUP-530] - Installer for Puppet 3 does not check for hiera
+  * [PUP-748] - PR (2067): Zypper provider install options - darix
+  * [PUP-1041] - PR (2385) naginator not parsing blank parameters
+  * [PUP-1114] - Deprecate environment configuration in puppet.conf
+  * [PUP-1332] - "puppet resource service" fails on Ubuntu
+  * [PUP-1547] - PR (2311) Undefined method `groups' for nil:NilClass
+  * [PUP-1552] - V2.0 API reports Not Authorized as a "RUNTIME_ERROR"
+  * [PUP-1585] - PR (2342) cron resources with target specified generate
+    duplicate entries
+  * [PUP-1586] - PR (2331) Cron Type sanity check for the command parameter
+     is broken
+  * [PUP-1624] - PR (2342) Cron handles crontab's equality of target
+    and user strangely
+  * [PUP-1749] - Puppet module tool does not work on Solaris
+  * [PUP-1751] - PR (2383): Suse chkconfig --check boot.<service> always
+    returns 1 whether the service is enabled/disabled. - m4ce
+
+  Improvement
+  * [PUP-485] - Add assert_type functions for type checks
+  * [PUP-620] - (PR 2429) Add install_options to gem provider
+  * [PUP-740] - Validator
+  * [PUP-1174] - PR (2247) Ability to purge .ssh/authorized_keys
+  * [PUP-1596] - Make modulepath, manifest, and config_version configurable
+    per-environment
++++ 466 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:Factory/.rubygem-puppet.new/rubygem-puppet.changes

New:
----
  gem2rpm.yml
  puppet-3.7.3.gem
  puppet.fw
  puppetmaster.fw
  rubygem-puppet.changes
  rubygem-puppet.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-puppet.spec ++++++
#
# spec file for package rubygem-puppet
#
# Copyright (c) 2014 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/
#


#
# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
# All sections marked as MANUAL, license headers, summaries and descriptions
# can be maintained in that file. Please consult this file before editing any
# of those fields
#

Name:           rubygem-puppet
Version:        3.7.3
Release:        0
%define mod_name puppet
%define mod_full_name %{mod_name}-%{version}
# MANUAL
# backward compatible requirement SLE...
%{?!_initddir:%define _initddir %_initrddir}

%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
%define _unitdir /usr/lib/systemd
%{!?vim_data_dir:%global vim_data_dir %{_datadir}/vim/%(readlink 
%{_datadir}/vim/current)}

# not really required, but we don't want to own their dirs
BuildRequires: vim
BuildRequires: emacs-nox

BuildRequires: fdupes
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
%{?systemd_requires}
%define has_systemd 1
%endif
PreReq:        rubygem(%{mod_name})
#!BuildIgnore: rubygem(%{mod_name})
# /MANUAL
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ruby-macros >= 5
BuildRequires:  %{ruby}
BuildRequires:  %{rubygem gem2rpm}
BuildRequires:  %{rubygem rdoc > 3.10}
BuildRequires:  update-alternatives
Url:            https://github.com/puppetlabs/puppet
Source:         http://rubygems.org/gems/%{mod_full_name}.gem
Source1:        puppetmaster.fw
Source2:        puppet.fw
Source3:        gem2rpm.yml
Summary:        A network tool for managing many disparate systems
License:        Apache-2.0
Group:          Development/Languages/Ruby
PreReq:         update-alternatives

%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.
%prep

%build

%install
%gem_install \
  --symlink-binaries \
  --doc-files="LICENSE README.md" \
  -f
# MANUAL
gemdir="%{buildroot}$(gem env gemdir)/gems/%{mod_full_name}"
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{mod_name}
mkdir -p %{buildroot}%{_localstatedir}/log/%{mod_name}
mkdir -p %{buildroot}%{_fwdefdir}
mkdir -p %{buildroot}%{_unitdir}/system
install -Dm0644 $gemdir/ext/redhat/%{mod_name}.conf 
%{buildroot}%{_sysconfdir}/%{mod_name}/%{mod_name}.conf
for config_file in auth fileserver tagmail ; do
    install -m0644 $gemdir/conf/$config_file.conf 
%{buildroot}%{_sysconfdir}/%{mod_name}/$config_file.conf
done
%if 0%{?has_systemd}
ln -sf service %{buildroot}/%{_sbindir}/rcpuppet
ln -sf service %{buildroot}/%{_sbindir}/rcpuppetmaster
%else
mkdir -p %{buildroot}%_initddir
# fix old port arg
sed -i 's/--port/--masterport/' $gemdir/ext/suse/client.init
install -m0755 $gemdir/ext/suse/client.init %{buildroot}/%_initddir/puppet
install -m0755 $gemdir/ext/suse/server.init %{buildroot}/%_initddir/puppetmaster
ln -sf %_initddir/puppet %{buildroot}/%{_sbindir}/rcpuppet
ln -sf %_initddir/puppetmaster %{buildroot}/%{_sbindir}/rcpuppetmaster
%endif

install -m 644 %{SOURCE1} %{buildroot}/%{_fwdefdir}/puppetmasterd
install -m 644 %{SOURCE2} %{buildroot}/%{_fwdefdir}/puppet
# Latest git calls the service for agent puppet again
install -m 644 $gemdir/ext/systemd/puppet.service  
%{buildroot}%{_unitdir}/system/puppet.service
install -m 644 $gemdir/ext/systemd/puppetmaster.service 
%{buildroot}%{_unitdir}/system/puppetmaster.service

for mandirX in $(ls $gemdir/man); do
    for manpage in $(ls $gemdir/man/$mandirX); do
        install -Dm0444 $gemdir/man/$mandirX/$manpage 
%{buildroot}/%{_mandir}/$mandirX/$manpage
    done
done

%fdupes -s %{buildroot}%{_mandir}

# Install vim syntax files
install -Dp -m0644 $gemdir/ext/vim/ftdetect/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/ftdetect/%{mod_name}.vim
install -Dp -m0644 $gemdir/ext/vim/ftplugin/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/ftplugin/%{mod_name}.vim
install -Dp -m0644 $gemdir/ext/vim/indent/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/indent/%{mod_name}.vim
install -Dp -m0644 $gemdir/ext/vim/syntax/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/syntax/%{mod_name}.vim

# Install emacs mode files
emacsdir=%{buildroot}%{_datadir}/emacs/site-lisp
install -Dp -m0644 $gemdir/ext/emacs/puppet-mode.el $emacsdir/puppet-mode.el
install -Dp -m0644 $gemdir/ext/emacs/puppet-mode-init.el 
$emacsdir/site-start.d/puppet-mode-init.el

# Remove those dirs as they cause strange runtime dependencies
rm -rf $gemdir/ext/{debian,gentoo}
# /MANUAL


%files
%defattr(-,root,root,-)
%attr(0750,%{mod_name},%{mod_name}) %dir %{_localstatedir}/lib/%{mod_name}
%attr(0750,%{mod_name},%{mod_name}) %dir %{_localstatedir}/log/%{mod_name}
%dir %{_sysconfdir}/%{mod_name}
%config(noreplace) %{_sysconfdir}/%{mod_name}/%{mod_name}.conf
%config(noreplace) %{_sysconfdir}/%{mod_name}/auth.conf
%config(noreplace) %{_sysconfdir}/%{mod_name}/fileserver.conf
%config(noreplace) %{_sysconfdir}/%{mod_name}/tagmail.conf
%config(noreplace) %{_fwdefdir}/%{mod_name}
%{_mandir}/man?/*
%{_sbindir}/rcpuppet
%{_unitdir}/system/%{mod_name}.service
%if 0%{?suse_version} == 1110
%_initddir/%{mod_name}
%dir /usr/lib/systemd
%dir /usr/lib/systemd/system
%endif

%pre
getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet
%if 0%{?has_systemd}
%service_add_pre puppet.service
%endif

%preun
%if 0%{?has_systemd}
%service_del_preun puppet.service
%endif

%if 0%{?suse_version} == 1110
%stop_on_removal %{name}
%endif

%postun
%if 0%{?has_systemd}
%service_del_postun puppet.service
%endif

%if 0%{?suse_version} == 1110
%insserv_cleanup
%endif

%post
# Compatibility with old setups
if [ -f /etc/sysconfig/puppet ] && [ -z "`grep 'PUPPET_EXTRA_OPTS="' 
/etc/sysconfig/puppet | grep ' --server=${PUPPET_SERVER} 
--masterport=${PUPPET_PORT} --logdest=${PUPPET_LOG}"'`" ]; then
    echo 'PUPPET_EXTRA_OPTS=" --server=${PUPPET_SERVER} 
--masterport=${PUPPET_PORT} --logdest=${PUPPET_LOG} ${PUPPET_EXTRA_OPTS}"' >>  
/etc/sysconfig/puppet
fi

%if 0%{?has_systemd}
%service_add_post puppet.service
%endif

%package master
Summary:   A network tool for managing many disparate systems
Group:     Productivity/Networking/System
PreReq:    rubygem(%{mod_name})
Obsoletes: puppet-server <= 3.7.3
Provides:  puppet-master = %{version}-%{release}
Provides:  puppetmaster = %{version}-%{release}
%if 0%{?suse_version} > 1210
%{?systemd_requires}
%endif

# Requires:      rubygem-puppet = 3.7.3
%description master
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.

%files master
%defattr(-,root,root,-)
%{_sbindir}/rcpuppetmaster
%config(noreplace) %{_fwdefdir}/puppetmasterd
%{_unitdir}/system/puppetmaster.service
%if 0%{?suse_version} == 1110
%_initddir/puppetmaster
%dir /usr/lib/systemd
%dir /usr/lib/systemd/system
%endif

%pretrans master
if [ -x /usr/bin/puppet ] && [ "`/usr/bin/puppet --version | grep '^3.3.1'`" ]; 
then
    echo old > /run/puppet_migrate
fi

%pre master
getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet

%if 0%{?has_systemd}
%service_add_pre puppetmaster.service
%endif

%preun master
%if 0%{?has_systemd}
%service_del_preun puppetmaster.service
%endif

%if 0%{?suse_version} == 1110
%stop_on_removal %{name}
%endif

%postun master
%if 0%{?has_systemd}
%service_del_postun puppetmaster.service
%endif

%if 0%{?suse_version} == 1110
%insserv_cleanup
%endif

%post master
# Compatibility with old setups
if [ -f /etc/sysconfig/puppetmasterd ] && [ -z "`grep 
'PUPPETMASTER_EXTRA_OPTS="' /etc/sysconfig/puppetmasterd | grep ' 
--manifest=${PUPPETMASTER_MANIFEST} --masterport=${PUPPETMASTER_PORTS[0]} 
--logdest ${PUPPETMASTER_LOG}"'`" ]; then
    echo 'PUPPETMASTER_EXTRA_OPTS=" --manifest=${PUPPETMASTER_MANIFEST} 
--masterport=${PUPPETMASTER_PORTS[0]} --logdest ${PUPPETMASTER_LOG} 
${PUPPETMASTER_EXTRA_OPTS}' >>  /etc/sysconfig/puppet
fi

%if 0%{?has_systemd}
%service_add_post puppetmaster.service
%endif

if [ -f /run/puppet_migrate ]; then
cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} << EOF
Warning: If you used puppet on openSUSE/SLE before be aware, that service is now
Warning: called puppemaster instead of puppetmasterd. This was done to comply
Warning: with upstream naming of the service and hopefully with everybody else
EOF
rm -f /run/puppet_migrate
fi


%package vim
Summary:     Vim syntax files for Puppet manifests
Group:       Productivity/Text/Editors
Requires:    vim
%if 0%{?suse_version} > 1110
BuildArch:   noarch
%endif
Supplements: packageand(vim:%{name})
Provides:    puppet-vim = %{version}-%{release}
Obsoletes:   puppet-vim < %{version}-%{release}

# Requires:      rubygem-puppet = 3.7.3
%description vim
Vim ftdetect and syntax files for Puppet manifests

%files vim
%defattr(-,root,root,-)
%dir %{vim_data_dir}/ftdetect
%{vim_data_dir}/ftdetect/%{mod_name}.vim
%{vim_data_dir}/ftplugin/%{mod_name}.vim
%{vim_data_dir}/indent/%{mod_name}.vim
%{vim_data_dir}/syntax/%{mod_name}.vim


%package emacs
Summary:     Emacs syntax files for Puppet
Group:       Productivity/Text/Editors
Requires:    emacs
%if 0%{?suse_version} > 1110
BuildArch:   noarch
%endif
Supplements: packageand(emacs:%{name})
Provides:    puppet-emacs = %{version}-%{release}

# Requires:      rubygem-puppet = 3.7.3
%description emacs
Emacs syntax files for Puppet manifests

%files emacs
%defattr(-,root,root,-)
# emacs-mode files
%if 0%{?suse_version} <= 1230
%{_datadir}/emacs/site-lisp/site-start.d
%endif
%{_datadir}/emacs/site-lisp/puppet-mode.el
%{_datadir}/emacs/site-lisp/site-start.d/puppet-mode-init.el


%gem_packages

%changelog
++++++ gem2rpm.yml ++++++
:license: Apache-2.0
:sources:
  - puppetmaster.fw
  - puppet.fw
: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.
:main:
  :preamble: |-
    Provides:   %{mod_name} = %{version}-%{release}
    Obsoletes:  %{mod_name} < %{version}-%{release}
    Provides:   hiera-puppet >= 1.0.0
    Obsoletes:  hiera-puppet < 1.0.0
    Requires:   %{name}
    Recommends: rubygem(%{rb_default_ruby_abi}:%{mod_name})
    Recommends: rubygem(augeas)
    Recommends: rubygem(ruby-shadow)
:preamble: |-
  # backward compatible requirement SLE...
  %{?!_initddir:%define _initddir %_initrddir}

  %define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
  %define _unitdir /usr/lib/systemd
  %{!?vim_data_dir:%global vim_data_dir %{_datadir}/vim/%(readlink 
%{_datadir}/vim/current)}

  # not really required, but we don't want to own their dirs
  BuildRequires: vim
  BuildRequires: emacs-nox

  BuildRequires: fdupes
  Requires(pre): /usr/sbin/groupadd
  Requires(pre): /usr/sbin/useradd
  %if 0%{?suse_version} >= 1210
  BuildRequires: systemd
  %{?systemd_requires}
  %define has_systemd 1
  %endif
  PreReq:        rubygem(%{mod_name})
  #!BuildIgnore: rubygem(%{mod_name})
:post_install: |-
  gemdir="%{buildroot}$(gem env gemdir)/gems/%{mod_full_name}"
  mkdir -p %{buildroot}%{_sbindir}
  mkdir -p %{buildroot}%{_localstatedir}/lib/%{mod_name}
  mkdir -p %{buildroot}%{_localstatedir}/log/%{mod_name}
  mkdir -p %{buildroot}%{_fwdefdir}
  mkdir -p %{buildroot}%{_unitdir}/system
  install -Dm0644 $gemdir/ext/redhat/%{mod_name}.conf 
%{buildroot}%{_sysconfdir}/%{mod_name}/%{mod_name}.conf
  for config_file in auth fileserver tagmail ; do
      install -m0644 $gemdir/conf/$config_file.conf 
%{buildroot}%{_sysconfdir}/%{mod_name}/$config_file.conf
  done
  %if 0%{?has_systemd}
  ln -sf service %{buildroot}/%{_sbindir}/rcpuppet
  ln -sf service %{buildroot}/%{_sbindir}/rcpuppetmaster
  %else
  mkdir -p %{buildroot}%_initddir
  # fix old port arg
  sed -i 's/--port/--masterport/' $gemdir/ext/suse/client.init
  install -m0755 $gemdir/ext/suse/client.init %{buildroot}/%_initddir/puppet
  install -m0755 $gemdir/ext/suse/server.init 
%{buildroot}/%_initddir/puppetmaster
  ln -sf %_initddir/puppet %{buildroot}/%{_sbindir}/rcpuppet
  ln -sf %_initddir/puppetmaster %{buildroot}/%{_sbindir}/rcpuppetmaster
  %endif

  install -m 644 %{SOURCE1} %{buildroot}/%{_fwdefdir}/puppetmasterd
  install -m 644 %{SOURCE2} %{buildroot}/%{_fwdefdir}/puppet
  # Latest git calls the service for agent puppet again
  install -m 644 $gemdir/ext/systemd/puppet.service  
%{buildroot}%{_unitdir}/system/puppet.service
  install -m 644 $gemdir/ext/systemd/puppetmaster.service 
%{buildroot}%{_unitdir}/system/puppetmaster.service

  for mandirX in $(ls $gemdir/man); do
      for manpage in $(ls $gemdir/man/$mandirX); do
          install -Dm0444 $gemdir/man/$mandirX/$manpage 
%{buildroot}/%{_mandir}/$mandirX/$manpage
      done
  done

  %fdupes -s %{buildroot}%{_mandir}

  # Install vim syntax files
  install -Dp -m0644 $gemdir/ext/vim/ftdetect/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/ftdetect/%{mod_name}.vim
  install -Dp -m0644 $gemdir/ext/vim/ftplugin/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/ftplugin/%{mod_name}.vim
  install -Dp -m0644 $gemdir/ext/vim/indent/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/indent/%{mod_name}.vim
  install -Dp -m0644 $gemdir/ext/vim/syntax/%{mod_name}.vim 
%{buildroot}%{vim_data_dir}/syntax/%{mod_name}.vim

  # Install emacs mode files
  emacsdir=%{buildroot}%{_datadir}/emacs/site-lisp
  install -Dp -m0644 $gemdir/ext/emacs/puppet-mode.el $emacsdir/puppet-mode.el
  install -Dp -m0644 $gemdir/ext/emacs/puppet-mode-init.el 
$emacsdir/site-start.d/puppet-mode-init.el

  # Remove those dirs as they cause strange runtime dependencies
  rm -rf $gemdir/ext/{debian,gentoo}
:scripts:
  :pre: |-
    getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
    getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet
    %if 0%{?has_systemd}
    %service_add_pre puppet.service
    %endif
  :preun: |-
    %if 0%{?has_systemd}
    %service_del_preun puppet.service
    %endif

    %if 0%{?suse_version} == 1110
    %stop_on_removal %{name}
    %endif
  :postun: |-
    %if 0%{?has_systemd}
    %service_del_postun puppet.service
    %endif

    %if 0%{?suse_version} == 1110
    %insserv_cleanup
    %endif
  :post: |-
    # Compatibility with old setups
    if [ -f /etc/sysconfig/puppet ] && [ -z "`grep 'PUPPET_EXTRA_OPTS="' 
/etc/sysconfig/puppet | grep ' --server=${PUPPET_SERVER} 
--masterport=${PUPPET_PORT} --logdest=${PUPPET_LOG}"'`" ]; then
        echo 'PUPPET_EXTRA_OPTS=" --server=${PUPPET_SERVER} 
--masterport=${PUPPET_PORT} --logdest=${PUPPET_LOG} ${PUPPET_EXTRA_OPTS}"' >>  
/etc/sysconfig/puppet
    fi

    %if 0%{?has_systemd}
    %service_add_post puppet.service
    %endif
:filelist: |-
  %attr(0750,%{mod_name},%{mod_name}) %dir %{_localstatedir}/lib/%{mod_name}
  %attr(0750,%{mod_name},%{mod_name}) %dir %{_localstatedir}/log/%{mod_name}
  %dir %{_sysconfdir}/%{mod_name}
  %config(noreplace) %{_sysconfdir}/%{mod_name}/%{mod_name}.conf
  %config(noreplace) %{_sysconfdir}/%{mod_name}/auth.conf
  %config(noreplace) %{_sysconfdir}/%{mod_name}/fileserver.conf
  %config(noreplace) %{_sysconfdir}/%{mod_name}/tagmail.conf
  %config(noreplace) %{_fwdefdir}/%{mod_name}
  %{_mandir}/man?/*
  %{_sbindir}/rcpuppet
  %{_unitdir}/system/%{mod_name}.service
  %if 0%{?suse_version} == 1110
  %_initddir/%{mod_name}
  %dir /usr/lib/systemd
  %dir /usr/lib/systemd/system
  %endif
:custom_pkgs:
  :master:
    :preamble: |-
      Summary:   A network tool for managing many disparate systems
      Group:     Productivity/Networking/System
      PreReq:    rubygem(%{mod_name})
      Obsoletes: puppet-server <= 3.7.3
      Provides:  puppet-master = %{version}-%{release}
      Provides:  puppetmaster = %{version}-%{release}
      %if 0%{?suse_version} > 1210
      %{?systemd_requires}
      %endif
    :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.
    :scripts:
      :pretrans: |-
        if [ -x /usr/bin/puppet ] && [ "`/usr/bin/puppet --version | grep 
'^3.3.1'`" ]; then
            echo old > /run/puppet_migrate
        fi
      :pre: |-
        getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
        getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet

        %if 0%{?has_systemd}
        %service_add_pre puppetmaster.service
        %endif
      :preun: |-
        %if 0%{?has_systemd}
        %service_del_preun puppetmaster.service
        %endif

        %if 0%{?suse_version} == 1110
        %stop_on_removal %{name}
        %endif
      :postun: |-
        %if 0%{?has_systemd}
        %service_del_postun puppetmaster.service
        %endif

        %if 0%{?suse_version} == 1110
        %insserv_cleanup
        %endif
      :post: |-
        # Compatibility with old setups
        if [ -f /etc/sysconfig/puppetmasterd ] && [ -z "`grep 
'PUPPETMASTER_EXTRA_OPTS="' /etc/sysconfig/puppetmasterd | grep ' 
--manifest=${PUPPETMASTER_MANIFEST} --masterport=${PUPPETMASTER_PORTS[0]} 
--logdest ${PUPPETMASTER_LOG}"'`" ]; then
            echo 'PUPPETMASTER_EXTRA_OPTS=" --manifest=${PUPPETMASTER_MANIFEST} 
--masterport=${PUPPETMASTER_PORTS[0]} --logdest ${PUPPETMASTER_LOG} 
${PUPPETMASTER_EXTRA_OPTS}' >>  /etc/sysconfig/puppet
        fi

        %if 0%{?has_systemd}
        %service_add_post puppetmaster.service
        %endif

        if [ -f /run/puppet_migrate ]; then
        cat > 
%{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} << EOF
        Warning: If you used puppet on openSUSE/SLE before be aware, that 
service is now
        Warning: called puppemaster instead of puppetmasterd. This was done to 
comply
        Warning: with upstream naming of the service and hopefully with 
everybody else
        EOF
        rm -f /run/puppet_migrate
        fi
    :filelist: |-
      %{_sbindir}/rcpuppetmaster
      %config(noreplace) %{_fwdefdir}/puppetmasterd
      %{_unitdir}/system/puppetmaster.service
      %if 0%{?suse_version} == 1110
      %_initddir/puppetmaster
      %dir /usr/lib/systemd
      %dir /usr/lib/systemd/system
      %endif
  :vim:
    :preamble: |-
      Summary:     Vim syntax files for Puppet manifests
      Group:       Productivity/Text/Editors
      Requires:    vim
      %if 0%{?suse_version} > 1110
      BuildArch:   noarch
      %endif
      Supplements: packageand(vim:%{name})
      Provides:    puppet-vim = %{version}-%{release}
      Obsoletes:   puppet-vim < %{version}-%{release}
    :description: Vim ftdetect and syntax files for Puppet manifests
    :filelist: |-
      %dir %{vim_data_dir}/ftdetect
      %{vim_data_dir}/ftdetect/%{mod_name}.vim
      %{vim_data_dir}/ftplugin/%{mod_name}.vim
      %{vim_data_dir}/indent/%{mod_name}.vim
      %{vim_data_dir}/syntax/%{mod_name}.vim
  :emacs:
    :preamble: |-
      Summary:     Emacs syntax files for Puppet
      Group:       Productivity/Text/Editors
      Requires:    emacs
      %if 0%{?suse_version} > 1110
      BuildArch:   noarch
      %endif
      Supplements: packageand(emacs:%{name})
      Provides:    puppet-emacs = %{version}-%{release}
    :description: Emacs syntax files for Puppet manifests
    :filelist: |-
      # emacs-mode files
      %if 0%{?suse_version} <= 1230
      %{_datadir}/emacs/site-lisp/site-start.d
      %endif
      %{_datadir}/emacs/site-lisp/puppet-mode.el
      %{_datadir}/emacs/site-lisp/site-start.d/puppet-mode-init.el
++++++ puppet.fw ++++++
## Name: Puppet
## Description: Retrieve the client configuration from the central puppet 
server and apply it to the local host.

# space separated list of allowed TCP ports
TCP="8139"

++++++ puppetmaster.fw ++++++
## Name: Puppet
## Description: The central puppet server. Functions as a certificate authority 
by default.

# space separated list of allowed TCP ports
TCP="8140"

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to