]> git.pld-linux.org Git - packages/lvm2.git/blame - lvm2.spec
up to 2.03.17
[packages/lvm2.git] / lvm2.spec
CommitLineData
e3a928dc 1# TODO
e3a928dc 2# - vgscan --ignorelocking failure creates /var/lock/lvm (even if /var is not yet mounted)
3fe40949 3# - internal vs shared for snapshots,mirrors,thin,cache ?
dab0ac18 4# note: dmeventd requires mirrors=internal)
1b67453e 5#
99958222 6# Conditional build:
e2727f8c 7# - initrd stuff
54ec8eef 8%bcond_with initrd # build initrd version
54ec8eef 9# - functionality
3fe40949 10%bcond_without cluster # disable all cluster support (cmirrord, dlm support in lvmlockd)
e2727f8c
JB
11%bcond_without lvmdbusd # lvmdbusd
12%bcond_without lvmpolld # lvmpolld (and lvmlockd)
13%bcond_without lvmlockd # lvmlockd
54ec8eef 14%bcond_with sanlock # sanlock support in lvmlockd
54ec8eef
JB
15# - additional features
16%bcond_without selinux # SELinux support
c70b42f6 17
bac719c6
AM
18# lvmlockd requires lvmpolld
19%if %{without lvmpolld}
54ec8eef 20%undefine with_lvmpolld
66800f6a 21%endif
c70b42f6 22
a4b0f7b8
JP
23%if %{without cluster} && %{without sanlock}
24%undefine with_lvmlockd
25%endif
26
5672aa67 27Summary: The new version of Logical Volume Manager for Linux
6536e848 28Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa
7e72c866 29Name: lvm2
dfc0f4f1 30Version: 2.03.17
566ebdd0 31Release: 1
0a81c260 32License: GPL v2 and LGPL v2.1
7e72c866 33Group: Applications/System
b1b9ab67 34Source0: ftp://sourceware.org/pub/lvm2/LVM2.%{version}.tgz
dfc0f4f1 35# Source0-md5: cf6927fcf772b15d5b00f4db938f496a
e2c3c533
JP
36Patch0: device-mapper-dmsetup-export.patch
37Patch1: %{name}-pld_init.patch
38Patch2: device-mapper-dmsetup-deps-export.patch
39Patch3: %{name}-thin.patch
35a842cf 40URL: http://www.sourceware.org/lvm2/
e2727f8c 41BuildRequires: autoconf >= 2.69
dfc0f4f1 42BuildRequires: autoconf-archive
7e72c866 43BuildRequires: automake
54ec8eef
JB
44# for /run detection
45BuildRequires: filesystem >= 3.0-43
dab0ac18 46BuildRequires: libaio-devel
35a842cf 47BuildRequires: libblkid-devel >= 2.24
0dc2b8f2 48%{?with_selinux:BuildRequires: libselinux-devel >= 1.10}
e4a12efb 49%{?with_selinux:BuildRequires: libsepol-devel}
5f0ee085 50BuildRequires: ncurses-devel
3657a56d 51BuildRequires: pkgconfig
e2727f8c
JB
52%if %{with lvmdbusd}
53BuildRequires: python3-dbus
3fe40949 54BuildRequires: python3-devel >= 1:3.2
3f157960 55BuildRequires: python3-pyudev
e2727f8c 56%endif
5f0ee085 57BuildRequires: readline-devel
b5640c74 58BuildRequires: rpmbuild(macros) >= 1.647
e2727f8c 59%{?with_sanlock:BuildRequires: sanlock-devel >= 3.3.0}
b7318447 60BuildRequires: systemd-devel >= 1:221
35a842cf 61BuildRequires: udev-devel >= 1:176
1ccfba6c 62%if %{with initrd}
b64b85c5
ER
63%{?with_selinux:BuildRequires: libselinux-static}
64%{?with_selinux:BuildRequires: libsepol-static}
bac719c6 65BuildRequires: glibc-static
3fe40949
JB
66BuildRequires: libaio-static
67%{?with_selinux:BuildRequires: pcre-static}
8a4b1939 68%else
963b1fae 69Obsoletes: lvm2-initrd < %{version}-%{release}
1ccfba6c 70%endif
7e873dd0 71%if %{with cluster}
3fe40949 72# for cmirrord
5f0ee085 73BuildRequires: corosync-devel
3fe40949 74# for dlm support in lvmlockd
4cb4934b 75BuildRequires: dlm-devel >= 3.99.5
5f0ee085 76%endif
b5640c74 77Requires(post,preun,postun): systemd-units >= 38
0a81c260 78Requires(post,postun): /sbin/chkconfig
b167057a 79Requires: device-mapper >= %{version}-%{release}
0dc2b8f2 80%{?with_selinux:Requires: libselinux >= 1.10}
b5640c74 81Requires: systemd-units >= 38
1534f04d
ER
82# doesn't work with 2.4 kernels
83Requires: uname(release) >= 2.6
3fe40949 84Suggests: thin-provisioning-tools >= 0.7.0
963b1fae 85Obsoletes: lvm < 2
3fe40949 86Obsoletes: lvm2-clvmd < 2.03
963b1fae 87Obsoletes: lvm2-systemd < 2.02.94
7e72c866
JR
88BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
89
90%define _sbindir /sbin
9ab13f24 91%define _usrsbindir /usr/sbin
7e72c866 92
0fbd6aae
ER
93# changing CFLAGS in the middle confuses confcache
94%undefine configure_cache
95
4cb4934b
JK
96# causes: undefined reference to `__stack_chk_fail_local'
97%define filterout_c -fstack-protector
98
bac719c6 99%define skip_post_check_so '.*libdevmapper-event-lvm2.so.*' 'liblvm2cmd.so.*'
f8fa85d0 100
7e72c866
JR
101%description
102This package includes a number of utilities for creating, checking,
103and repairing logical volumes.
104
68d45726
JR
105%description -l pl.UTF-8
106Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
107logicznych wolumenów dyskowych (LVM2).
7e72c866 108
7e72c866 109%package initrd
5672aa67 110Summary: The new version of Logical Volume Manager for Linux - initrd version
6536e848 111Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa - wersja dla initrd
7e72c866 112Group: Base
16ddcbd0 113Conflicts: geninitrd < 10000.18
7e72c866
JR
114
115%description initrd
116This package includes a number of utilities for creating, checking,
117and repairing logical volumes - staticaly linked for initrd.
118
68d45726
JR
119%description initrd -l pl.UTF-8
120Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
121logicznych wolumenów dyskowych (LVM2) - statycznie skonsolidowane na
7e72c866
JR
122potrzeby initrd.
123
7e873dd0
JK
124%package cmirrord
125Summary: Cluster mirror log daemon
41c3aabb 126Summary(pl.UTF-8): Demon śledzący log lustrzany w klastrze
7e873dd0 127Group: Applications/System
1aa2f585 128Requires: %{name} = %{version}-%{release}
7e873dd0
JK
129
130%description cmirrord
4cb4934b
JK
131cmirrord is the daemon that tracks mirror log information in a
132cluster. It is specific to device-mapper based mirrors (and by
133extension, LVM cluster mirrors). Cluster mirrors are not possible
134without this daemon running.
7e873dd0 135
4cb4934b
JK
136This daemon relies on the cluster infrastructure provided by the
137Cluster MANager (CMAN), which must be set up and running in order for
138cmirrord to function.
7e873dd0 139
35a842cf
JB
140%description cmirrord
141cmirrord to demon śledzący informacje logu lustrzanego w klastrze.
142Jest specyficzny dla klastrów lustrzanych opartych na device-mapperze
143(oraz, poprzez rozszerzenie, klastrów lustrzanych LVM). W klastrach
144lustrzanych ten demon jest niezbędny.
145
146Ten demon polega na infrastrukturze klastra dostarczanej przez CMAN
147(Cluster MANager), który musi być skonfigurowany i działający, aby
148działał cmirrord.
149
e2727f8c
JB
150%package dbusd
151Summary: LVM2 D-Bus daemon
152Summary(pl.UTF-8): Demon LVM2 D-Bus
153Group: Daemons
154Requires(post,preun,postun): systemd-units >= 38
155Requires: %{name} = %{version}-%{release}
156Requires: python3-dbus
e2727f8c 157Requires: python3-pygobject3 >= 3
15eca5aa 158Requires: python3-pyudev
e2727f8c
JB
159
160%description dbusd
161Daemon for access to LVM2 functionality through a D-Bus interface.
162
163%description dbusd -l pl.UTF-8
164Demon umożliwiający dostęp do funkcjonalności LVM2 poprzez interfejs
165D-Bus.
166
167%package lockd
168Summary: LVM2 locking daemon
169Summary(pl.UTF-8): Demon blokad LVM2
170Group: Daemons
171Requires(post,preun,postun): systemd-units >= 38
172Requires: %{name} = %{version}-%{release}
e2727f8c 173%{?with_cluster:Requires: dlm-libs >= 3.99.5}
15eca5aa 174%{?with_sanlock:Requires: sanlock-libs >= 3.3.0}
e2727f8c
JB
175
176%description lockd
177LVM commands use lvmlockd to coordinate access to shared storage.
178
179%description lockd -l pl.UTF-8
180Polecenia LVM wykorzystują lvmlockd do koordynowania dostępu do
181współdzielonej pamięci masowej.
182
e55d5c02
JB
183%package resource-agents
184Summary: OCF Resource Agents for LVM2 processes
185Summary(pl.UTF-8): Agenci OCF do monitorowania procesów LVM2
186Group: Applications/System
187Requires: %{name} = %{version}-%{release}
188Requires: resource-agents
189
190%description resource-agents
191OCF Resource Agents for LVM2 processes.
192
193%description resource-agents -l pl.UTF-8
194Agenci OCF do monitorowania procesów LVM2.
195
b167057a
AM
196%package -n device-mapper
197Summary: Userspace support for the device-mapper
198Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika
199Group: Base
e7dd8435 200Requires(post,postun): /sbin/ldconfig
798d7327 201Requires(post,preun,postun): systemd-units >= 38
35a842cf 202Requires: device-mapper-libs = %{version}-%{release}
b5640c74 203Requires: systemd-units >= 38
b167057a
AM
204
205%description -n device-mapper
206The goal of this driver is to support volume management. The driver
207enables the definition of new block devices composed of ranges of
208sectors of existing devices. This can be used to define disk
209partitions - or logical volumes. This light-weight kernel component
210can support user-space tools for logical volume management.
211
212%description -n device-mapper -l pl.UTF-8
213Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
214włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
215sektorów na istniejących urządzeniach. Może to być wykorzystane do
216definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
217składnik jądra może wspierać działające w przestrzeni użytkownika
218narzędzia do zarządzania logicznymi wolumenami.
219
35a842cf
JB
220%package -n device-mapper-libs
221Summary: Device-mapper shared libraries
222Summary(pl.UTF-8): Biblioteki współdzielone device-mappera
223Group: Libraries
35a842cf
JB
224Requires: libblkid >= 2.24
225Requires: udev-libs >= 1:176
3fe40949
JB
226Obsoletes: python-lvm < 2.03
227Obsoletes: python3-lvm < 2.03
15eca5aa 228Conflicts: device-mapper < 2.02.119-1
35a842cf
JB
229
230%description -n device-mapper-libs
231Device-mapper shared libraries.
232
233%description -n device-mapper-libs -l pl.UTF-8
234Biblioteki współdzielone device-mappera.
235
b167057a 236%package -n device-mapper-devel
35a842cf
JB
237Summary: Header files for device-mapper libraries
238Summary(pl.UTF-8): Pliki nagłówkowe bibliotek device-mappera
b167057a 239Group: Development/Libraries
35a842cf
JB
240Requires: device-mapper-libs = %{version}-%{release}
241Requires: libblkid-devel >= 2.24
b167057a
AM
242%if %{with selinux}
243Requires: libselinux-devel
244Requires: libsepol-devel
245%endif
35a842cf 246Requires: udev-devel >= 1:176
3fe40949 247Obsoletes: device-mapper-dietlibc < 2.03
b167057a
AM
248
249%description -n device-mapper-devel
35a842cf 250Header files for device-mapper libraries.
b167057a
AM
251
252%description -n device-mapper-devel -l pl.UTF-8
35a842cf 253Pliki nagłówkowe bibliotek device-mappera.
b167057a
AM
254
255%package -n device-mapper-static
256Summary: Static devmapper library
257Summary(pl.UTF-8): Statyczna biblioteka devmapper
258License: LGPL v2.1
259Group: Development/Libraries
dc900ced 260Requires: device-mapper-devel = %{version}-%{release}
b167057a
AM
261
262%description -n device-mapper-static
263Static devmapper library.
264
265%description -n device-mapper-static -l pl.UTF-8
266Statyczna biblioteka devmapper.
267
4a323c26
JR
268%package -n device-mapper-initrd
269Summary: Userspace support for the device-mapper - initrd version
270Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika - wersja dla initrd
271Group: Base
963b1fae 272Obsoletes: device-mapper-initrd-devel < 2
1f7434e8 273Conflicts: geninitrd < 10000.10
4a323c26
JR
274
275%description -n device-mapper-initrd
276The goal of this driver is to support volume management. The driver
277enables the definition of new block devices composed of ranges of
278sectors of existing devices. This can be used to define disk
279partitions - or logical volumes. This light-weight kernel component
280can support user-space tools for logical volume management.
281
282This package contains dmsetup program linked staticaly for use in
283initrd.
284
285%description -n device-mapper-initrd -l pl.UTF-8
286Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
287włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
288sektorów na istniejących urządzeniach. Może to być wykorzystane do
289definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
290składnik jądra może wspierać działające w przestrzeni użytkownika
291narzędzia do zarządzania logicznymi wolumenami.
292
293Ten pakiet zawiera program dmsetup skonsolidowany statycznie na
294potrzeby initrd.
295
7e72c866 296%prep
ec2de926 297%setup -q -n LVM2.%{version}
bac719c6 298%patch0 -p1
c70b42f6 299%patch1 -p1
9a00e98a 300%patch2 -p1
f0dab9f1 301%patch3 -p1
b5eb9717 302
7e72c866
JR
303%build
304%{__aclocal}
305%{__autoconf}
306
99958222 307%if %{with initrd}
9bdab2f4 308%configure \
4c78aede 309 %{?debug:--enable-debug} \
3fe40949 310 --disable-blkid_wiping \
43435358
JB
311 --disable-nls \
312 --disable-readline \
3fe40949
JB
313 %{!?with_selinux:--disable-selinux} \
314 --disable-silent-rules \
9bdab2f4 315 --enable-static_link \
43435358 316 --with-optimisation="%{rpmcflags} -Os"
4c78aede 317
3fe40949
JB
318echo 'STATIC_LIBS += %{?with_selinux:-lpcre} -lpthread -lm' >> libdm/make.tmpl
319
320%{__make} -j1 -C lib liblvm-internal.a
321
322%{__make} -j1 -C libdm ioctl/libdevmapper.a \
323 V=1
324
325%{__make} -j1 -C libdaemon/client libdaemonclient.a
326
327%{__make} -j1 -C libdm/dm-tools dmsetup.static \
328 V=1
329
330%{__make} -j1 base/libbase.a device_mapper/libdevice-mapper.a
331
332%{__make} -j1 -C tools lvm.static \
333 LIBS="%{?with_selinux:-lpcre} -lpthread -lm" \
334 SHELL=/bin/bash \
335 interfacebuilddir=../libdm/ioctl
ec2de926 336
e2727f8c 337%{__mv} tools/lvm.static initrd-lvm
3fe40949 338%{__mv} libdm/dm-tools/dmsetup.static initrd-dmsetup
7cef5d95
AM
339
340# check if tools works
341for tool in initrd-lvm initrd-dmsetup; do
cfa41a73 342 LVM_SYSTEM_DIR=$(pwd) ./$tool help && rc=$? || rc=$?
7cef5d95 343 if [ $rc -gt 127 ]; then
cfa41a73 344 echo >&2 "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!"
7cef5d95
AM
345 exit 1
346 fi
347done
348
9bdab2f4 349%{__make} clean
6c31051f
PS
350
351unset CC
7e72c866
JR
352%endif
353
9d0d1d5f 354%configure \
e2727f8c 355 --enable-cache_check_needs_check \
b167057a 356 --enable-cmdlib \
761db061 357 %{?with_lvmdbusd:--enable-dbus-service --enable-notify-dbus} \
43435358 358 %{?debug:--enable-debug} \
b167057a 359 --enable-dmeventd \
761db061 360 --enable-dmfilemapd \
43435358 361 --enable-fsadm \
54ec8eef 362%if %{with lvmlockd}
ef739509
JB
363 %{?with_cluster:--enable-lvmlockd-dlm} \
364 %{?with_sanlock:--enable-lvmlockd-sanlock} \
54ec8eef 365%endif
ef739509 366 --enable-lvmpolld \
e55d5c02 367 --enable-ocf \
3fe40949 368 --enable-pkgconfig \
43435358
JB
369 --enable-readline \
370 %{!?with_selinux:--disable-selinux} \
3fe40949 371 --disable-silent-rules \
e2727f8c 372 --enable-thin_check_needs_check \
5f0ee085
JB
373 --enable-udev_sync \
374 --enable-udev_rules \
35a842cf 375 --with-cache=internal \
54ec8eef
JB
376 --with-cache-check=/usr/sbin/cache_check \
377 --with-cache-dump=/usr/sbin/cache_dump \
378 --with-cache-repair=/usr/sbin/cache_repair \
379 --with-cache-restore=/usr/sbin/cache_restore \
7e873dd0 380%if %{with cluster}
4cb4934b 381 --enable-cmirrord \
5cf18a89 382%endif
3fe40949 383 --with-default-locking-dir=/var/lock/lvm \
43435358
JB
384 --with-dmeventd-path=%{_sbindir}/dmeventd \
385 --with-interface=ioctl \
43435358
JB
386 --with-mirrors=internal \
387 --with-optimisation="%{rpmcflags}" \
607d2229 388 --with-snapshots=internal \
43435358 389 --with-systemdsystemunitdir=%{systemdunitdir} \
35a842cf 390 --with-tmpfilesdir=%{systemdtmpfilesdir} \
b5640c74 391 --with-thin=internal \
54ec8eef
JB
392 --with-thin-check=/usr/sbin/thin_check \
393 --with-thin-dump=/usr/sbin/thin_dump \
394 --with-thin-repair=/usr/sbin/thin_repair \
395 --with-thin-restore=/usr/sbin/thin_restore \
589f4db4 396 --with-udev-prefix=/ \
761db061 397 --with-vdo=internal --with-vdo-format=%{_bindir}/vdoformat \
30965682 398 --with-writecache=internal \
43435358 399 --with-usrlibdir=%{_libdir}
589f4db4 400
3fe40949
JB
401# no --enable-nls: no translations exist, broken
402
b7318447 403# use bash because of "set -o pipefail"
3fe40949 404# V=1 still used because of missing --disable-silent-rules support in libdm (as of 2.03.09)
b7318447 405%{__make} -j1 \
dab0ac18
JB
406 SHELL=/bin/bash \
407 V=1
b7318447 408%{__make} -j1 -C libdm \
dab0ac18
JB
409 LIB_STATIC=libdevmapper.a \
410 V=1
7e72c866
JR
411
412%install
413rm -rf $RPM_BUILD_ROOT
41571565 414install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/lvm,/etc/sysconfig,/var/lock/lvm/subsys}
7e72c866 415
761db061 416%{__make} install install_system_dirs install_systemd_units install_systemd_generators install_initscripts install_tmpfiles_configuration \
7e72c866 417 DESTDIR=$RPM_BUILD_ROOT \
05cec2e8 418 PYTHON_PREFIX=%{_prefix} \
1ccfba6c 419 OWNER="" \
3fe40949 420 GROUP=""
7e72c866 421
35a842cf 422%{__make} -C scripts install_tmpfiles_configuration \
3fe40949 423 DESTDIR=$RPM_BUILD_ROOT
9b82b6a5 424
bcbf274d 425%{__mv} $RPM_BUILD_ROOT%{_libdir}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
b167057a
AM
426for lib in $RPM_BUILD_ROOT/%{_lib}/lib*.so.*; do
427 lib=$(echo $lib | sed -e "s#$RPM_BUILD_ROOT##g")
428 slib=$(basename $lib | sed -e 's#\.so\..*#.so#g')
429 ln -sf $lib $RPM_BUILD_ROOT%{_libdir}/$slib
430done
431
1cfc154f
JR
432touch $RPM_BUILD_ROOT%{_sysconfdir}/lvm/lvm.conf
433
88c67b5b
JR
434%if %{with initrd}
435install -d $RPM_BUILD_ROOT%{_libdir}/initrd
a3569314
ER
436install -p initrd-lvm $RPM_BUILD_ROOT%{_libdir}/initrd/lvm
437install -p initrd-dmsetup $RPM_BUILD_ROOT%{_libdir}/initrd/dmsetup
1306038e 438%endif
c70b42f6 439
a3569314 440cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir}
b167057a 441
7e72c866
JR
442%clean
443rm -rf $RPM_BUILD_ROOT
444
6e7a47a9
AM
445%post
446/sbin/chkconfig --add lvm2-monitor
447%service lvm2-monitor restart
c35cea65 448%systemd_post lvm2-monitor.service
4cb4934b 449/sbin/chkconfig --add blk-availability
e2727f8c
JB
450%if %{with lvmpolld}
451%systemd_post lvm2-lvmpolld.socket
452%endif
c35cea65
JR
453
454%preun
455%systemd_preun lvm2-monitor.service
e2727f8c
JB
456%if %{with lvmpolld}
457%systemd_preun lvm2-lvmpolld.socket
458%endif
6e7a47a9
AM
459
460%postun
461if [ "$1" = "0" ]; then
462 %service lvm2-monitor stop
463 /sbin/chkconfig --del lvm2-monitor
4cb4934b
JK
464 #no service blk-availability stop
465 /sbin/chkconfig --del blk-availability
6e7a47a9 466fi
c35cea65 467%systemd_reload
6e7a47a9 468
c35cea65
JR
469%triggerpostun -- %{name} < 2.02.94-1
470%systemd_trigger lvm2-monitor.service
b167057a 471
c35cea65 472%post -n device-mapper
c35cea65 473%systemd_post dm-event.socket
9b82b6a5 474
c35cea65
JR
475%preun -n device-mapper
476%systemd_preun dm-event.socket dm-event.service
9b82b6a5 477
c35cea65 478%postun -n device-mapper
9b82b6a5
BZ
479%systemd_reload
480
c35cea65
JR
481%triggerpostun -n device-mapper -- device-mapper < 2.02.94-1
482%systemd_trigger dm-event.socket
483
35a842cf
JB
484%post -n device-mapper-libs -p /sbin/ldconfig
485%postun -n device-mapper-libs -p /sbin/ldconfig
486
e2727f8c
JB
487%post dbusd
488%systemd_post lvm2-lvmdbusd.service
489
490%preun dbusd
491%systemd_preun lvm2-lvmdbusd.service
492
493%postun dbusd
494%systemd_reload
495
496%post lockd
497%systemd_post lvm2-lvmlockd.service lvm2-lvmlocking.service
498
499%preun lockd
500%systemd_preun lvm2-lvmlockd.service lvm2-lvmlocking.service
501
502%postun lockd
161d6a19
JK
503%systemd_reload
504
7e72c866
JR
505%files
506%defattr(644,root,root,755)
e6ac7970 507%doc README WHATS_NEW doc/*
4cb4934b 508%attr(755,root,root) %{_sbindir}/blkdeactivate
86418c14 509%attr(755,root,root) %{_sbindir}/fsadm
e2727f8c
JB
510%attr(755,root,root) %{_sbindir}/lvchange
511%attr(755,root,root) %{_sbindir}/lvconvert
512%attr(755,root,root) %{_sbindir}/lvcreate
513%attr(755,root,root) %{_sbindir}/lvdisplay
514%attr(755,root,root) %{_sbindir}/lvextend
515%attr(755,root,root) %{_sbindir}/lvm
05cec2e8 516%attr(755,root,root) %{_sbindir}/lvm_import_vdo
e2727f8c 517%attr(755,root,root) %{_sbindir}/lvmconfig
55ebfc1b 518%attr(755,root,root) %{_sbindir}/lvmdevices
e2727f8c
JB
519%attr(755,root,root) %{_sbindir}/lvmdiskscan
520%attr(755,root,root) %{_sbindir}/lvmdump
521%attr(755,root,root) %{_sbindir}/lvmsadc
522%attr(755,root,root) %{_sbindir}/lvmsar
523%attr(755,root,root) %{_sbindir}/lvreduce
524%attr(755,root,root) %{_sbindir}/lvremove
525%attr(755,root,root) %{_sbindir}/lvrename
526%attr(755,root,root) %{_sbindir}/lvresize
527%attr(755,root,root) %{_sbindir}/lvs
528%attr(755,root,root) %{_sbindir}/lvscan
529%attr(755,root,root) %{_sbindir}/pvchange
530%attr(755,root,root) %{_sbindir}/pvck
531%attr(755,root,root) %{_sbindir}/pvcreate
532%attr(755,root,root) %{_sbindir}/pvdisplay
533%attr(755,root,root) %{_sbindir}/pvmove
534%attr(755,root,root) %{_sbindir}/pvremove
535%attr(755,root,root) %{_sbindir}/pvresize
536%attr(755,root,root) %{_sbindir}/pvs
537%attr(755,root,root) %{_sbindir}/pvscan
538%attr(755,root,root) %{_sbindir}/vgcfgbackup
539%attr(755,root,root) %{_sbindir}/vgcfgrestore
540%attr(755,root,root) %{_sbindir}/vgchange
541%attr(755,root,root) %{_sbindir}/vgck
542%attr(755,root,root) %{_sbindir}/vgconvert
543%attr(755,root,root) %{_sbindir}/vgcreate
544%attr(755,root,root) %{_sbindir}/vgdisplay
545%attr(755,root,root) %{_sbindir}/vgexport
546%attr(755,root,root) %{_sbindir}/vgextend
547%attr(755,root,root) %{_sbindir}/vgimport
548%attr(755,root,root) %{_sbindir}/vgimportclone
55ebfc1b 549%attr(755,root,root) %{_sbindir}/vgimportdevices
e2727f8c
JB
550%attr(755,root,root) %{_sbindir}/vgmerge
551%attr(755,root,root) %{_sbindir}/vgmknodes
552%attr(755,root,root) %{_sbindir}/vgreduce
553%attr(755,root,root) %{_sbindir}/vgremove
554%attr(755,root,root) %{_sbindir}/vgrename
555%attr(755,root,root) %{_sbindir}/vgs
556%attr(755,root,root) %{_sbindir}/vgscan
557%attr(755,root,root) %{_sbindir}/vgsplit
dfc0f4f1 558%attr(755,root,root) %{_libexecdir}/lvresize_fs_helper
86418c14 559%{_mandir}/man5/lvm.conf.5*
05cec2e8 560%{_mandir}/man7/lvmautoactivation.7*
a4dcdce5 561%{_mandir}/man7/lvmcache.7*
2b146638
JB
562%{_mandir}/man7/lvmraid.7*
563%{_mandir}/man7/lvmreport.7*
35a842cf 564%{_mandir}/man7/lvmsystemid.7*
0442bdaf 565%{_mandir}/man7/lvmthin.7*
05cec2e8 566%{_mandir}/man7/lvmvdo.7*
4cb4934b 567%{_mandir}/man8/blkdeactivate.8*
86418c14 568%{_mandir}/man8/fsadm.8*
e2727f8c
JB
569%{_mandir}/man8/lvchange.8*
570%{_mandir}/man8/lvconvert.8*
571%{_mandir}/man8/lvcreate.8*
572%{_mandir}/man8/lvdisplay.8*
573%{_mandir}/man8/lvextend.8*
2b146638
JB
574%{_mandir}/man8/lvm-config.8*
575%{_mandir}/man8/lvm-dumpconfig.8*
576%{_mandir}/man8/lvm-fullreport.8*
e2727f8c
JB
577%{_mandir}/man8/lvm-lvpoll.8*
578%{_mandir}/man8/lvm.8*
05cec2e8 579%{_mandir}/man8/lvm_import_vdo.8*
e2727f8c 580%{_mandir}/man8/lvmconfig.8*
55ebfc1b 581%{_mandir}/man8/lvmdevices.8*
e2727f8c
JB
582%{_mandir}/man8/lvmdiskscan.8*
583%{_mandir}/man8/lvmdump.8*
584%{_mandir}/man8/lvmsadc.8*
585%{_mandir}/man8/lvmsar.8*
586%{_mandir}/man8/lvreduce.8*
587%{_mandir}/man8/lvremove.8*
588%{_mandir}/man8/lvrename.8*
589%{_mandir}/man8/lvresize.8*
590%{_mandir}/man8/lvs.8*
591%{_mandir}/man8/lvscan.8*
592%{_mandir}/man8/pvchange.8*
593%{_mandir}/man8/pvck.8*
594%{_mandir}/man8/pvcreate.8*
595%{_mandir}/man8/pvdisplay.8*
596%{_mandir}/man8/pvmove.8*
597%{_mandir}/man8/pvremove.8*
598%{_mandir}/man8/pvresize.8*
599%{_mandir}/man8/pvs.8*
600%{_mandir}/man8/pvscan.8*
601%{_mandir}/man8/vgcfgbackup.8*
602%{_mandir}/man8/vgcfgrestore.8*
603%{_mandir}/man8/vgchange.8*
604%{_mandir}/man8/vgck.8*
605%{_mandir}/man8/vgconvert.8*
606%{_mandir}/man8/vgcreate.8*
607%{_mandir}/man8/vgdisplay.8*
608%{_mandir}/man8/vgexport.8*
609%{_mandir}/man8/vgextend.8*
610%{_mandir}/man8/vgimport.8*
611%{_mandir}/man8/vgimportclone.8*
55ebfc1b 612%{_mandir}/man8/vgimportdevices.8*
e2727f8c
JB
613%{_mandir}/man8/vgmerge.8*
614%{_mandir}/man8/vgmknodes.8*
615%{_mandir}/man8/vgreduce.8*
616%{_mandir}/man8/vgremove.8*
617%{_mandir}/man8/vgrename.8*
618%{_mandir}/man8/vgs.8*
619%{_mandir}/man8/vgscan.8*
620%{_mandir}/man8/vgsplit.8*
99958222 621%attr(750,root,root) %dir %{_sysconfdir}/lvm
2316bf4d 622%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvm.conf
35a842cf 623%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvmlocal.conf
e55d5c02 624%attr(750,root,root) %dir %{_sysconfdir}/lvm/profile
54ec8eef
JB
625%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-mq.profile
626%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-smq.profile
bfc9ab17
JB
627%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/command_profile_template.profile
628%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/metadata_profile_template.profile
629%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/thin-generic.profile
ac328eef 630%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/thin-performance.profile
bac719c6 631%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/vdo-small.profile
35a842cf 632%{systemdtmpfilesdir}/lvm2.conf
4cb4934b 633%{systemdunitdir}/blk-availability.service
e2727f8c 634%{systemdunitdir}/lvm2-monitor.service
e2727f8c
JB
635%dir %{_sysconfdir}/lvm/cache
636%ghost %{_sysconfdir}/lvm/cache/.cache
637%attr(754,root,root) /etc/rc.d/init.d/blk-availability
638%attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor
639%attr(700,root,root) %dir /run/lvm
640%attr(700,root,root) %dir /var/lock/lvm
41571565 641%attr(700,root,root) %dir /var/lock/lvm/subsys
54ec8eef 642%if %{with lvmlockd}
e2727f8c
JB
643%attr(755,root,root) %{_sbindir}/lvmlockctl
644%attr(755,root,root) %{_sbindir}/lvmlockd
bac719c6
AM
645%{systemdunitdir}/lvmlockd.service
646%{systemdunitdir}/lvmlocks.service
e2727f8c
JB
647%{_mandir}/man8/lvmlockctl.8*
648%{_mandir}/man8/lvmlockd.8*
54ec8eef
JB
649%endif
650%if %{with lvmpolld}
e2727f8c
JB
651%attr(755,root,root) %{_sbindir}/lvmpolld
652%attr(754,root,root) /etc/rc.d/init.d/lvm2-lvmpolld
54ec8eef
JB
653%{systemdunitdir}/lvm2-lvmpolld.service
654%{systemdunitdir}/lvm2-lvmpolld.socket
e2727f8c 655%{_mandir}/man8/lvmpolld.8*
54ec8eef 656%endif
7e873dd0
JK
657
658%if %{with cluster}
7e873dd0
JK
659%files cmirrord
660%defattr(644,root,root,755)
661%attr(755,root,root) %{_usrsbindir}/cmirrord
7e873dd0 662%attr(754,root,root) /etc/rc.d/init.d/cmirrord
0442bdaf
JB
663%{systemdunitdir}/lvm2-cmirrord.service
664%{_mandir}/man8/cmirrord.8*
7e873dd0 665%endif
7e72c866 666
e2727f8c
JB
667%if %{with lvmdbusd}
668%files dbusd
669%defattr(644,root,root,755)
670%attr(755,root,root) %{_sbindir}/lvmdbusd
98a8fd15 671%{py3_sitescriptdir}/lvmdbusd
2b146638 672%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/lvmdbusd.profile
e2727f8c
JB
673%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/com.redhat.lvmdbus1.conf
674%{_datadir}/dbus-1/system-services/com.redhat.lvmdbus1.service
675%{systemdunitdir}/lvm2-lvmdbusd.service
676%{_mandir}/man8/lvmdbusd.8*
677%endif
678
e55d5c02
JB
679%files resource-agents
680%defattr(644,root,root,755)
681%dir %{_prefix}/lib/ocf/resource.d/lvm2
682%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/lvm2/VolumeGroup
683
b167057a
AM
684%files -n device-mapper
685%defattr(644,root,root,755)
686%doc *_DM
c35cea65
JR
687%{systemdunitdir}/dm-event.service
688%{systemdunitdir}/dm-event.socket
589f4db4
JR
689/lib/udev/rules.d/10-dm.rules
690/lib/udev/rules.d/11-dm-lvm.rules
691/lib/udev/rules.d/13-dm-disk.rules
05cec2e8 692/lib/udev/rules.d/69-dm-lvm.rules
589f4db4 693/lib/udev/rules.d/95-dm-notify.rules
b167057a 694%attr(755,root,root) %{_sbindir}/dmeventd
761db061 695%attr(755,root,root) %{_sbindir}/dmfilemapd
b167057a 696%attr(755,root,root) %{_sbindir}/dmsetup
54ec8eef 697%attr(755,root,root) %{_sbindir}/dmstats
e2727f8c
JB
698%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2mirror.so
699%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2raid.so
700%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2snapshot.so
701%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2thin.so
dab0ac18 702%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2vdo.so
1306038e 703%dir %{_libdir}/device-mapper
e2727f8c
JB
704%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2mirror.so
705%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2raid.so
706%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2snapshot.so
707%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2thin.so
dab0ac18 708%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2vdo.so
761db061 709%{_mandir}/man8/dmfilemapd.8*
b167057a 710%{_mandir}/man8/dmsetup.8*
54ec8eef 711%{_mandir}/man8/dmstats.8*
f0dab9f1 712%{_mandir}/man8/dmeventd.8*
b167057a 713
35a842cf
JB
714%files -n device-mapper-libs
715%defattr(644,root,root,755)
716%attr(755,root,root) /%{_lib}/libdevmapper.so.*.*
717%attr(755,root,root) /%{_lib}/libdevmapper-event.so.*.*
718%attr(755,root,root) /%{_lib}/libdevmapper-event-lvm2.so.*.*
35a842cf
JB
719%attr(755,root,root) /%{_lib}/liblvm2cmd.so.*.*
720
b167057a
AM
721%files -n device-mapper-devel
722%defattr(644,root,root,755)
bece12dd
JR
723%attr(755,root,root) %{_libdir}/libdevmapper.so
724%attr(755,root,root) %{_libdir}/libdevmapper-event.so
e2727f8c 725%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2.so
b167057a 726%attr(755,root,root) %{_libdir}/liblvm2cmd.so
35a842cf
JB
727%{_includedir}/libdevmapper.h
728%{_includedir}/libdevmapper-event.h
b167057a 729%{_includedir}/lvm2cmd.h
35a842cf
JB
730%{_pkgconfigdir}/devmapper.pc
731%{_pkgconfigdir}/devmapper-event.pc
b167057a
AM
732
733%files -n device-mapper-static
734%defattr(644,root,root,755)
35a842cf 735%{_libdir}/libdevmapper.a
b167057a 736
1306038e 737%if %{with initrd}
4a323c26
JR
738%files -n device-mapper-initrd
739%defattr(644,root,root,755)
88c67b5b 740%attr(755,root,root) %{_libdir}/initrd/dmsetup
4a323c26 741
7e72c866
JR
742%files initrd
743%defattr(644,root,root,755)
88c67b5b 744%attr(755,root,root) %{_libdir}/initrd/lvm
7e72c866 745%endif
This page took 0.25538 seconds and 4 git commands to generate.