Fix broken lvm2-sysinit Requires: lvm2 dependency.

This commit is contained in:
Peter Rajnoha 2011-07-20 12:32:41 +02:00
parent 4f75fb47b9
commit 87656c0a2d

View File

@ -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 <prajnoha@redhat.com> - 2.02.86-3
- Fix broken lvm2-sysinit Requires: lvm2 dependency.
* Mon Jul 18 2011 Peter Rajnoha <prajnoha@redhat.com> - 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.