]> git.pld-linux.org Git - packages/pacemaker.git/commitdiff
fixes in systemd support for -corosync subpackage
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Fri, 21 Jun 2013 12:42:05 +0000 (14:42 +0200)
committerJacek Konieczny <jajcus@jajcus.net>
Fri, 21 Jun 2013 12:42:05 +0000 (14:42 +0200)
dependencies and preun fixes

pacemaker.spec

index fe1ec0b2ac175d077785b0c7dbe6898c10d5f8c3..23cbd2ac763b7bdc749d027c9f54cc3f12adf8b8 100644 (file)
@@ -34,6 +34,7 @@ BuildRequires:        pam-devel
 BuildRequires: pkgconfig
 BuildRequires: python-devel
 BuildRequires: rpm-pythonprov
+BuildRequires:  rpmbuild(macros) >= 1.644
 BuildRequires: swig
 BuildRequires: pciutils-devel
 BuildRequires: cluster-glue-libs-devel
@@ -83,6 +84,7 @@ This package allows using Pacemaker on a Heartbeat cluster.
 Summary:       Pacemaker for Corosync cluster
 Group:         Applications/System
 Requires:      corosync
+Requires:       systemd-units >= 38
 Requires:      %{name} = %{version}-%{release}
 
 %description corosync
@@ -152,7 +154,6 @@ rm -rf $RPM_BUILD_ROOT
 %post corosync
 /sbin/chkconfig --add %{name}
 %service %{name} restart "%{name} daemon"
-
 %systemd_post %{name}.service
 
 %preun
@@ -160,6 +161,8 @@ if [ "$1" = "0" ]; then
         %service %{name} stop
         /sbin/chkconfig --del %{name}
 fi
+
+%preun corosync
 %systemd_preun %{name}.service
 
 %postun corosync
This page took 0.088133 seconds and 4 git commands to generate.