From 87656c0a2d3aaaf87f03294ddec2ac2b1eb97d5d Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Jul 20 2011 10:32:41 +0000 Subject: Fix broken lvm2-sysinit Requires: lvm2 dependency. --- 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 @@ -400,6 +400,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 ############################################################################## %package -n device-mapper @@ -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.