packages: lvm2/lvm2.spec - 2.02.94 - merge lvm2-systemd bits into respectiv...

baggins baggins at pld-linux.org
Sat Mar 3 16:46:57 CET 2012


Author: baggins                      Date: Sat Mar  3 15:46:57 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- 2.02.94
- merge lvm2-systemd bits into respective packages

---- Files affected:
packages/lvm2:
   lvm2.spec (1.183 -> 1.184) 

---- Diffs:

================================================================
Index: packages/lvm2/lvm2.spec
diff -u packages/lvm2/lvm2.spec:1.183 packages/lvm2/lvm2.spec:1.184
--- packages/lvm2/lvm2.spec:1.183	Wed Jan 25 16:03:41 2012
+++ packages/lvm2/lvm2.spec	Sat Mar  3 16:46:51 2012
@@ -40,12 +40,12 @@
 Summary:	The new version of Logical Volume Manager for Linux
 Summary(pl.UTF-8):	Nowa wersja Logical Volume Managera dla Linuksa
 Name:		lvm2
-Version:	2.02.88
-Release:	2
+Version:	2.02.94
+Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
-# Source0-md5:	321429cd1b1526a29cf6d75018b1e4bb
+# Source0-md5:	5ca593ec1a0b15902ce3da0fb13ea17b
 Source1:	%{name}-initramfs-hook
 Source2:	%{name}-initramfs-local-top
 Source3:	%{name}-tmpfiles.conf
@@ -102,6 +102,7 @@
 # doesn't work with 2.4 kernels
 Requires:	uname(release) >= 2.6
 Obsoletes:	lvm
+Obsoletes:	lvm2-systemd
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_sbindir	/sbin
@@ -211,14 +212,6 @@
 Obsoletes:	device-mapper-initrd-devel
 Conflicts:	geninitrd < 10000.10
 
-%package systemd
-Summary:	systemd unit for lvm2
-Group:		Daemons
-Requires:	%{name} = %{version}-%{release}
-
-%description systemd
-systemd unit for lvm2.
-
 %description -n device-mapper-initrd
 The goal of this driver is to support volume management. The driver
 enables the definition of new block devices composed of ranges of
@@ -378,25 +371,35 @@
 %post
 /sbin/chkconfig --add lvm2-monitor
 %service lvm2-monitor restart
+%systemd_post lvm2-monitor.service
+
+%preun
+%systemd_preun lvm2-monitor.service
 
 %postun
 if [ "$1" = "0" ]; then
 	%service lvm2-monitor stop
 	/sbin/chkconfig --del lvm2-monitor
 fi
+%systemd_reload
 
-%post   -n device-mapper -p /sbin/ldconfig
-%postun -n device-mapper -p /sbin/ldconfig
+%triggerpostun -- %{name} < 2.02.94-1
+%systemd_trigger lvm2-monitor.service
 
-%post systemd
-%systemd_post lvm2-monitor.service
+%post -n device-mapper
+/sbin/ldconfig
+%systemd_post dm-event.socket
 
-%preun systemd
-%systemd_preun lvm2-monitor.service
+%preun -n device-mapper
+%systemd_preun dm-event.socket dm-event.service
 
-%postun systemd
+%postun -n device-mapper
+/sbin/ldconfig
 %systemd_reload
 
+%triggerpostun -n device-mapper -- device-mapper < 2.02.94-1
+%systemd_trigger dm-event.socket
+
 %files
 %defattr(644,root,root,755)
 %doc README WHATS_NEW doc/*
@@ -413,6 +416,8 @@
 %{_mandir}/man8/vg*.8*
 %attr(750,root,root) %dir %{_sysconfdir}/lvm
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvm.conf
+%{_sysconfdir}/tmpfiles.d/lvm2.conf
+%{systemdunitdir}/lvm2-monitor.service
 %dir %{_sysconfdir}/lvm/cache
 %ghost %{_sysconfdir}/lvm/cache/.cache
 %attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor
@@ -421,6 +426,8 @@
 %files -n device-mapper
 %defattr(644,root,root,755)
 %doc *_DM
+%{systemdunitdir}/dm-event.service
+%{systemdunitdir}/dm-event.socket
 /lib/udev/rules.d/10-dm.rules
 /lib/udev/rules.d/11-dm-lvm.rules
 /lib/udev/rules.d/13-dm-disk.rules
@@ -461,13 +468,6 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/initrd/dmsetup
 
-%files systemd
-%defattr(644,root,root,755)
-%{_sysconfdir}/tmpfiles.d/lvm2.conf
-%{systemdunitdir}/dm-event.service
-%{systemdunitdir}/dm-event.socket
-%{systemdunitdir}/lvm2-monitor.service
-
 %files initrd
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/initrd/lvm
@@ -484,6 +484,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.184  2012/03/03 15:46:51  baggins
+- 2.02.94
+- merge lvm2-systemd bits into respective packages
+
 Revision 1.183  2012/01/25 15:03:41  cactus
 - add systemd support
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lvm2/lvm2.spec?r1=1.183&r2=1.184&f=u



More information about the pld-cvs-commit mailing list