[at: 3/3] Fix license field. Fix systemd macros in scriptlets part of the specfile.

Marcela Mašláňová mmaslano at fedoraproject.org
Thu Nov 1 13:12:05 UTC 2012


commit 6c1de80a0b05139d92c084aca6b0889cb73fabb5
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Thu Nov 1 14:11:37 2012 +0100

    Fix license field. Fix systemd macros in scriptlets part of the specfile.

 at.spec |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/at.spec b/at.spec
index f8b209e..d7f3abc 100644
--- a/at.spec
+++ b/at.spec
@@ -3,8 +3,9 @@
 Summary:	Job spooling tools
 Name:		at
 Version:	3.1.13
-Release:	9%{dist}
-License:	GPLv2+
+Release:	10%{dist}
+# parsetime.pl is under ISC
+License:	GPLv2+ and ISC
 Group:		System Environment/Daemons
 URL:		http://ftp.debian.org/debian/pool/main/a/at
 Source:		http://ftp.debian.org/debian/pool/main/a/at/at_%{version}.orig.tar.gz
@@ -139,18 +140,13 @@ make test
 touch %{_localstatedir}/spool/at/.SEQ
 chmod 600 %{_localstatedir}/spool/at/.SEQ
 chown daemon:daemon %{_localstatedir}/spool/at/.SEQ
-/bin/systemctl enable atd.service >/dev/null 2>&1 || :
+%systemd_post atd.service
 
 %preun
-if [ "$1" = "0" ] ; then
-	/bin/systemctl disable atd.service >/dev/null 2>&1 || :
-	/bin/systemctl stop atd.service > /dev/null 2>&1 || :
-fi
+%systemd_preun atd.service
 
 %postun
-if [ "$1" -ge "1" ]; then
-	/bin/systemctl try-restart atd.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart atd.service
 
 %triggerun -- at < 3.1.12-6
 # Save the current service runlevel info
@@ -189,6 +185,10 @@ fi
 %attr(0755,root,root)		%{_initrddir}/atd
 
 %changelog
+* Thu Nov  1 2012 Marcela Mašláňová <mmaslano at redhat.com> - 3.1.13-10
+- fix license field
+- fix systemd macros in scriptlets part of the specfile
+
 * Fri Jul 27 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.13-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list