]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- added selinux bcond
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Nov 2004 22:15:23 +0000 (22:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux.spec -> 1.247

util-linux.spec

index 9272cec2927072cc841b9fe47959faadee5e9e02..773a36f3806fc3ab913cbfc0ad2e50ec30d3b87b 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_with    uClibc  # don't build few utilities
+%bcond_without selinux         # build without SELinux support
 #
 # TODO:
 # - move raw to /sbin (potentially can be used before mount partitions)??
@@ -52,7 +53,7 @@ Patch19:      %{name}-io.patch
 BuildRequires: cryptsetup-devel
 BuildRequires: gettext-devel
 BuildRequires: grep
-BuildRequires: libselinux-devel
+%{?with_selinux:BuildRequires: libselinux-devel}
 %{!?with_uClibc:BuildRequires: ncurses-devel >= 5.0}
 %{!?with_uClibc:BuildRequires: pam-devel >= 0.77.3}
 BuildRequires: texinfo
@@ -353,6 +354,7 @@ Obs
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+# NOTE: selinux bcond is handled in %build
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
@@ -371,7 +373,8 @@ export CC CFLAGS LDFLAGS
        OPT="%{rpmcflags}" \
        MOREHELPDIR=%{_datadir}/misc \
        %{!?with_uClibc:ADD_RAW="yes"} \
-       %{?with_uClibc:HAVE_RAW_H="no" HAVE_PAM="no"}
+       %{?with_uClibc:HAVE_RAW_H="no" HAVE_PAM="no"} \
+       %{!?with_selinux:HAVE_SELINUX="no"}
 
 %ifarch ppc
 %{__cc} %{rpmcflags} %{rpmldflags} clock-ppc.c -o clock-ppc
This page took 0.093678 seconds and 4 git commands to generate.