]> git.pld-linux.org Git - packages/pwdutils.git/commitdiff
- bcond_without ldap
authorPaweł Sikora <pluto@pld-linux.org>
Thu, 29 Apr 2004 06:39:46 +0000 (06:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pwdutils.spec -> 1.33

pwdutils.spec

index a6ed8b31c7245a8a567f094f96abd6660c555e13..1d0387dedd479674ab9695ecde020db7ffab3226 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without ldap    # build without LDAP support
+#
 Summary:       Utilities to manage the passwd and shadow user information
 Summary(pl):   Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
 Name:          pwdutils
@@ -22,7 +26,7 @@ BuildRequires:        automake
 BuildRequires: gcc >= 5:3.2
 BuildRequires: gettext-devel
 BuildRequires: libselinux-devel
-BuildRequires: openldap-devel
+%{?with_ldap:  BuildRequires:  openldap-devel}
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: openslp-devel
 BuildRequires: pam-devel
@@ -109,7 +113,7 @@ sed -i -e 's#EXTRA_CFLAGS=.*#EXTRA_CFLAGS="-W -Wall"#g' configure.in
        --enable-selinux \
        --enable-slp \
        --enable-ssl \
-       --enable-ldap \
+       --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
        --enable-nls \
        --disable-rpath
 %{__make}
This page took 0.028624 seconds and 4 git commands to generate.