automatic version update by autodist [release 8.10.0-1mamba;Thu Dec 25 2025]
This commit is contained in:
Binary file not shown.
Binary file not shown.
+25
-56
@@ -2,14 +2,14 @@
|
||||
%define puppet_userid 65432
|
||||
|
||||
Name: puppet
|
||||
Version: 6.16.0
|
||||
Version: 8.10.0
|
||||
Release: 1mamba
|
||||
Summary: An automated administrative engine for your Linux, Unix, and Windows systems
|
||||
Group: System/Management
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://puppetlabs.com/
|
||||
URL: https://www.puppet.com/
|
||||
Source: https://rubygems.org/downloads/puppet-%{version}.gem
|
||||
License: Apache License 2.0
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
@@ -21,13 +21,15 @@ Requires: ruby-hiera
|
||||
Requires: ruby-json_pure
|
||||
Requires: ruby-rgen
|
||||
Requires(pre): pwdutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Provides: user(puppet)
|
||||
Provides: group(puppet)
|
||||
|
||||
%description
|
||||
Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks (such as adding users, installing packages, and updating server configurations) based on a centralized specification.
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
|
||||
%build
|
||||
|
||||
@@ -36,21 +38,7 @@ Puppet, an automated administrative engine for your Linux, Unix, and Windows sys
|
||||
gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
|
||||
|
||||
gem install --no-user-install --ignore-dependencies -i "%{buildroot}$gemdir" \
|
||||
--no-ri --no-rdoc -n "%{buildroot}/usr/bin" "%{SOURCE0}"
|
||||
|
||||
## Set up vim and emacs
|
||||
#install -Dp -m0644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/ext/vim/ftdetect/puppet.vim \
|
||||
# %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/puppet.vim
|
||||
#install -Dp -m0644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/ext/vim/syntax/puppet.vim \
|
||||
# %{buildroot}%{_datadir}/vim/vimfiles/syntax/puppet.vim
|
||||
#install -Dp -m0644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/ext/emacs/puppet-mode.el \
|
||||
# %{buildroot}%{_datadir}/emacs/site-lisp/puppet-mode.el
|
||||
#install -Dp -m0644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/ext/emacs/puppet-mode-init.el \
|
||||
# %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d/puppet-mode-init.el
|
||||
-n "%{buildroot}/usr/bin" "%{SOURCE0}"
|
||||
|
||||
# Configuration and rc scripts
|
||||
install -Dm 644 \
|
||||
@@ -60,28 +48,17 @@ install -Dm 644 \
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/conf/fileserver.conf \
|
||||
%{buildroot}%{_sysconfdir}/puppet/fileserver.conf
|
||||
install -Dm 644 \
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/conf/auth.conf \
|
||||
%{buildroot}%{_sysconfdir}/puppet/auth.conf
|
||||
#install -Dm 644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/conf/tagmail.conf \
|
||||
# %{buildroot}%{_sysconfdir}/puppet/tagmail.conf
|
||||
|
||||
# Setup tmpfiles.d config
|
||||
install -d %{buildroot}%{_libdir}/tmpfiles.d/
|
||||
echo "D /run/puppet 0755 puppet puppet -" > %{buildroot}%{_libdir}/tmpfiles.d/puppet.conf
|
||||
|
||||
# Logrotate
|
||||
install -Dm 644 \
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/ext/redhat/logrotate \
|
||||
%{buildroot}%{_sysconfdir}/logrotate.d/puppet
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/conf/environment.conf \
|
||||
%{buildroot}%{_sysconfdir}/puppet/environment.conf
|
||||
|
||||
# Systemd files
|
||||
install -Dm 644 \
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/ext/systemd/puppet.service \
|
||||
%{buildroot}/lib/systemd/system/puppet.service
|
||||
#install -Dm 644 \
|
||||
# %{buildroot}${gemdir}/gems/puppet-%{version}/ext/systemd/puppetmaster.service \
|
||||
# %{buildroot}/lib/systemd/system/puppetmaster.service
|
||||
%{buildroot}%{_unitdir}/puppet.service
|
||||
|
||||
# Setup tmpfiles.d config
|
||||
install -d %{buildroot}%{_tmpfilesdir}
|
||||
echo "D /run/puppet 0755 puppet puppet -" > %{buildroot}%{_tmpfilesdir}/puppet.conf
|
||||
|
||||
# Create puppet homedir and hieradir
|
||||
install -d %{buildroot}/var/lib/puppet
|
||||
@@ -90,8 +67,7 @@ install -d %{buildroot}%{_mandir}
|
||||
mv %{buildroot}${gemdir}/gems/puppet-%{version}/man/* %{buildroot}/usr/share/man
|
||||
|
||||
rm -rf \
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/ext/{autotest,debian,freebsd,\
|
||||
gentoo,osx,redhat,solaris,suse,windows}
|
||||
%{buildroot}${gemdir}/gems/puppet-%{version}/ext/{debian,osx,redhat,solaris,suse,systemd,windows}
|
||||
|
||||
rm -f %{buildroot}${gemdir}/cache/puppet-%{version}.gem
|
||||
|
||||
@@ -99,6 +75,7 @@ rm -f %{buildroot}${gemdir}/cache/puppet-%{version}.gem
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%pre
|
||||
%tmpfiles_create puppet
|
||||
if [ $1 -ge 1 ]; then
|
||||
groupadd puppet -g %{puppet_groupid} 2>/dev/null
|
||||
useradd -u %{puppet_userid} -c 'Puppet service' -d /dev/null -g puppet \
|
||||
@@ -107,12 +84,11 @@ fi
|
||||
:
|
||||
|
||||
%post
|
||||
if [ $1 -ge 1 ]; then
|
||||
systemctl -q daemon-reload
|
||||
fi
|
||||
%systemd_post puppet
|
||||
:
|
||||
|
||||
%preun
|
||||
%systemd_preun puppet
|
||||
if [ $1 -eq 0 ]; then
|
||||
groupdel puppet 2>/dev/null
|
||||
userdel puppet 2>/dev/null
|
||||
@@ -120,36 +96,29 @@ fi
|
||||
:
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl -q daemon-reload
|
||||
fi
|
||||
%systemd_postun_with_restart puppet
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_sysconfdir}/puppet
|
||||
%config(noreplace) %{_sysconfdir}/puppet/auth.conf
|
||||
%config(noreplace) %{_sysconfdir}/puppet/environment.conf
|
||||
%config(noreplace) %{_sysconfdir}/puppet/fileserver.conf
|
||||
%config(noreplace) %{_sysconfdir}/puppet/puppet.conf
|
||||
#%config(noreplace) %{_sysconfdir}/puppet/tagmail.conf
|
||||
%{_sysconfdir}/logrotate.d/puppet
|
||||
%{_bindir}/puppet
|
||||
%{_libdir}/ruby/gems/*/specifications/puppet-%{version}.gemspec
|
||||
%dir %{_libdir}/ruby/gems/*/gems/puppet-%{version}
|
||||
%{_libdir}/ruby/gems/*/gems/puppet-%{version}/*
|
||||
/lib/systemd/system/puppet.service
|
||||
#/lib/systemd/system/puppetmaster.service
|
||||
%{_libdir}/tmpfiles.d/puppet.conf
|
||||
#%{_datadir}/emacs/site-lisp/puppet-mode.el
|
||||
#%{_datadir}/emacs/site-lisp/site-start.d/puppet-mode-init.el
|
||||
#%{_datadir}/vim/vimfiles/ftdetect/puppet.vim
|
||||
#%{_datadir}/vim/vimfiles/syntax/puppet.vim
|
||||
%{_unitdir}/puppet.service
|
||||
%{_tmpfilesdir}/puppet.conf
|
||||
%{_mandir}/man5/puppet.conf.5*
|
||||
#%{_mandir}/man8/extlookup2hiera.8*
|
||||
%{_mandir}/man8/puppet*.8*
|
||||
%attr(0755,puppet,puppet) %dir /var/lib/puppet
|
||||
|
||||
%changelog
|
||||
* Thu Dec 25 2025 Automatic Build System <autodist@openmamba.org> 8.10.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jun 18 2020 Automatic Build System <autodist@mambasoft.it> 6.16.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user