[lvm2] Fix broken lvm2-sysinit Requires: lvm2 dependency.
Peter Rajnoha
prajnoha at fedoraproject.org
Wed Jul 20 10:32:46 UTC 2011
commit 87656c0a2d3aaaf87f03294ddec2ac2b1eb97d5d
Author: Peter Rajnoha <prajnoha at redhat.com>
Date: Wed Jul 20 12:32:41 2011 +0200
Fix broken lvm2-sysinit Requires: lvm2 dependency.
lvm2.spec | 42 ++++++++++++++++++++++++------------------
1 files 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
@@ -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 <prajnoha at redhat.com> - 2.02.86-3
+- Fix broken lvm2-sysinit Requires: lvm2 dependency.
+
* Mon Jul 18 2011 Peter Rajnoha <prajnoha at 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.
More information about the scm-commits
mailing list