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 = https://sourceware.org/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 = https://sourceware.org/pub/lvm2/
26 sources = %{thisapp}.tgz
39 configure_options += \
40 --with-default-dm-run-dir=/run \
41 --with-default-run-dir=/run/lvm \
42 --with-default-pid-dir=/run/lvm \
43 --with-default-locking-dir=/run/lock/lvm \
44 --with-usrlibdir=%{libdir} \
45 --disable-lvm1_fallback \
48 --with-pool=internal \
49 --enable-write_install \
54 --with-device-mode=0660 \
56 --enable-blkid_wiping \
60 --with-udevdir=%{prefix}/lib/udev/rules.d \
64 # Skip the testsuite, because it requires a mounted
65 # /tmp with support for block devices (without "nodev")
66 # and at least one available loopback device, which is not
67 # available in or chroot build environment.
71 make install_system_dirs DESTDIR=%{BUILDROOT}
72 make install_systemd_units DESTDIR=%{BUILDROOT}
73 make install_systemd_generators DESTDIR=%{BUILDROOT}
74 make install_tmpfiles_configuration DESTDIR=%{BUILDROOT}
76 # Remove /run and it's content.
77 rm -rvf %{BUILDROOT}/run
87 %{name}-libs = %{thisver}
91 systemctl daemon-reload >/dev/null 2>&1 || :
93 # Enable lvm2-monitor.service on completely new installations.
94 systemctl --no-reload enable lvm2-monitor.service >/dev/null 2>&1 || :
98 systemctl --no-reload disable lvm2-monitor.service >/dev/null 2>&1 || :
99 systemctl stop lvm2-monitor.service >/dev/null 2>&1 || :
103 systemctl daemon-reload >/dev/null 2>&1 || :
107 systemctl daemon-reload >/dev/null 2>&1 || :
108 systemctl try-restart lvm2-monitor.service >/dev/null 2>&1 || :
116 libdevmapper = %{thisver}
120 %{libdir}/libdevmapper-event-lvm2.so.* \
121 %{libdir}/device-mapper
124 package %{name}-devel
128 package device-mapper
129 summary = Device mapper utility.
131 This package contains the supporting userspace utility, dmsetup,
132 for the kernel device-mapper and the dmeventd daemon for monitoring
133 the state of device-mapper devices.
140 libdevmapper = %{thisver}
149 %{sbindir}/blkdeactivate
153 %{mandir}/man8/blkdeactivate.8.gz
154 %{mandir}/man8/dmeventd.8.gz
155 %{mandir}/man8/dmsetup.8.gz
156 %{mandir}/man8/dmstats.8.gz
157 %{udevdir}/10-dm.rules
158 %{udevdir}/13-dm-disk.rules
159 %{udevdir}/95-dm-notify.rules
160 %{unitdir}/dm-event.socket
161 %{unitdir}/dm-event.service
165 systemctl daemon-reload >/dev/null 2>&1 || :
167 # dm-event.socket is always enabled and started and ready to
168 # serve if dmeventd is used.
169 systemctl --no-reload enable dm-event.socket >/dev/null 2>&1 || :
173 systemctl --no-reload disable dm-event.service >/dev/null 2>&1 || :
174 systemctl --no-reload disable dm-event.socket >/dev/null 2>&1 || :
175 systemctl stop dm-event.socket >/dev/null 2>&1 || :
176 systemctl stop dm-event.service >/dev/null 2>&1 || :
180 systemctl daemon-reload >/dev/null 2>&1 || :
184 systemctl daemon-reload >/dev/null 2>&1 || :
185 systemctl try-restart dm-event.service >/dev/null 2>&1 || :
192 summary = Device-mapper shared libraries.
194 This package contains the device-mapper shared libraries,
195 libdevmapper and libdevmapper-event.
199 %{libdir}/libdevmapper.so.*
200 %{libdir}/libdevmapper-event.so.*
204 package libdevmapper-devel
205 summary = Development libraries and headers for the device-mapper.
207 This package contains files needed to develop applications that use
208 the device-mapper libraries.
212 libdevmapper = %{thisver}
216 %{libdir}/libdevmapper.so
217 %{libdir}/libdevmapper-event.so
218 %{includedir}/libdevmapper.h
219 %{includedir}/libdevmapper-event.h
220 %{libdir}/pkgconfig/devmapper.pc
221 %{libdir}/pkgconfig/devmapper-event.pc
225 package %{name}-debuginfo