]> git.pld-linux.org Git - packages/lvm2.git/blame - lvm2.spec
Removed the remaining cluster-cman dependency
[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)
5f0ee085
JB
3# - --with-replicators (=internal/shared/none, default is none)?
4# - OCF agents?
1b67453e 5#
99958222 6# Conditional build:
c70b42f6 7%bcond_without initrd # don't build initrd version
fe052975
JR
8%bcond_without uClibc # link initrd version with uClibc
9%bcond_with dietlibc # link initrd version with dietlibc
5f0ee085 10%bcond_with glibc # link initrd version with static GLIBC
7e873dd0 11%bcond_without cluster # disable all cluster support (clvmd&cmirrord)
d3778cc3 12%bcond_with lvmetad # enable lvmetad
c70b42f6
JR
13%bcond_without selinux # disable SELinux
14
4a323c26 15%ifarch sparc64 sparc
c70b42f6 16%define with_glibc 1
66800f6a 17%endif
c70b42f6
JR
18
19# if one of the *libc is enabled disable default dietlibc
20%if %{with dietlibc} && %{with uClibc}
21%undefine with_dietlibc
22%endif
23
f1e27504 24# with glibc disables default dietlibc
c70b42f6
JR
25%if %{with glibc} && %{with dietlibc}
26%undefine with_dietlibc
27%endif
28
f1e27504
ER
29# fallback is glibc if neither alternatives are enabled
30%if %{without dietlibc} && %{without uClibc}
31%define with_glibc 1
32%endif
33
5672aa67 34Summary: The new version of Logical Volume Manager for Linux
6536e848 35Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa
7e72c866 36Name: lvm2
4cb4934b
JK
37Version: 2.02.98
38Release: 1
1738b891 39License: GPL v2
7e72c866 40Group: Applications/System
dc5d0e77 41Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
4cb4934b 42# Source0-md5: 1ce5b7f9981e1d02dfd1d3857c8d9fbe
c386faf9 43Source1: %{name}-tmpfiles.conf
7210a095 44Patch0: %{name}-selinux.patch
c70b42f6 45Patch1: %{name}-diet.patch
9a00e98a 46Patch2: device-mapper-dmsetup-export.patch
4cb4934b 47Patch3: %{name}-pld_init.patch
b747c17a 48Patch4: dl-dlsym.patch
4cb4934b
JK
49Patch5: %{name}-wrapper.patch
50Patch6: %{name}-lvm_path.patch
dc5d0e77 51URL: http://sources.redhat.com/lvm2/
5f0ee085 52BuildRequires: autoconf >= 2.61
7e72c866 53BuildRequires: automake
0dc2b8f2 54%{?with_selinux:BuildRequires: libselinux-devel >= 1.10}
e4a12efb 55%{?with_selinux:BuildRequires: libsepol-devel}
5f0ee085 56BuildRequires: ncurses-devel
3657a56d 57BuildRequires: pkgconfig
5f0ee085 58BuildRequires: readline-devel
b5640c74 59BuildRequires: rpmbuild(macros) >= 1.647
5f0ee085 60BuildRequires: udev-devel >= 143
1ccfba6c 61%if %{with initrd}
fa9e8aeb 62%if %{with dietlibc}
39c8d1d5 63BuildRequires: dietlibc-static >= 2:0.32-7
fa9e8aeb
AM
64BuildConflicts: device-mapper-dietlibc
65%endif
b64b85c5
ER
66%if %{with glibc}
67%{?with_selinux:BuildRequires: libselinux-static}
68%{?with_selinux:BuildRequires: libsepol-static}
69%endif
c70b42f6
JR
70%{?with_glibc:BuildRequires: glibc-static}
71%{?with_uClibc:BuildRequires: uClibc-static >= 2:0.9.29}
1ccfba6c 72%endif
7e873dd0 73%if %{with cluster}
5f0ee085 74BuildRequires: corosync-devel
4cb4934b 75BuildRequires: dlm-devel >= 3.99.5
5f0ee085 76%endif
b5640c74 77Requires(post,preun,postun): systemd-units >= 38
b167057a 78Requires: device-mapper >= %{version}-%{release}
0dc2b8f2 79%{?with_selinux:Requires: libselinux >= 1.10}
b5640c74 80Requires: systemd-units >= 38
1534f04d
ER
81# doesn't work with 2.4 kernels
82Requires: uname(release) >= 2.6
25b6b609 83Obsoletes: lvm
c35cea65 84Obsoletes: lvm2-systemd
7e72c866
JR
85BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86
87%define _sbindir /sbin
9ab13f24 88%define _usrsbindir /usr/sbin
7e72c866 89
0fbd6aae
ER
90# changing CFLAGS in the middle confuses confcache
91%undefine configure_cache
92
87a7d834
ER
93# borken on AC
94%define filterout_ld -Wl,--as-needed
95
4cb4934b
JK
96# causes: undefined reference to `__stack_chk_fail_local'
97%define filterout_c -fstack-protector
98
c70b42f6
JR
99# for some reason known only to rpm there must be "\\|" not "\|" here
100%define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
101%define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
102
f8fa85d0
PS
103%define skip_post_check_so '.*libdevmapper-event-lvm2.so.*'
104
7e72c866
JR
105%description
106This package includes a number of utilities for creating, checking,
107and repairing logical volumes.
108
68d45726
JR
109%description -l pl.UTF-8
110Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
111logicznych wolumenów dyskowych (LVM2).
7e72c866 112
7e72c866 113%package initrd
5672aa67 114Summary: The new version of Logical Volume Manager for Linux - initrd version
6536e848 115Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa - wersja dla initrd
7e72c866 116Group: Base
16ddcbd0 117Conflicts: geninitrd < 10000.18
7e72c866
JR
118
119%description initrd
120This package includes a number of utilities for creating, checking,
121and repairing logical volumes - staticaly linked for initrd.
122
68d45726
JR
123%description initrd -l pl.UTF-8
124Pakiet ten zawiera narzędzia do tworzenia, sprawdzania i naprawiania
125logicznych wolumenów dyskowych (LVM2) - statycznie skonsolidowane na
7e72c866
JR
126potrzeby initrd.
127
7e873dd0
JK
128%package clvmd
129Summary: Cluster LVM daemon
130Summary(pl.UTF-8): Demon clustra LVM
131Group: Applications/System
1aa2f585 132Requires: %{name} = %{version}-%{release}
7e873dd0
JK
133
134%description clvmd
4cb4934b
JK
135clvmd is the daemon that distributes LVM metadata updates around a
136cluster. It must be running on all nodes in the cluster and will give
137an error if a node in the cluster does not have this daemon running.
7e873dd0
JK
138
139%description clvmd -l pl.UTF-8
140clvmd to demon który rozprowadza zmiany meta-danych LVM po klastrze.
4cb4934b
JK
141Mysi działać na wszystkich węzłach klastra i zgłosi błąd gdy jakiś
142węzeł w klastrze nie ma tego demona uruchomionego.
7e873dd0
JK
143
144%package cmirrord
145Summary: Cluster mirror log daemon
146Group: Applications/System
1aa2f585 147Requires: %{name} = %{version}-%{release}
7e873dd0
JK
148
149%description cmirrord
4cb4934b
JK
150cmirrord is the daemon that tracks mirror log information in a
151cluster. It is specific to device-mapper based mirrors (and by
152extension, LVM cluster mirrors). Cluster mirrors are not possible
153without this daemon running.
7e873dd0 154
4cb4934b
JK
155This daemon relies on the cluster infrastructure provided by the
156Cluster MANager (CMAN), which must be set up and running in order for
157cmirrord to function.
7e873dd0 158
b167057a
AM
159%package -n device-mapper
160Summary: Userspace support for the device-mapper
161Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika
162Group: Base
b5640c74
JR
163Requires(post,preun,postun): systemd-units >= 38
164Requires: systemd-units >= 38
b167057a
AM
165
166%description -n device-mapper
167The goal of this driver is to support volume management. The driver
168enables the definition of new block devices composed of ranges of
169sectors of existing devices. This can be used to define disk
170partitions - or logical volumes. This light-weight kernel component
171can support user-space tools for logical volume management.
172
173%description -n device-mapper -l pl.UTF-8
174Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
175włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
176sektorów na istniejących urządzeniach. Może to być wykorzystane do
177definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
178składnik jądra może wspierać działające w przestrzeni użytkownika
179narzędzia do zarządzania logicznymi wolumenami.
180
181%package -n device-mapper-devel
182Summary: Header files and development documentation for %{name}
183Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do %{name}
184Group: Development/Libraries
185Requires: device-mapper = %{version}-%{release}
186%if %{with selinux}
187Requires: libselinux-devel
188Requires: libsepol-devel
189%endif
190
191%description -n device-mapper-devel
192Header files and development documentation for %{name}.
193
194%description -n device-mapper-devel -l pl.UTF-8
195Pliki nagłówkowe i dokumentacja do %{name}.
196
197%package -n device-mapper-static
198Summary: Static devmapper library
199Summary(pl.UTF-8): Statyczna biblioteka devmapper
200License: LGPL v2.1
201Group: Development/Libraries
dc900ced 202Requires: device-mapper-devel = %{version}-%{release}
b167057a
AM
203
204%description -n device-mapper-static
205Static devmapper library.
206
207%description -n device-mapper-static -l pl.UTF-8
208Statyczna biblioteka devmapper.
209
c70b42f6
JR
210%package -n device-mapper-dietlibc
211Summary: Static devmapper library built with dietlibc
212Summary(pl.UTF-8): Statyczna biblioteka devmapper zbudowana z dietlibc
213License: LGPL v2.1
214Group: Development/Libraries
215Requires: device-mapper-devel = %{version}-%{release}
216
217%description -n device-mapper-dietlibc
218Static devmapper library built with dietlibc.
219
220%description -n device-mapper-dietlibc -l pl.UTF-8
221Statyczna biblioteka devmapper zbudowana z dietlibc.
222
4a323c26
JR
223%package -n device-mapper-initrd
224Summary: Userspace support for the device-mapper - initrd version
225Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika - wersja dla initrd
226Group: Base
227Obsoletes: device-mapper-initrd-devel
1f7434e8 228Conflicts: geninitrd < 10000.10
4a323c26
JR
229
230%description -n device-mapper-initrd
231The goal of this driver is to support volume management. The driver
232enables the definition of new block devices composed of ranges of
233sectors of existing devices. This can be used to define disk
234partitions - or logical volumes. This light-weight kernel component
235can support user-space tools for logical volume management.
236
237This package contains dmsetup program linked staticaly for use in
238initrd.
239
240%description -n device-mapper-initrd -l pl.UTF-8
241Celem tego sterownika jest obsługa zarządzania wolumenami. Sterownik
242włącza definiowanie nowych urządzeń blokowych złożonych z przedziałów
243sektorów na istniejących urządzeniach. Może to być wykorzystane do
244definiowania partycji na dysku lub logicznych wolumenów. Ten lekki
245składnik jądra może wspierać działające w przestrzeni użytkownika
246narzędzia do zarządzania logicznymi wolumenami.
247
248Ten pakiet zawiera program dmsetup skonsolidowany statycznie na
249potrzeby initrd.
250
7e72c866 251%prep
ec2de926 252%setup -q -n LVM2.%{version}
7210a095 253%{?with_selinux:%patch0 -p1}
c70b42f6 254%patch1 -p1
9a00e98a 255%patch2 -p1
f0dab9f1 256%patch3 -p1
b747c17a 257%patch4 -p1
b08139b7 258%patch5 -p1
eaa437a5 259%patch6 -p1
b167057a 260
39c8d1d5 261# do not force --export-symbol linker option for e.g. statically linked executables
b5eb9717
PS
262# -rdynamic compiler option drives linker in the right way.
263%{__sed} -i -e 's#-Wl,--export-dynamic#-rdynamic#g' configure.in
264
7e72c866 265%build
87a7d834
ER
266%if %{with initrd}
267echo Using %{?with_glibc:GLIBC} %{?with_uClibc:uClibc} %{?with_dietlibc:diet} for initrd
268%endif
242ffb9a 269cp -f /usr/share/automake/config.sub autoconf
7e72c866
JR
270%{__aclocal}
271%{__autoconf}
272
99958222 273%if %{with initrd}
6c31051f
PS
274%{?with_glibc:export CC="%{__cc}"}
275%{?with_uClibc:export CC="%{_target_cpu}-uclibc-gcc"}
4cbea9f4 276%{?with_dietlibc:cc="%{__cc}"; export CC="diet ${cc#ccache }"}
6c31051f 277
9bdab2f4 278%configure \
a5702977 279 ac_cv_lib_dl_dlopen=no \
eaa437a5 280 %{?with_uClibc:ac_cv_func_siginterrupt=no} \
4c78aede 281 %{?debug:--enable-debug} \
e6cf1072 282 --with-optimisation="%{rpmcflags} -Os" \
9bdab2f4 283 --enable-static_link \
69688a46 284 --with-lvm1=internal \
b0e6f8e2 285 --disable-selinux \
c70b42f6 286 --%{?with_glibc:en}%{!?with_glibc:dis}able-selinux \
260d6858 287 --disable-readline \
ef3dbc1a 288 --disable-nls
c70b42f6 289# glibc version links with normal static libdevicemapper which has selinux enabled
260d6858 290# and we need to keep these in sync between device-mapper and lvm2
4c78aede
ER
291
292%{__sed} -i -e 's#rpl_malloc#malloc#g' lib/misc/configure.h
0402cba0 293%{__sed} -i -e 's#rpl_realloc#realloc#g' lib/misc/configure.h
ec2de926 294
c7bbf0c8
AM
295%{__make} -j1 -C include
296%{__make} -j1 -C lib LIB_SHARED= VERSIONED_SHLIB=
297%{__make} -j1 -C libdm LIB_SHARED= VERSIONED_SHLIB=
4cb4934b 298%{__make} -j1 -C libdaemon/client LIB_SHARED= VERSIONED_SHLIB=
2afef789 299%{__make} -j1 -C tools dmsetup.static lvm.static %{?with_dietlibc:DIETLIBC_LIBS="-lcompat"}
69688a46 300mv -f tools/lvm.static initrd-lvm
4a323c26 301mv -f tools/dmsetup.static initrd-dmsetup
7cef5d95
AM
302
303# check if tools works
304for tool in initrd-lvm initrd-dmsetup; do
cfa41a73 305 LVM_SYSTEM_DIR=$(pwd) ./$tool help && rc=$? || rc=$?
7cef5d95 306 if [ $rc -gt 127 ]; then
cfa41a73 307 echo >&2 "Unexpected failure (exit status: $rc) from $tool. Does this tool work?!"
7cef5d95
AM
308 exit 1
309 fi
310done
311
312
c70b42f6 313%{?with_dietlibc:mv -f libdm/ioctl/libdevmapper.a diet-libdevmapper.a}
9bdab2f4 314%{__make} clean
6c31051f
PS
315
316unset CC
7e72c866
JR
317%endif
318
9d0d1d5f 319%configure \
b167057a 320 --with-usrlibdir=%{_libdir} \
4c78aede 321 %{?debug:--enable-debug} \
b167057a 322 --with-optimisation="%{rpmcflags}" \
607d2229
AM
323 --enable-readline \
324 --enable-fsadm \
6e7a47a9 325 --enable-applib \
b167057a 326 --enable-cmdlib \
d3778cc3 327 %{?with_lvmetad:--enable-lvmetad} \
b167057a 328 --enable-dmeventd \
93d018f8 329 --with-dmeventd-path=%{_sbindir}/dmeventd \
b167057a 330 --enable-pkgconfig \
5f0ee085
JB
331 --enable-udev_sync \
332 --enable-udev_rules \
7e873dd0 333%if %{with cluster}
4cb4934b
JK
334 --with-clvmd=corosync \
335 --enable-cmirrord \
5cf18a89 336%endif
607d2229
AM
337 --with-lvm1=internal \
338 --with-pool=internal \
3852b0e2 339 --with-cluster=internal \
607d2229 340 --with-snapshots=internal \
0dc2b8f2 341 --with-mirrors=internal \
b5640c74 342 --with-thin=internal \
4cb4934b 343 --with-thin-check="" \
b167057a 344 --with-interface=ioctl \
589f4db4 345 --with-udev-prefix=/ \
9b82b6a5 346 --with-systemd_dir=%{systemdunitdir} \
cfa41a73 347 %{!?with_selinux:--disable-selinux}
589f4db4 348
b167057a 349%{__make} -j1
c7bbf0c8 350%{__make} -j1 -C libdm LIB_STATIC=libdevmapper.a
7e72c866
JR
351
352%install
353rm -rf $RPM_BUILD_ROOT
c386faf9 354install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/lvm}
c70b42f6 355%{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
7e72c866 356
9b82b6a5 357%{__make} install install_system_dirs install_systemd_units install_initscripts \
7e72c866 358 DESTDIR=$RPM_BUILD_ROOT \
1ccfba6c
AM
359 OWNER="" \
360 GROUP=""
7e72c866 361
4cb4934b
JK
362install -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
363install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{name}.conf
9b82b6a5 364
b167057a
AM
365mv $RPM_BUILD_ROOT%{_libdir}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
366for lib in $RPM_BUILD_ROOT/%{_lib}/lib*.so.*; do
367 lib=$(echo $lib | sed -e "s#$RPM_BUILD_ROOT##g")
368 slib=$(basename $lib | sed -e 's#\.so\..*#.so#g')
369 ln -sf $lib $RPM_BUILD_ROOT%{_libdir}/$slib
370done
371
1cfc154f
JR
372touch $RPM_BUILD_ROOT%{_sysconfdir}/lvm/lvm.conf
373
88c67b5b
JR
374%if %{with initrd}
375install -d $RPM_BUILD_ROOT%{_libdir}/initrd
a3569314
ER
376install -p initrd-lvm $RPM_BUILD_ROOT%{_libdir}/initrd/lvm
377install -p initrd-dmsetup $RPM_BUILD_ROOT%{_libdir}/initrd/dmsetup
7e72c866 378
a3569314 379%{?with_dietlibc:cp -a diet-libdevmapper.a $RPM_BUILD_ROOT%{dietlibdir}/libdevmapper.a}
1306038e 380%endif
c70b42f6 381
a3569314 382cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir}
b167057a 383
7e72c866
JR
384%clean
385rm -rf $RPM_BUILD_ROOT
386
6e7a47a9
AM
387%post
388/sbin/chkconfig --add lvm2-monitor
389%service lvm2-monitor restart
c35cea65 390%systemd_post lvm2-monitor.service
4cb4934b
JK
391/sbin/chkconfig --add blk-availability
392# no service blk-availability restart
393%systemd_post blk-availability.service
c35cea65
JR
394
395%preun
396%systemd_preun lvm2-monitor.service
4cb4934b 397%systemd_preun blk-availability.service
6e7a47a9
AM
398
399%postun
400if [ "$1" = "0" ]; then
401 %service lvm2-monitor stop
402 /sbin/chkconfig --del lvm2-monitor
4cb4934b
JK
403 #no service blk-availability stop
404 /sbin/chkconfig --del blk-availability
6e7a47a9 405fi
c35cea65 406%systemd_reload
6e7a47a9 407
c35cea65
JR
408%triggerpostun -- %{name} < 2.02.94-1
409%systemd_trigger lvm2-monitor.service
b167057a 410
c35cea65
JR
411%post -n device-mapper
412/sbin/ldconfig
413%systemd_post dm-event.socket
9b82b6a5 414
c35cea65
JR
415%preun -n device-mapper
416%systemd_preun dm-event.socket dm-event.service
9b82b6a5 417
c35cea65
JR
418%postun -n device-mapper
419/sbin/ldconfig
9b82b6a5
BZ
420%systemd_reload
421
c35cea65
JR
422%triggerpostun -n device-mapper -- device-mapper < 2.02.94-1
423%systemd_trigger dm-event.socket
424
7e72c866
JR
425%files
426%defattr(644,root,root,755)
e6ac7970 427%doc README WHATS_NEW doc/*
4cb4934b 428%attr(755,root,root) %{_sbindir}/blkdeactivate
86418c14
JB
429%attr(755,root,root) %{_sbindir}/fsadm
430%attr(755,root,root) %{_sbindir}/lv*
431%attr(755,root,root) %{_sbindir}/pv*
432%attr(755,root,root) %{_sbindir}/vg*
86418c14 433%{_mandir}/man5/lvm.conf.5*
4cb4934b 434%{_mandir}/man8/blkdeactivate.8*
86418c14
JB
435%{_mandir}/man8/fsadm.8*
436%{_mandir}/man8/lv*.8*
437%{_mandir}/man8/pv*.8*
438%{_mandir}/man8/vg*.8*
99958222 439%attr(750,root,root) %dir %{_sysconfdir}/lvm
2316bf4d 440%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/lvm.conf
c35cea65
JR
441%{_sysconfdir}/tmpfiles.d/lvm2.conf
442%{systemdunitdir}/lvm2-monitor.service
4cb4934b 443%{systemdunitdir}/blk-availability.service
6e7a47a9
AM
444%dir %{_sysconfdir}/lvm/cache
445%ghost %{_sysconfdir}/lvm/cache/.cache
4cb4934b 446%attr(754,root,root) /etc/rc.d/init.d/blk-availability
6e7a47a9 447%attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor
7e873dd0
JK
448
449%if %{with cluster}
450%files clvmd
451%defattr(644,root,root,755)
452%attr(755,root,root) %{_usrsbindir}/clvmd
453%attr(754,root,root) /etc/rc.d/init.d/clvmd
454%{_mandir}/man8/clvmd.8*
455
7e873dd0
JK
456%files cmirrord
457%defattr(644,root,root,755)
458%attr(755,root,root) %{_usrsbindir}/cmirrord
459%{_mandir}/man8/cmirrord.8*
460%attr(754,root,root) /etc/rc.d/init.d/cmirrord
461%endif
7e72c866 462
b167057a
AM
463%files -n device-mapper
464%defattr(644,root,root,755)
465%doc *_DM
c35cea65
JR
466%{systemdunitdir}/dm-event.service
467%{systemdunitdir}/dm-event.socket
589f4db4
JR
468/lib/udev/rules.d/10-dm.rules
469/lib/udev/rules.d/11-dm-lvm.rules
470/lib/udev/rules.d/13-dm-disk.rules
471/lib/udev/rules.d/95-dm-notify.rules
b167057a
AM
472%attr(755,root,root) %{_sbindir}/dmeventd
473%attr(755,root,root) %{_sbindir}/dmsetup
474%attr(755,root,root) /%{_lib}/libdevmapper*.so.*.*
6e7a47a9 475%attr(755,root,root) /%{_lib}/liblvm2app.so.*.*
b167057a 476%attr(755,root,root) /%{_lib}/liblvm2cmd.so.*.*
1306038e
AM
477%dir %{_libdir}/device-mapper
478%attr(755,root,root) %{_libdir}/device-mapper/*.so
bece12dd 479%attr(755,root,root) %{_libdir}/libdevmapper-event-*.so
b167057a 480%{_mandir}/man8/dmsetup.8*
f0dab9f1 481%{_mandir}/man8/dmeventd.8*
b167057a
AM
482
483%files -n device-mapper-devel
484%defattr(644,root,root,755)
bece12dd
JR
485%attr(755,root,root) %{_libdir}/libdevmapper.so
486%attr(755,root,root) %{_libdir}/libdevmapper-event.so
6e7a47a9 487%attr(755,root,root) %{_libdir}/liblvm2app.so
b167057a
AM
488%attr(755,root,root) %{_libdir}/liblvm2cmd.so
489%{_includedir}/libdevmapper*.h
6e7a47a9 490%{_includedir}/lvm2app.h
b167057a
AM
491%{_includedir}/lvm2cmd.h
492%{_pkgconfigdir}/devmapper*.pc
6e7a47a9 493%{_pkgconfigdir}/lvm2app.pc
b167057a
AM
494
495%files -n device-mapper-static
496%defattr(644,root,root,755)
497%{_libdir}/libdevmapper*.a
498
1306038e 499%if %{with initrd}
c70b42f6
JR
500%if %{with dietlibc}
501%files -n device-mapper-dietlibc
502%defattr(644,root,root,755)
503%{dietlibdir}/libdevmapper.a
504%endif
505
4a323c26
JR
506%files -n device-mapper-initrd
507%defattr(644,root,root,755)
88c67b5b 508%attr(755,root,root) %{_libdir}/initrd/dmsetup
4a323c26 509
7e72c866
JR
510%files initrd
511%defattr(644,root,root,755)
88c67b5b 512%attr(755,root,root) %{_libdir}/initrd/lvm
7e72c866 513%endif
This page took 0.178603 seconds and 4 git commands to generate.