Author: jajcus                       Date: Fri May  6 08:21:09 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- without_ldap bcond added

---- Files affected:
packages/courier-authlib:
   courier-authlib.spec (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: packages/courier-authlib/courier-authlib.spec
diff -u packages/courier-authlib/courier-authlib.spec:1.76 
packages/courier-authlib/courier-authlib.spec:1.77
--- packages/courier-authlib/courier-authlib.spec:1.76  Thu Mar 31 20:12:40 2011
+++ packages/courier-authlib/courier-authlib.spec       Fri May  6 10:21:03 2011
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without ldap            # do not include LDAP support
+
 Summary:       Courier authentication library
 Summary(pl.UTF-8):     Biblioteka uwierzytelniania Couriera
 Name:          courier-authlib
@@ -21,7 +25,7 @@
 BuildRequires: libltdl-devel
 BuildRequires: libtool
 BuildRequires: mysql-devel
-BuildRequires: openldap-devel >= 2.3.0
+%{?with_ldap:BuildRequires:    openldap-devel >= 2.3.0}
 BuildRequires: pam-devel
 BuildRequires: postgresql-devel
 BuildRequires: rpmbuild(macros) >= 1.304
@@ -70,7 +74,7 @@
 Summary(pl.UTF-8):     Pliki programistyczne dla biblioteki uwierzytelniania 
Couriera
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      %{name}-authldap = %{version}-%{release}
+%{?with_ldap:Requires: %{name}-authldap = %{version}-%{release}}
 Requires:      %{name}-authmysql = %{version}-%{release}
 Requires:      %{name}-authpgsql = %{version}-%{release}
 Requires:      %{name}-authuserdb = %{version}-%{release}
@@ -238,6 +242,7 @@
 
 %configure \
        --enable-ltdl-install=no \
+       %{!?with_ldap:--without-authldap} \
        --with-db=db \
        --with-mailuser=daemon \
        --with-mailgroup=daemon
@@ -577,6 +582,7 @@
 %{_mandir}/man3/*
 %attr(755,root,root) %{_libexecdir}/courier-authlib/*.so
 
+%if %{with ldap}
 %files authldap
 %defattr(644,root,root,755)
 %doc authldap.schema README.ldap
@@ -584,6 +590,7 @@
 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthldap.so
 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthldap.so.0
 %{_libexecdir}/courier-authlib/libauthldap.la
+%endif
 
 %files authmysql
 %defattr(644,root,root,755)
@@ -618,9 +625,11 @@
 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthpipe.so.0
 %{_libexecdir}/courier-authlib/libauthpipe.la
 
+%if %{with ldap}
 %files -n openldap-schema-courier
 %defattr(644,root,root,755)
 %{schemadir}/*.schema
+%endif
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -628,6 +637,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.77  2011/05/06 08:21:03  jajcus
+- without_ldap bcond added
+
 Revision 1.76  2011/03/31 18:12:40  arekm
 - release 4
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/courier-authlib/courier-authlib.spec?r1=1.76&r2=1.77&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to