2 # - vgscan --ignorelocking failure creates /var/lock/lvm (even if /var is not yet mounted)
3 # - --with-replicators (=internal/shared/none, default is none)?
7 %bcond_with initrd # build initrd version
8 %bcond_without uClibc # link initrd version with uClibc
9 %bcond_with dietlibc # link initrd version with dietlibc
10 %bcond_with glibc # link initrd version with static GLIBC
12 %bcond_without cluster # disable all cluster support (clvmd&cmirrord)
13 %bcond_without lvmetad # disable lvmetad (and lvmlockd)
14 %bcond_without lvmpolld # disable lvmpolld (and lvmlockd)
15 %bcond_without lvmlockd # disable lvmlockd
16 %bcond_with sanlock # sanlock support in lvmlockd
17 %bcond_with replicator # internal replicator support
18 # - additional features
19 %bcond_without selinux # SELinux support
21 %bcond_without python # Python binding
23 # lvmlockd requires lvmetad and lvmpolld
24 %if %{without lvmetad} || %{without lvmpolld}
25 %undefine with_lvmpolld
28 # only glibc possible on SPARC
29 %ifarch sparc sparcv9 sparc64
32 # if one of the *libc is enabled disable default dietlibc
33 %if %{with dietlibc} && %{with uClibc}
34 %undefine with_dietlibc
36 # with glibc disables default dietlibc
37 %if %{with glibc} && %{with dietlibc}
38 %undefine with_dietlibc
40 # fallback is glibc if neither alternatives are enabled
41 %if %{without dietlibc} && %{without uClibc}
45 Summary: The new version of Logical Volume Manager for Linux
46 Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa
50 License: GPL v2 and LGPL v2.1
51 Group: Applications/System
52 Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
53 # Source0-md5: 80af5af726949bbbb2aceb15b24b7d20
54 Source2: clvmd.service
55 Source3: clvmd.sysconfig
56 Patch0: %{name}-selinux.patch
57 Patch1: %{name}-diet.patch
58 Patch2: device-mapper-dmsetup-export.patch
59 Patch3: %{name}-pld_init.patch
60 Patch4: dl-dlsym.patch
61 Patch6: %{name}-lvm_path.patch
62 Patch7: %{name}-sd_notify.patch
63 Patch8: %{name}-clvmd_cmd_timeout.patch
64 Patch9: device-mapper-dmsetup-deps-export.patch
65 URL: http://www.sourceware.org/lvm2/
66 BuildRequires: autoconf >= 2.61
67 BuildRequires: automake
69 BuildRequires: filesystem >= 3.0-43
70 BuildRequires: libblkid-devel >= 2.24
71 %{?with_selinux:BuildRequires: libselinux-devel >= 1.10}
72 %{?with_selinux:BuildRequires: libsepol-devel}
73 BuildRequires: ncurses-devel
74 BuildRequires: pkgconfig
75 %{?with_python:BuildRequires: python-devel >= 2}
76 BuildRequires: readline-devel
77 BuildRequires: rpmbuild(macros) >= 1.647
78 %{?with_sanlock:BuildRequires: sanlock-devel >= 3.2.4}
79 BuildRequires: systemd-devel >= 1:205
80 BuildRequires: udev-devel >= 1:176
83 BuildRequires: dietlibc-static >= 2:0.32-7
84 BuildConflicts: device-mapper-dietlibc
87 %{?with_selinux:BuildRequires: libselinux-static}
88 %{?with_selinux:BuildRequires: libsepol-static}
90 %{?with_glibc:BuildRequires: glibc-static}
91 %{?with_uClibc:BuildRequires: uClibc-static >= 2:0.9.29}
94 BuildRequires: corosync-devel
95 BuildRequires: dlm-devel >= 3.99.5
97 Requires(post,preun,postun): systemd-units >= 38
98 Requires(post,postun): /sbin/chkconfig
99 Requires: device-mapper >= %{version}-%{release}
100 %{?with_selinux:Requires: libselinux >= 1.10}
101 Requires: systemd-units >= 38
102 # doesn't work with 2.4 kernels
103 Requires: uname(release) >= 2.6
104 Suggests: thin-provisioning-tools >= 0.5.4
106 Obsoletes: lvm2-systemd
107 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109 %define _sbindir /sbin
110 %define _usrsbindir /usr/sbin
112 # changing CFLAGS in the middle confuses confcache
113 %undefine configure_cache
116 %define filterout_ld -Wl,--as-needed
118 # causes: undefined reference to `__stack_chk_fail_local'
119 %define filterout_c -fstack-protector
121 # for some reason known only to rpm there must be "\\|" not "\|" here
122 %define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
123 %define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
125 %define skip_post_check_so '.*libdevmapper-event-lvm2.so.*'
128 This package includes a number of utilities for creating, checking,
129 and repairing logical volumes.
131 %description -l pl.UTF-8
132 Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
133 logicznych wolumenów dyskowych (LVM2).
136 Summary: The new version of Logical Volume Manager for Linux - initrd version
137 Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa - wersja dla initrd
139 Conflicts: geninitrd < 10000.18
142 This package includes a number of utilities for creating, checking,
143 and repairing logical volumes - staticaly linked for initrd.
145 %description initrd -l pl.UTF-8
146 Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
147 logicznych wolumenów dyskowych (LVM2) - statycznie skonsolidowane na
151 Summary: Cluster LVM daemon
152 Summary(pl.UTF-8): Demon clustra LVM
153 Group: Applications/System
154 Requires: %{name} = %{version}-%{release}
157 clvmd is the daemon that distributes LVM metadata updates around a
158 cluster. It must be running on all nodes in the cluster and will give
159 an error if a node in the cluster does not have this daemon running.
161 %description clvmd -l pl.UTF-8
162 clvmd to demon który rozprowadza zmiany meta-danych LVM po klastrze.
163 Mysi działać na wszystkich węzłach klastra i zgłosi błąd gdy jakiś
164 węzeł w klastrze nie ma tego demona uruchomionego.
167 Summary: Cluster mirror log daemon
168 Summary(pl.UTF-8): Demon śledzący log lustrzany w klastrze
169 Group: Applications/System
170 Requires: %{name} = %{version}-%{release}
172 %description cmirrord
173 cmirrord is the daemon that tracks mirror log information in a
174 cluster. It is specific to device-mapper based mirrors (and by
175 extension, LVM cluster mirrors). Cluster mirrors are not possible
176 without this daemon running.
178 This daemon relies on the cluster infrastructure provided by the
179 Cluster MANager (CMAN), which must be set up and running in order for
180 cmirrord to function.
182 %description cmirrord
183 cmirrord to demon śledzący informacje logu lustrzanego w klastrze.
184 Jest specyficzny dla klastrów lustrzanych opartych na device-mapperze
185 (oraz, poprzez rozszerzenie, klastrów lustrzanych LVM). W klastrach
186 lustrzanych ten demon jest niezbędny.
188 Ten demon polega na infrastrukturze klastra dostarczanej przez CMAN
189 (Cluster MANager), który musi być skonfigurowany i działający, aby
192 %package resource-agents
193 Summary: OCF Resource Agents for LVM2 processes
194 Summary(pl.UTF-8): Agenci OCF do monitorowania procesów LVM2
195 Group: Applications/System
196 Requires: %{name} = %{version}-%{release}
197 Requires: resource-agents
199 %description resource-agents
200 OCF Resource Agents for LVM2 processes.
202 %description resource-agents -l pl.UTF-8
203 Agenci OCF do monitorowania procesów LVM2.
205 %package -n python-lvm
206 Summary: Python interface to LVM2
207 Summary(pl.UTF-8): Interfejs Pythona do LVM2
208 Group: Libraries/Python
209 Requires: device-mapper-libs = %{version}-%{release}
211 %description -n python-lvm
212 Python interface to LVM2.
214 %description -n python-lvm -l pl.UTF-8
215 Interfejs Pythona do LVM2.
217 %package -n device-mapper
218 Summary: Userspace support for the device-mapper
219 Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika
221 Requires(post,postun): /sbin/ldconfig
222 Requires(post,preun,postun): systemd-units >= 38
223 Requires: device-mapper-libs = %{version}-%{release}
224 Requires: systemd-units >= 38
226 %description -n device-mapper
227 The goal of this driver is to support volume management. The driver
228 enables the definition of new block devices composed of ranges of
229 sectors of existing devices. This can be used to define disk
230 partitions - or logical volumes. This light-weight kernel component
231 can support user-space tools for logical volume management.
233 %description -n device-mapper -l pl.UTF-8
234 Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
235 włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
236 sektorów na istniejących urządzeniach. Może to być wykorzystane do
237 definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
238 składnik jądra może wspierać działające w przestrzeni użytkownika
239 narzędzia do zarządzania logicznymi wolumenami.
241 %package -n device-mapper-libs
242 Summary: Device-mapper shared libraries
243 Summary(pl.UTF-8): Biblioteki współdzielone device-mappera
245 Conflicts: device-mapper < 2.02.119-1
246 Requires: libblkid >= 2.24
247 Requires: udev-libs >= 1:176
249 %description -n device-mapper-libs
250 Device-mapper shared libraries.
252 %description -n device-mapper-libs -l pl.UTF-8
253 Biblioteki współdzielone device-mappera.
255 %package -n device-mapper-devel
256 Summary: Header files for device-mapper libraries
257 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek device-mappera
258 Group: Development/Libraries
259 Requires: device-mapper-libs = %{version}-%{release}
260 Requires: libblkid-devel >= 2.24
262 Requires: libselinux-devel
263 Requires: libsepol-devel
265 Requires: udev-devel >= 1:176
267 %description -n device-mapper-devel
268 Header files for device-mapper libraries.
270 %description -n device-mapper-devel -l pl.UTF-8
271 Pliki nagłówkowe bibliotek device-mappera.
273 %package -n device-mapper-static
274 Summary: Static devmapper library
275 Summary(pl.UTF-8): Statyczna biblioteka devmapper
277 Group: Development/Libraries
278 Requires: device-mapper-devel = %{version}-%{release}
280 %description -n device-mapper-static
281 Static devmapper library.
283 %description -n device-mapper-static -l pl.UTF-8
284 Statyczna biblioteka devmapper.
286 %package -n device-mapper-dietlibc
287 Summary: Static devmapper library built with dietlibc
288 Summary(pl.UTF-8): Statyczna biblioteka devmapper zbudowana z dietlibc
290 Group: Development/Libraries
291 Requires: device-mapper-devel = %{version}-%{release}
293 %description -n device-mapper-dietlibc
294 Static devmapper library built with dietlibc.
296 %description -n device-mapper-dietlibc -l pl.UTF-8
297 Statyczna biblioteka devmapper zbudowana z dietlibc.
299 %package -n device-mapper-initrd
300 Summary: Userspace support for the device-mapper - initrd version
301 Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika - wersja dla initrd
303 Obsoletes: device-mapper-initrd-devel
304 Conflicts: geninitrd < 10000.10
306 %description -n device-mapper-initrd
307 The goal of this driver is to support volume management. The driver
308 enables the definition of new block devices composed of ranges of
309 sectors of existing devices. This can be used to define disk
310 partitions - or logical volumes. This light-weight kernel component
311 can support user-space tools for logical volume management.
313 This package contains dmsetup program linked staticaly for use in
316 %description -n device-mapper-initrd -l pl.UTF-8
317 Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
318 włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
319 sektorów na istniejących urządzeniach. Może to być wykorzystane do
320 definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
321 składnik jądra może wspierać działające w przestrzeni użytkownika
322 narzędzia do zarządzania logicznymi wolumenami.
324 Ten pakiet zawiera program dmsetup skonsolidowany statycznie na
328 %setup -q -n LVM2.%{version}
329 %{?with_selinux:%patch0 -p1}
339 # do not force --export-symbol linker option for e.g. statically linked executables
340 # -rdynamic compiler option drives linker in the right way.
341 %{__sed} -i -e 's#-Wl,--export-dynamic#-rdynamic#g' configure.in
345 echo Using %{?with_glibc:GLIBC} %{?with_uClibc:uClibc} %{?with_dietlibc:diet} for initrd
347 cp -f /usr/share/automake/config.sub autoconf
352 %{?with_glibc:export CC="%{__cc}"}
353 %{?with_uClibc:export CC="%{_target_cpu}-uclibc-gcc"}
354 %{?with_dietlibc:cc="%{__cc}"; export CC="diet ${cc#ccache }"}
357 ac_cv_lib_dl_dlopen=no \
358 %{?with_uClibc:ac_cv_func_siginterrupt=no} \
359 %{?debug:--enable-debug} \
362 --enable-selinux%{!?with_glibc:=no} \
363 --enable-static_link \
364 --with-lvm1=internal \
365 --with-optimisation="%{rpmcflags} -Os"
366 # glibc version links with normal static libdevicemapper which has selinux enabled
367 # and we need to keep these in sync between device-mapper and lvm2
369 %{__sed} -i -e 's#rpl_malloc#malloc#g' lib/misc/configure.h
370 %{__sed} -i -e 's#rpl_realloc#realloc#g' lib/misc/configure.h
372 %{__make} -j1 -C include
373 %{__make} -j1 -C lib LIB_SHARED= VERSIONED_SHLIB=
374 %{__make} -j1 -C libdm LIB_SHARED= VERSIONED_SHLIB=
375 %{__make} -j1 -C libdaemon/client LIB_SHARED= VERSIONED_SHLIB=
376 %{__make} -j1 -C tools dmsetup.static lvm.static %{?with_dietlibc:DIETLIBC_LIBS="-lcompat"}
377 mv -f tools/lvm.static initrd-lvm
378 mv -f tools/dmsetup.static initrd-dmsetup
380 # check if tools works
381 for tool in initrd-lvm initrd-dmsetup; do
382 LVM_SYSTEM_DIR=$(pwd) ./$tool help && rc=$? || rc=$?
383 if [ $rc -gt 127 ]; then
384 echo >&2 "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!"
389 %{?with_dietlibc:mv -f libdm/ioctl/libdevmapper.a diet-libdevmapper.a}
398 %{?debug:--enable-debug} \
402 %{?with_cluster:--enable-lockd-dlm} \
403 %{?with_sanlock:--enable-lockd-sanlock} \
405 %{?with_lvmetad:--enable-lvmetad} \
407 %{?with_python:--enable-python_bindings} \
409 %{!?with_selinux:--disable-selinux} \
412 --enable-udev_rules \
413 --with-cache=internal \
414 --with-cache-check=/usr/sbin/cache_check \
415 --with-cache-dump=/usr/sbin/cache_dump \
416 --with-cache-repair=/usr/sbin/cache_repair \
417 --with-cache-restore=/usr/sbin/cache_restore \
418 --with-cluster=internal \
420 --with-clvmd=corosync \
423 --with-dmeventd-path=%{_sbindir}/dmeventd \
424 --with-interface=ioctl \
425 --with-lvm1=internal \
426 --with-mirrors=internal \
427 --with-optimisation="%{rpmcflags}" \
428 --with-pool=internal \
429 %{?with_replicator:--with-replicators=internal} \
430 --with-snapshots=internal \
431 --with-systemdsystemunitdir=%{systemdunitdir} \
432 --with-tmpfilesdir=%{systemdtmpfilesdir} \
433 --with-thin=internal \
434 --with-thin-check=/usr/sbin/thin_check \
435 --with-thin-dump=/usr/sbin/thin_dump \
436 --with-thin-repair=/usr/sbin/thin_repair \
437 --with-thin-restore=/usr/sbin/thin_restore \
438 --with-udev-prefix=/ \
439 --with-usrlibdir=%{_libdir}
442 %{__make} -j1 -C libdm LIB_STATIC=libdevmapper.a
445 rm -rf $RPM_BUILD_ROOT
446 install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/lvm,/etc/sysconfig}
447 %{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
449 %{__make} install install_system_dirs install_systemd_units install_initscripts install_tmpfiles_configuration \
450 DESTDIR=$RPM_BUILD_ROOT \
454 %{__make} -C scripts install_tmpfiles_configuration \
455 DESTDIR=$RPM_BUILD_ROOT \
458 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/clvmd.service
459 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/clvmd
462 mv $RPM_BUILD_ROOT%{_libdir}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
463 for lib in $RPM_BUILD_ROOT/%{_lib}/lib*.so.*; do
464 lib=$(echo $lib | sed -e "s#$RPM_BUILD_ROOT##g")
465 slib=$(basename $lib | sed -e 's#\.so\..*#.so#g')
466 ln -sf $lib $RPM_BUILD_ROOT%{_libdir}/$slib
469 touch $RPM_BUILD_ROOT%{_sysconfdir}/lvm/lvm.conf
472 install -d $RPM_BUILD_ROOT%{_libdir}/initrd
473 install -p initrd-lvm $RPM_BUILD_ROOT%{_libdir}/initrd/lvm
474 install -p initrd-dmsetup $RPM_BUILD_ROOT%{_libdir}/initrd/dmsetup
476 %{?with_dietlibc:cp -a diet-libdevmapper.a $RPM_BUILD_ROOT%{dietlibdir}/libdevmapper.a}
479 cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir}
482 rm -rf $RPM_BUILD_ROOT
485 /sbin/chkconfig --add lvm2-monitor
486 %service lvm2-monitor restart
487 %systemd_post lvm2-monitor.service
488 /sbin/chkconfig --add blk-availability
489 # no service blk-availability restart
490 %systemd_post blk-availability.service
493 %systemd_preun lvm2-monitor.service
494 %systemd_preun blk-availability.service
497 if [ "$1" = "0" ]; then
498 %service lvm2-monitor stop
499 /sbin/chkconfig --del lvm2-monitor
500 #no service blk-availability stop
501 /sbin/chkconfig --del blk-availability
505 %triggerpostun -- %{name} < 2.02.94-1
506 %systemd_trigger lvm2-monitor.service
508 %post -n device-mapper
509 %systemd_post dm-event.socket
511 %preun -n device-mapper
512 %systemd_preun dm-event.socket dm-event.service
514 %postun -n device-mapper
517 %triggerpostun -n device-mapper -- device-mapper < 2.02.94-1
518 %systemd_trigger dm-event.socket
520 %post -n device-mapper-libs -p /sbin/ldconfig
521 %postun -n device-mapper-libs -p /sbin/ldconfig
524 /sbin/chkconfig --add clvmd
525 # no service restart - it breaks current locks!
527 %systemd_post clvmd.service
529 /usr/sbin/clvmd -S 2>/dev/null || :
532 %systemd_preun clvmd.service
535 if [ "$1" = "0" ]; then
537 /sbin/chkconfig --del clvmd
542 %defattr(644,root,root,755)
543 %doc README WHATS_NEW doc/*
544 %attr(755,root,root) %{_sbindir}/blkdeactivate
545 %attr(755,root,root) %{_sbindir}/fsadm
546 %attr(755,root,root) %{_sbindir}/lv*
547 %attr(755,root,root) %{_sbindir}/pv*
548 %attr(755,root,root) %{_sbindir}/vg*
549 %{_mandir}/man5/lvm.conf.5*
550 %{_mandir}/man7/lvmcache.7*
551 %{_mandir}/man7/lvmsystemid.7*
552 %{_mandir}/man7/lvmthin.7*
553 %{_mandir}/man8/blkdeactivate.8*
554 %{_mandir}/man8/fsadm.8*
555 %{_mandir}/man8/lv*.8*
556 %{_mandir}/man8/pv*.8*
557 %{_mandir}/man8/vg*.8*
558 %attr(750,root,root) %dir %{_sysconfdir}/lvm
559 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvm.conf
560 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvmlocal.conf
561 %attr(750,root,root) %dir %{_sysconfdir}/lvm/profile
562 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-mq.profile
563 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-smq.profile
564 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/command_profile_template.profile
565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/metadata_profile_template.profile
566 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/thin-generic.profile
567 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/thin-performance.profile
569 /lib/udev/rules.d/69-dm-lvm-metad.rules
571 %{systemdtmpfilesdir}/lvm2.conf
572 %{systemdunitdir}/blk-availability.service
574 %{systemdunitdir}/lvm2-lvmetad.service
575 %{systemdunitdir}/lvm2-lvmetad.socket
578 %{systemdunitdir}/lvm2-lvmlockd.service
579 %{systemdunitdir}/lvm2-lvmlocking.service
582 %{systemdunitdir}/lvm2-lvmpolld.service
583 %{systemdunitdir}/lvm2-lvmpolld.socket
585 %{systemdunitdir}/lvm2-monitor.service
586 %{systemdunitdir}/lvm2-pvscan@.service
587 %dir %{_sysconfdir}/lvm/cache
588 %ghost %{_sysconfdir}/lvm/cache/.cache
589 %attr(754,root,root) /etc/rc.d/init.d/blk-availability
591 %attr(754,root,root) /etc/rc.d/init.d/lvm2-lvmetad
594 %attr(754,root,root) /etc/rc.d/init.d/lvm2-lvmpolld
596 %attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor
597 %attr(700,root,root) %dir /run/lvm
598 %attr(700,root,root) %dir /var/lock/lvm
602 %defattr(644,root,root,755)
603 %attr(755,root,root) %{_usrsbindir}/clvmd
604 %attr(754,root,root) /etc/rc.d/init.d/clvmd
605 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clvmd
606 %attr(755,root,root) /lib/systemd/lvm2-cluster-activation
607 %{systemdunitdir}/clvmd.service
608 %{systemdunitdir}/lvm2-cluster-activation.service
609 %{systemdunitdir}/lvm2-clvmd.service
610 %{_mandir}/man8/clvmd.8*
613 %defattr(644,root,root,755)
614 %attr(755,root,root) %{_usrsbindir}/cmirrord
615 %attr(754,root,root) /etc/rc.d/init.d/cmirrord
616 %{systemdunitdir}/lvm2-cmirrord.service
617 %{_mandir}/man8/cmirrord.8*
620 %files resource-agents
621 %defattr(644,root,root,755)
622 %dir %{_prefix}/lib/ocf/resource.d/lvm2
623 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/lvm2/VolumeGroup
627 %defattr(644,root,root,755)
628 %attr(755,root,root) %{py_sitedir}/lvm.so
629 %{py_sitedir}/lvm-%{version}_*-py*.egg-info
632 %files -n device-mapper
633 %defattr(644,root,root,755)
635 %{systemdunitdir}/dm-event.service
636 %{systemdunitdir}/dm-event.socket
637 /lib/udev/rules.d/10-dm.rules
638 /lib/udev/rules.d/11-dm-lvm.rules
639 /lib/udev/rules.d/13-dm-disk.rules
640 /lib/udev/rules.d/95-dm-notify.rules
641 %attr(755,root,root) %{_sbindir}/dmeventd
642 %attr(755,root,root) %{_sbindir}/dmsetup
643 %attr(755,root,root) %{_sbindir}/dmstats
644 %dir %{_libdir}/device-mapper
645 %attr(755,root,root) %{_libdir}/device-mapper/*.so
646 %attr(755,root,root) %{_libdir}/libdevmapper-event-*.so
647 %{_mandir}/man8/dmsetup.8*
648 %{_mandir}/man8/dmstats.8*
649 %{_mandir}/man8/dmeventd.8*
651 %files -n device-mapper-libs
652 %defattr(644,root,root,755)
653 %attr(755,root,root) /%{_lib}/libdevmapper.so.*.*
654 %attr(755,root,root) /%{_lib}/libdevmapper-event.so.*.*
655 %attr(755,root,root) /%{_lib}/libdevmapper-event-lvm2.so.*.*
656 %attr(755,root,root) /%{_lib}/liblvm2app.so.*.*
657 %attr(755,root,root) /%{_lib}/liblvm2cmd.so.*.*
659 %files -n device-mapper-devel
660 %defattr(644,root,root,755)
661 %attr(755,root,root) %{_libdir}/libdevmapper.so
662 %attr(755,root,root) %{_libdir}/libdevmapper-event.so
663 %attr(755,root,root) %{_libdir}/liblvm2app.so
664 %attr(755,root,root) %{_libdir}/liblvm2cmd.so
665 %{_includedir}/libdevmapper.h
666 %{_includedir}/libdevmapper-event.h
667 %{_includedir}/lvm2app.h
668 %{_includedir}/lvm2cmd.h
669 %{_pkgconfigdir}/devmapper.pc
670 %{_pkgconfigdir}/devmapper-event.pc
671 %{_pkgconfigdir}/lvm2app.pc
673 %files -n device-mapper-static
674 %defattr(644,root,root,755)
675 %{_libdir}/libdevmapper.a
679 %files -n device-mapper-dietlibc
680 %defattr(644,root,root,755)
681 %{dietlibdir}/libdevmapper.a
684 %files -n device-mapper-initrd
685 %defattr(644,root,root,755)
686 %attr(755,root,root) %{_libdir}/initrd/dmsetup
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_libdir}/initrd/lvm