From e2b16e7856578aa18cc354617eab18dce227bc82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 19 Nov 2004 21:23:18 +0000 Subject: [PATCH] - added selinux bcond; rel 2; STBR Changed files: device-mapper.spec -> 1.32 --- device-mapper.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/device-mapper.spec b/device-mapper.spec index 588817c..f11b81b 100644 --- a/device-mapper.spec +++ b/device-mapper.spec @@ -1,8 +1,12 @@ +# +# 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.19 -Release: 1 +Release: 2 License: GPL Group: Applications/System Source0: ftp://sources.redhat.com/pub/dm/%{name}.%{version}.tgz @@ -10,8 +14,8 @@ Source0: ftp://sources.redhat.com/pub/dm/%{name}.%{version}.tgz URL: http://sources.redhat.com/dm/ BuildRequires: autoconf BuildRequires: automake -BuildRequires: libselinux-devel >= 1.10 -Requires: libselinux >= 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) @@ -65,6 +69,7 @@ cp -f /usr/share/automake/config.sub autoconf %{__aclocal} %{__autoconf} %configure \ + SELINUX=%{?with_selinux:yes}%{!?with_selinux:no} \ --with-optimisation="%{rpmcflags}" \ --with-user=%(id -u) \ --with-group=%(id -g) \ -- 2.43.0