From 87656c0a2d3aaaf87f03294ddec2ac2b1eb97d5d Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 20 Jul 2011 12:32:41 +0200 Subject: [PATCH] Fix broken lvm2-sysinit Requires: lvm2 dependency. --- lvm2.spec | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/lvm2.spec b/lvm2.spec index c2cdcef..128d4ea 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -39,7 +39,7 @@ Summary: Userland logical volume management tools Name: lvm2 Version: 2.02.86 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 @@ -399,6 +399,26 @@ fi %endif +############################################################################## +# Legacy SysV init subpackage +############################################################################## +%if %{enable_systemd} + +%package sysvinit +Summary: SysV style init script for LVM2. +Group: System Environment/Base +Requires: %{name} = %{version}-%{release} +Requires: initscripts + +%description sysvinit +SysV style init script for LVM2. It needs to be installed only if systemd +is not used as the system init process. + +%files sysvinit +%{_sysconfdir}/rc.d/init.d/lvm2-monitor + +%endif + ############################################################################## # Device-mapper subpackages ############################################################################## @@ -562,24 +582,10 @@ the device-mapper event library. %{_includedir}/libdevmapper-event.h /usr%{_libdir}/pkgconfig/devmapper-event.pc - -%if %{enable_systemd} -# Legacy SysV init script -%package sysvinit -Summary: SysV style init script for LVM2. -Group: System Environment/Base -Requires: %{name} = %{version-release} -Requires: initscripts - -%description sysvinit -SysV style init script for LVM2. It needs to be installed only if systemd -is not used as the system init process. - -%files sysvinit -%{_sysconfdir}/rc.d/init.d/lvm2-monitor -%endif - %changelog +* Wed Jul 20 2011 Peter Rajnoha - 2.02.86-3 +- Fix broken lvm2-sysinit Requires: lvm2 dependency. + * Mon Jul 18 2011 Peter Rajnoha - 2.02.86-2 - Add dm-event and lvm2-monitor unit files for use with systemd. - Add sysvinit subpackage for legacy SysV init script support.