3 %bcond_without selinux # build without SELinux support
5 Summary: Userspace support for the device-mapper
6 Summary(pl): Wsparcie dla mapowania urz±dzeñ w przestrzeni u¿ytkownika
11 Group: Applications/System
12 Source0: ftp://sources.redhat.com/pub/dm/%{name}.%{version}.tgz
13 # Source0-md5: a7a97c469f22e3ec2cdcb5aae5603f3f
14 URL: http://sources.redhat.com/dm/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 %{?with_selinux:BuildRequires: libselinux-devel >= 1.10}
18 %{?with_selinux:Requires: libselinux >= 1.10}
19 Conflicts: dev < 2.9.0-8
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sbindir /sbin
25 The goal of this driver is to support volume management.
26 The driver enables the definition of new block devices composed of
27 ranges of sectors of existing devices. This can be used to define
28 disk partitions - or logical volumes. This light-weight kernel
29 component can support user-space tools for logical volume management.
32 Celem tego sterownika jest obs³uga zarz±dzania wolumenami.
33 Sterownik w³±cza definiowanie nowych urz±dzeñ blokowych z³o¿onych z
34 przedzia³ów sektorów na istniej±cych urz±dzeniach. Mo¿e to byæ
35 wykorzystane do definiowania partycji na dysku lub logicznych
36 wolumenów. Ten lekki sk³adnik j±dra mo¿e wspieraæ dzia³aj±ce w
37 przestrzeni u¿ytkownika narzêdzia do zarz±dzania logicznymi
41 Summary: Header files and development documentation for %{name}
42 Summary(pl): Pliki nag³ówkowe i dokumentacja do %{name}
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files and development documentation for %{name}.
49 %description devel -l pl
50 Pliki nag³ówkowe i dokumentacja do %{name}.
53 Summary: Static devmapper library
54 Summary(pl): Statyczna biblioteka devmapper
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static devmapper library.
61 %description static -l pl
62 Statyczna biblioteka devmapper.
65 %setup -q -n %{name}.%{version}
68 cp -f /usr/share/automake/config.sub autoconf
72 SELINUX=%{?with_selinux:yes}%{!?with_selinux:no} \
73 --with-optimisation="%{rpmcflags}" \
74 --with-user=%(id -u) \
75 --with-group=%(id -g) \
76 --with-interface=ioctl
79 ar cru libdevmapper.a lib/ioctl/*.o lib/*.o
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{/%{_lib},%{_libdir}/%{name}}
87 DESTDIR=$RPM_BUILD_ROOT
89 SONAME=$(basename $(ls -1 $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*))
90 ln -sf /%{_lib}/${SONAME} $RPM_BUILD_ROOT%{_libdir}/libdevmapper.so
91 mv -f $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* $RPM_BUILD_ROOT/%{_lib}
92 cp -f scripts/* $RPM_BUILD_ROOT%{_libdir}/%{name}
94 install libdevmapper.a $RPM_BUILD_ROOT%{_libdir}
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %doc INTRO INSTALL README
105 %attr(755,root,root) %{_sbindir}/*
106 %attr(755,root,root) /%{_lib}/lib*.so.*.*
107 %dir %{_libdir}/%{name}
108 %attr(755,root,root) %{_libdir}/%{name}/*
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libdevmapper.so
117 %defattr(644,root,root,755)