[milter-regex] Requires(post): systemd-sysv for sysv-to-systemd migration

Paul Howarth pghmcfc at fedoraproject.org
Mon Jul 25 15:21:37 UTC 2011


commit 41aad0056793fb96be956e61ba9536be4094a2bd
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Jul 25 16:20:52 2011 +0100

    Requires(post): systemd-sysv for sysv-to-systemd migration

 milter-regex.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/milter-regex.spec b/milter-regex.spec
index 656ef47..c29c508 100644
--- a/milter-regex.spec
+++ b/milter-regex.spec
@@ -1,6 +1,6 @@
 Name:		milter-regex
 Version:	1.8
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Milter plug-in for regular expression filtering
 Group:		System Environment/Daemons
 License:	BSD
@@ -18,6 +18,12 @@ Requires(pre): shadow-utils
 Requires(post): systemd-units
 Requires(preun): systemd-units
 Requires(postun): systemd-units
+# This is actually needed for the %%triggerun script but Requires(triggerun)
+# is not valid. We can use %%post because this particular %%triggerun script
+# should fire just after this package is installed. This can be removed for
+# Fedora 18 when there will be no supported Fedora release with the SysV
+# initscript to upgrade from.
+Requires(post): systemd-sysv
 
 %description
 Milter-regex is a milter based filter that makes it possible to filter
@@ -97,6 +103,9 @@ fi
 %{_mandir}/man8/milter-regex.8*
 
 %changelog
+* Mon Jul 25 2011 Paul Howarth <paul at city-fan.org> - 1.8-4
+- Requires(post): systemd-sysv for sysv-to-systemd migration
+
 * Sat Jul 16 2011 Paul Howarth <paul at city-fan.org> - 1.8-3
 - switch from SysV initscript to systemd unit file
 - clean up for modern rpmbuild


More information about the scm-commits mailing list