]> git.pld-linux.org Git - packages/device-mapper.git/blobdiff - device-mapper.spec
- added selinux bcond; rel 2; STBR
[packages/device-mapper.git] / device-mapper.spec
index d79ddde1f78b10d2aa318f6f980a00164689c5c6..f11b81bc4a8c26f1746474cc6fdc2bdd31b471b2 100644 (file)
@@ -1,17 +1,21 @@
+#
+# Conditional build:
+%bcond_without selinux         # build without SELinux support
+#
 Summary:       Userspace support for the device-mapper
 Summary(pl):   Wsparcie dla mapowania urz±dzeñ w przestrzeni u¿ytkownika
 Name:          device-mapper
-Version:       1.00.18
-Release:       1
+Version:       1.00.19
+Release:       2
 License:       GPL
 Group:         Applications/System
 Source0:       ftp://sources.redhat.com/pub/dm/%{name}.%{version}.tgz
-# Source0-md5: ff14891c9a717731289355c334056eb4
-Patch0:                %{name}-opt.patch
+# Source0-md5: a7a97c469f22e3ec2cdcb5aae5603f3f
 URL:           http://sources.redhat.com/dm/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libselinux-devel >= 1.10
+%{?with_selinux:BuildRequires: libselinux-devel >= 1.10}
+%{?with_selinux:Requires:      libselinux >= 1.10}
 Conflicts:     dev < 2.9.0-8
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -59,15 +63,16 @@ Statyczna biblioteka devmapper.
 
 %prep
 %setup -q -n %{name}.%{version}
-%patch0 -p1
 
 %build
 cp -f /usr/share/automake/config.sub autoconf
 %{__aclocal}
 %{__autoconf}
 %configure \
-       --with-user=$(id -u) \
-       --with-group=$(id -g) \
+       SELINUX=%{?with_selinux:yes}%{!?with_selinux:no} \
+       --with-optimisation="%{rpmcflags}" \
+       --with-user=%(id -u) \
+       --with-group=%(id -g) \
        --with-interface=ioctl
 %{__make}
 
@@ -105,7 +110,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/libdevmapper.so
 %{_includedir}/*.h
 
 %files static
This page took 0.179566 seconds and 4 git commands to generate.