]> git.pld-linux.org Git - packages/courier-imap.git/commitdiff
- fixed mysql detection problem (--with-mysql-libs must be specified)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 7 Aug 2001 22:13:18 +0000 (22:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added _without_ldap and _without_mysql

Changed files:
    courier-imap.spec -> 1.28

courier-imap.spec

index 5da4b0fc5bc6c64fc4b90e29bc6701bc643d27a8..c41382a9480b22941dc2717a41367da720cb2d9e 100644 (file)
@@ -1,4 +1,9 @@
+#
+# Conditional build:
+# _without_ldap - without LDAP support
+# _without_mysql - without MySQL support
 Summary:       Courier-IMAP server
+Summary(pl):   Serwer Courier-IMAP
 Name:          courier-imap
 Version:       1.3.8.2
 Release:       1
@@ -17,8 +22,8 @@ Source6:      %{name}.sysconfig
 Source7:       %{name}-pop3.sysconfig
 Source8:       %{name}-authdaemon.sysconfig
 Requires:      %{name}-common = %{version}
-BuildRequires: mysql-devel
-BuildRequires: openldap-devel
+%{!?_without_mysql:BuildRequires:      mysql-devel}
+%{!?_without_ldap:BuildRequires:       openldap-devel}
 Prereq:                rc-scripts
 Provides:      imapdaemon
 Obsoletes:     imapdaemon
@@ -34,7 +39,8 @@ Courier-IMAP is an IMAP server for Maildir mailboxes.
 Courier-IMAP jest serwerem IMAP dla skrzynek pocztowych Maildir.
 
 %package common
-Summary:       Common files for imap and pop daemons.
+Summary:       Common files for imap and pop daemons
+Summary(pl):   Pliki wspólne dla serwerów imap i pop
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
@@ -48,6 +54,7 @@ Pliki wsp
 
 %package pop3
 Summary:       Courier-IMAP POP3 Server
+Summary(pl):   Serwer Courier-IMAP POP3
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
@@ -67,7 +74,10 @@ Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir.
 
 %build
 %configure2_13 \
-       --with-authdaemonvar=/var/lib/authdaemon
+       --with-authdaemonvar=/var/lib/authdaemon \
+       %{!?_without_mysql:--with-mysql-libs=/usr/lib} \
+       %{?_without_ldap:--without-authldap}
+
 %{__make}
 
 %install
@@ -111,8 +121,8 @@ echo ".so authlib.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/authuserdb.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authvchkpw.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authdaemon.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authdaemond.8
-echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authmysql.8
-echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authldap.8
+%{!?_without_mysql:echo ".so authlib.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/authmysql.8}
+%{!?_without_ldap:echo ".so authlib.8" >$RPM_BUILD_ROOT%{_mandir}/man8/authldap.8}
 echo ".so makeuserdb.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
 echo ".so makeuserdb.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
 
@@ -195,8 +205,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libexecdir}
 %dir %{_libexecdir}/authlib
 %{_sysconfdir}/authdaemonrc
-%{_sysconfdir}/authldaprc
-%{_sysconfdir}/authmysqlrc
+%{!?_without_ldap:%{_sysconfdir}/authldaprc}
+%{!?_without_mysql:%{_sysconfdir}/authmysqlrc}
 %{_sysconfdir}/quotawarnmsg.example
 %attr(755,root,root) %{_bindir}/couriertls
 %attr(755,root,root) %{_bindir}/maildirmake
This page took 0.162576 seconds and 4 git commands to generate.