[bacula] Add checks also for other daemons
Simone Caronni
slaanesh at fedoraproject.org
Wed Oct 17 07:22:37 UTC 2012
commit 50deab800d7182fdcefe3bdd972a1745e7c7ceaf
Author: Simone Caronni <negativo17 at gmail.com>
Date: Wed Oct 17 09:22:29 2012 +0200
Add checks also for other daemons
bacula.spec | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 51cfdf3..66cad03 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -181,12 +181,21 @@ Provides: bacula-storage-sqlite = %{version}-%{release}
Obsoletes: bacula-storage-sqlite < 5.2.0
Provides: bacula-storage-postgresql = %{version}-%{release}
Obsoletes: bacula-storage-postgresql < 5.2.0
-%if 0%{?fedora} || 0%{?rhel} > 6
-Requires(post): systemd-sysv
+
+%if 0%{?fedora} == 16 || 0%{?fedora} == 17
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
-%else
+%endif
+
+%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
+Requires(post): systemd-sysv
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+%endif
+
+%if 0%{?rhel} == 5 || 0%{?rhel} == 6
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
@@ -207,12 +216,21 @@ devices.
Summary: Bacula backup client
Group: System Environment/Daemons
Requires: bacula-common%{?_isa} = %{version}-%{release}
-%if 0%{?fedora} || 0%{?rhel} > 6
-Requires(post): systemd-sysv
+
+%if 0%{?fedora} == 16 || 0%{?fedora} == 17
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
-%else
+%endif
+
+%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
+Requires(post): systemd-sysv
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+%endif
+
+%if 0%{?rhel} == 5 || 0%{?rhel} == 6
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
More information about the scm-commits
mailing list