diff --git a/autodist.spec b/autodist.spec index cbefac4..01d8bab 100644 --- a/autodist.spec +++ b/autodist.spec @@ -2,15 +2,15 @@ %define autodist_gid 65415 Name: autodist -Version: 0.9.19 +Version: 0.9.20 Release: 1mamba Summary: A tool based on autospec for repository-level automatic builds Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.openmamba.org -Source: http://www.openmamba.org/distribution/sources/autodist-%{version}.tar.bz2 +URL: http://gitlab.mambasoft.it/openmamba/autodist +Source: http://gitlab.mambasoft.it/openmamba/autodist.git/v%{version}/autodist-%{version}.tar.bz2 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch @@ -21,6 +21,7 @@ Requires: rpm Requires: vixie-cron Requires: autospec >= 0.9.7 Requires: lynx +%systemd_requires %description A tool based on autospec for repository-level automatic builds. @@ -56,14 +57,25 @@ if [ $1 -ge 1 ]; then /usr/sbin/useradd -u %{autodist_uid} -c 'Automatic Build System' -d /var/autodist -g autodist -G packager,tty \ -s /bin/bash autodist 2>/dev/null fi -exit 0 +: + +%post +if [ $1 -ge 1 ]; then +# for daemon-reload +%systemd_postun +%tmpfiles_create %{name}.conf +fi +: %preun if [ $1 -eq 0 ]; then /usr/sbin/groupdel autodist 2>/dev/null /usr/sbin/userdel autodist 2>/dev/null fi -exit 0 +: + +%postun +%systemd_postun %files %defattr(-,root,root) @@ -89,6 +101,7 @@ exit 0 %{_sbindir}/autodist-upstream-updates %{_sbindir}/automaint %{_sbindir}/autoport-chroot +%{_prefix}/lib/tmpfiles.d/autodist.conf %dir %{_datadir}/autodist %{_datadir}/autodist/webbuild-functions %attr(4775,root,packager) %{_bindir}/autoport-fix-environment @@ -98,7 +111,6 @@ exit 0 %config %attr(0664,autodist,packager) /var/autodist/.bashrc %attr(0775,autodist,packager) %dir /var/autodist/RPM %attr(0775,autodist,packager) /var/autodist/RPM/* -%attr(0775,autodist,packager) %dir /var/run/autodist %attr(0775,autodist,packager) %dir /var/autodist/template %attr(0775,autodist,packager) %dir /var/autodist/template/autoupdate %config %attr(0664,root,packager) /var/autodist/template/autoupdate/auto.success @@ -135,6 +147,9 @@ exit 0 %config(noreplace) %attr(0600,apache,nobody) %{_localstatedir}/webbuild/users/admin.conf %changelog +* Thu Nov 13 2014 Silvan Calarco 0.9.20-1mamba +- update to 0.9.20 + * Fri Sep 05 2014 Silvan Calarco 0.9.19-1mamba - update to 0.9.19