Cleaning up the spec file, adding suggestions from ekohl (Ewoud Kohl van Wijngaarden)

epel9
Breno Brand Fernandes 3 years ago
parent f61ad04915
commit 2ab5939cfe

@ -3,7 +3,7 @@
Name: puppet Name: puppet
Version: 7.7.0 Version: 7.7.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Network tool for managing many disparate systems Summary: Network tool for managing many disparate systems
License: ASL 2.0 License: ASL 2.0
URL: https://puppetlabs.com URL: https://puppetlabs.com
@ -95,7 +95,6 @@ install -Dp -m0644 ext/redhat/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/p
%{__install} -d -m0755 %{buildroot}%{_unitdir} %{__install} -d -m0755 %{buildroot}%{_unitdir}
install -Dp -m0644 ext/systemd/puppet.service %{buildroot}%{_unitdir}/puppet.service install -Dp -m0644 ext/systemd/puppet.service %{buildroot}%{_unitdir}/puppet.service
ln -s %{_unitdir}/puppet.service %{buildroot}%{_unitdir}/puppetagent.service
install -Dpv -m0755 %{SOURCE13} \ install -Dpv -m0755 %{SOURCE13} \
%{buildroot}%{nm_dispatcher_dir}/dispatcher.d/98-%{name} %{buildroot}%{nm_dispatcher_dir}/dispatcher.d/98-%{name}
@ -129,7 +128,6 @@ rm %{buildroot}%{_datadir}/puppetlabs/puppet/ext/{build_defaults.yaml,project_da
%attr(-, puppet, puppet) %{_datadir}/puppetlabs/puppet %attr(-, puppet, puppet) %{_datadir}/puppetlabs/puppet
%dir %attr(-, puppet, puppet) %{_datadir}/puppetlabs %dir %attr(-, puppet, puppet) %{_datadir}/puppetlabs
%{_unitdir}/puppet.service %{_unitdir}/puppet.service
%{_unitdir}/puppetagent.service
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%dir %{nm_dispatcher_dir} %dir %{nm_dispatcher_dir}
%dir %{nm_dispatcher_dir}/dispatcher.d %dir %{nm_dispatcher_dir}/dispatcher.d
@ -183,7 +181,7 @@ rm %{buildroot}%{_datadir}/puppetlabs/puppet/ext/{build_defaults.yaml,project_da
%pre %pre
getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null
getent passwd puppet &>/dev/null || \ getent passwd puppet &>/dev/null || \
useradd -r -u 52 -g puppet -d /usr/local/puppetlabs -s /sbin/nologin \ useradd -r -u 52 -g puppet -s /sbin/nologin \
-c "Puppet" puppet &>/dev/null -c "Puppet" puppet &>/dev/null
%post %post
@ -193,6 +191,9 @@ useradd -r -u 52 -g puppet -d /usr/local/puppetlabs -s /sbin/nologin \
%systemd_postun_with_restart puppet.service %systemd_postun_with_restart puppet.service
%changelog %changelog
* Mon Jul 05 2021 Breno Brand Fernandes <brandfbb@gmail.com> - 7.7.0-2
- Cleaning up the spec file, adding suggestions from ekohl (Ewoud Kohl van Wijngaarden)
* Tue Jun 15 2021 Breno Brand Fernandes <brandfbb@gmail.com> - 7.7.0-1 * Tue Jun 15 2021 Breno Brand Fernandes <brandfbb@gmail.com> - 7.7.0-1
- Update to 7.7.0 - latest version that supports ruby 3.0 - Update to 7.7.0 - latest version that supports ruby 3.0

Loading…
Cancel
Save