]> git.ipfire.org Git - ipfire-3.x.git/blame - lvm2/lvm2.nm
vim: Rebuild against glibc
[ipfire-3.x.git] / lvm2 / lvm2.nm
CommitLineData
49ff56a7 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
49ff56a7
MT
4###############################################################################
5
98583dbe 6name = lvm2
e2b2e874 7version = 2.03.16
6ef843bc 8release = 2
98583dbe 9thisapp = LVM2.%{version}
49ff56a7 10
802ea3af 11groups = System/Base
e2b2e874 12url = https://sourceware.org/lvm2/
802ea3af
MT
13license = GPLv2
14summary = Userland logical volume management tools.
49ff56a7 15
802ea3af 16description
0e683182
MT
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
49ff56a7 22 (kind of logical partitions) in volume groups.
802ea3af
MT
23end
24
e2b2e874 25source_dl = https://sourceware.org/pub/lvm2/
802ea3af
MT
26sources = %{thisapp}.tgz
27
28build
29 requires
802ea3af 30 pkg-config
e2b2e874 31 libaio-devel
42861d42
SS
32 libblkid-devel
33 libudev-devel
802ea3af
MT
34 ncurses-devel
35 readline-devel
42861d42 36 systemd-devel
802ea3af
MT
37 end
38
39 configure_options += \
42861d42
SS
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 \
61a17f83 44 --with-usrlibdir=%{libdir} \
42861d42
SS
45 --disable-lvm1_fallback \
46 --disable-selinux \
47 --enable-fsadm \
48 --with-pool=internal \
49 --enable-write_install \
50 --with-user= \
51 --with-group= \
52 --with-device-uid=0 \
53 --with-device-gid=6 \
54 --with-device-mode=0660 \
55 --enable-dmeventd \
56 --enable-blkid_wiping \
57 --enable-pkgconfig \
58 --enable-applib \
59 --enable-cmdlib \
60 --with-udevdir=%{prefix}/lib/udev/rules.d \
61 --enable-udev_sync
62
63 test
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.
68 end
69
70 install_cmds
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}
6ef843bc
SS
75
76 # Remove /run and it's content.
77 rm -rvf %{BUILDROOT}/run
42861d42 78 end
802ea3af
MT
79end
80
81packages
82 package %{name}
42861d42
SS
83 prerequires += \
84 systemd-units
85
86 requires
87 %{name}-libs = %{thisver}
88 end
89
90 script postin
91 systemctl daemon-reload >/dev/null 2>&1 || :
92
93 # Enable lvm2-monitor.service on completely new installations.
94 systemctl --no-reload enable lvm2-monitor.service >/dev/null 2>&1 || :
95 end
96
97 script preun
98 systemctl --no-reload disable lvm2-monitor.service >/dev/null 2>&1 || :
99 systemctl stop lvm2-monitor.service >/dev/null 2>&1 || :
100 end
101
102 script postun
103 systemctl daemon-reload >/dev/null 2>&1 || :
104 end
105
106 script postup
107 systemctl daemon-reload >/dev/null 2>&1 || :
108 systemctl try-restart lvm2-monitor.service >/dev/null 2>&1 || :
109 end
110 end
111
112 package %{name}-libs
113 template LIBS
114
115 requires
116 libdevmapper = %{thisver}
117 end
118
119 files += \
120 %{libdir}/libdevmapper-event-lvm2.so.* \
121 %{libdir}/device-mapper
122 end
123
124 package %{name}-devel
125 template DEVEL
126 end
127
128 package device-mapper
129 summary = Device mapper utility.
130 description
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.
134 end
135
136 prerequires += \
137 systemd-units
138
139 requires
140 libdevmapper = %{thisver}
141 util-linux >= 2.24
142 end
143
144 conflicts
145 dracut < 002
146 end
147
148 files
149 %{sbindir}/blkdeactivate
150 %{sbindir}/dmeventd
151 %{sbindir}/dmsetup
152 %{sbindir}/dmstats
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
162 end
163
164 script postin
165 systemctl daemon-reload >/dev/null 2>&1 || :
166
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 || :
170 end
171
172 script preun
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 || :
177 end
178
179 script postun
180 systemctl daemon-reload >/dev/null 2>&1 || :
181 end
182
183 script postup
184 systemctl daemon-reload >/dev/null 2>&1 || :
185 systemctl try-restart dm-event.service >/dev/null 2>&1 || :
186 end
187 end
1f9bc2f0 188
802ea3af
MT
189 package libdevmapper
190 template LIBS
42861d42
SS
191
192 summary = Device-mapper shared libraries.
193 description
194 This package contains the device-mapper shared libraries,
195 libdevmapper and libdevmapper-event.
196 end
197
198 files
199 %{libdir}/libdevmapper.so.*
200 %{libdir}/libdevmapper-event.so.*
201 end
802ea3af 202 end
1f9bc2f0 203
802ea3af 204 package libdevmapper-devel
42861d42
SS
205 summary = Development libraries and headers for the device-mapper.
206 description
207 This package contains files needed to develop applications that use
208 the device-mapper libraries.
209 end
210
211 requires
212 libdevmapper = %{thisver}
213 end
214
215 files
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
222 end
802ea3af 223 end
1f9bc2f0
MT
224
225 package %{name}-debuginfo
226 template DEBUGINFO
227 end
802ea3af 228end