1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = LVM2.%{version}
12 url = http://sources.redhat.com/lvm2/
14 summary = Userland logical volume management tools.
17 LVM2 includes all of the support for handling read/write operations on
18 physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
19 multiple devices (MD), see mdadd(8) or even loop devices, see
20 losetup(8)), creating volume groups (kind of virtual disks) from one
21 or more physical volumes and creating one or more logical volumes
22 (kind of logical partitions) in volume groups.
25 source_dl = ftp://sources.redhat.com/pub/lvm2/
26 sources = %{thisapp}.tgz
38 configure_options += \
39 --with-default-dm-run-dir=/run \
40 --with-default-run-dir=/run/lvm \
41 --with-default-pid-dir=/run/lvm \
42 --with-default-locking-dir=/run/lock/lvm \
43 --with-usrlibdir=%{libdir} \
44 --disable-lvm1_fallback \
47 --with-pool=internal \
48 --enable-write_install \
53 --with-device-mode=0660 \
55 --enable-blkid_wiping \
59 --with-udevdir=%{prefix}/lib/udev/rules.d \
63 # Skip the testsuite, because it requires a mounted
64 # /tmp with support for block devices (without "nodev")
65 # and at least one available loopback device, which is not
66 # available in or chroot build environment.
70 make install_system_dirs DESTDIR=%{BUILDROOT}
71 make install_systemd_units DESTDIR=%{BUILDROOT}
72 make install_systemd_generators DESTDIR=%{BUILDROOT}
73 make install_tmpfiles_configuration DESTDIR=%{BUILDROOT}
83 %{name}-libs = %{thisver}
87 systemctl daemon-reload >/dev/null 2>&1 || :
89 # Enable lvm2-monitor.service on completely new installations.
90 systemctl --no-reload enable lvm2-monitor.service >/dev/null 2>&1 || :
94 systemctl --no-reload disable lvm2-monitor.service >/dev/null 2>&1 || :
95 systemctl stop lvm2-monitor.service >/dev/null 2>&1 || :
99 systemctl daemon-reload >/dev/null 2>&1 || :
103 systemctl daemon-reload >/dev/null 2>&1 || :
104 systemctl try-restart lvm2-monitor.service >/dev/null 2>&1 || :
112 libdevmapper = %{thisver}
116 %{libdir}/libdevmapper-event-lvm2.so.* \
117 %{libdir}/device-mapper
120 package %{name}-devel
124 package device-mapper
125 summary = Device mapper utility.
127 This package contains the supporting userspace utility, dmsetup,
128 for the kernel device-mapper and the dmeventd daemon for monitoring
129 the state of device-mapper devices.
136 libdevmapper = %{thisver}
145 %{sbindir}/blkdeactivate
149 %{mandir}/man8/blkdeactivate.8.gz
150 %{mandir}/man8/dmeventd.8.gz
151 %{mandir}/man8/dmsetup.8.gz
152 %{mandir}/man8/dmstats.8.gz
153 %{udevdir}/10-dm.rules
154 %{udevdir}/13-dm-disk.rules
155 %{udevdir}/95-dm-notify.rules
156 %{unitdir}/dm-event.socket
157 %{unitdir}/dm-event.service
161 systemctl daemon-reload >/dev/null 2>&1 || :
163 # dm-event.socket is always enabled and started and ready to
164 # serve if dmeventd is used.
165 systemctl --no-reload enable dm-event.socket >/dev/null 2>&1 || :
169 systemctl --no-reload disable dm-event.service >/dev/null 2>&1 || :
170 systemctl --no-reload disable dm-event.socket >/dev/null 2>&1 || :
171 systemctl stop dm-event.socket >/dev/null 2>&1 || :
172 systemctl stop dm-event.service >/dev/null 2>&1 || :
176 systemctl daemon-reload >/dev/null 2>&1 || :
180 systemctl daemon-reload >/dev/null 2>&1 || :
181 systemctl try-restart dm-event.service >/dev/null 2>&1 || :
188 summary = Device-mapper shared libraries.
190 This package contains the device-mapper shared libraries,
191 libdevmapper and libdevmapper-event.
195 %{libdir}/libdevmapper.so.*
196 %{libdir}/libdevmapper-event.so.*
200 package libdevmapper-devel
201 summary = Development libraries and headers for the device-mapper.
203 This package contains files needed to develop applications that use
204 the device-mapper libraries.
208 libdevmapper = %{thisver}
212 %{libdir}/libdevmapper.so
213 %{libdir}/libdevmapper-event.so
214 %{includedir}/libdevmapper.h
215 %{includedir}/libdevmapper-event.h
216 %{libdir}/pkgconfig/devmapper.pc
217 %{libdir}/pkgconfig/devmapper-event.pc
221 package %{name}-debuginfo