packages: exim/exim.spec - rel 2; disable dynamic modules (built them stati...

arekm arekm at pld-linux.org
Fri Sep 16 08:42:40 CEST 2011


Author: arekm                        Date: Fri Sep 16 06:42:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 2; disable dynamic modules (built them statically); we'll back to dynamic if we decide to split exim into subpackages

---- Files affected:
packages/exim:
   exim.spec (1.327 -> 1.328) 

---- Diffs:

================================================================
Index: packages/exim/exim.spec
diff -u packages/exim/exim.spec:1.327 packages/exim/exim.spec:1.328
--- packages/exim/exim.spec:1.327	Fri May 13 21:14:30 2011
+++ packages/exim/exim.spec	Fri Sep 16 08:42:34 2011
@@ -9,13 +9,14 @@
 %bcond_without	ldap	# without LDAP support
 %bcond_without	spf	# without spf support
 %bcond_without	srs	# without srs support
+%bcond_with	dynamic # dynamic modules
 #
 Summary:	University of Cambridge Mail Transfer Agent
 Summary(pl.UTF-8):	Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR.UTF-8):	Servidor de correio eletrônico exim
 Name:		exim
 Version:	4.76
-Release:	1
+Release:	2
 Epoch:		2
 License:	GPL
 Group:		Networking/Daemons/SMTP
@@ -153,6 +154,9 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe dla Exima.
 
+%global	dynamic_type	yes
+%{?with_dynamic:%global dynamic_type 2}
+
 %prep
 %setup -q -a1 -a7
 %patch0 -p1
@@ -182,31 +186,47 @@
 %{?with_spf:EXPERIMENTAL_SPF=yes}
 %{?with_srs:EXPERIMENTAL_SRS=yes}
 %if %{with mysql}
-LOOKUP_MYSQL=2
+LOOKUP_MYSQL=%{dynamic_type}
+# for dynamic
 LOOKUP_MYSQL_INCLUDE=-I%{_includedir}/mysql
 LOOKUP_MYSQL_LIBS=-lmysqlclient
+# for static
+LOOKUP_INCLUDE+=-I%{_includedir}/mysql
+LOOKUP_LIBS+=-lmysqlclient
 %endif
 %if %{with pgsql}
-LOOKUP_PGSQL=2
+LOOKUP_PGSQL=%{dynamic_type}
+# for dynamic
 LOOKUP_PGSQL_INCLUDE=-I%{_includedir}/pgsql
 LOOKUP_PGSQL_LIBS=-lpq
+# for static
+LOOKUP_INCLUDE+=-I%{_includedir}/pgsql
+LOOKUP_LIBS+=-lpq
 %endif
 %if %{with sqlite}
-LOOKUP_SQLITE=2
+LOOKUP_SQLITE=%{dynamic_type}
+# for dynamic
 LOOKUP_SQLITE_LIBS=-lsqlite3
+# for static
+LOOKUP_LIBS+=-lsqlite3
 %endif
 %if %{with whoson}
-LOOKUP_WHOSON=2
+LOOKUP_WHOSON=%{dynamic_type}
+# for dynamic
 LOOKUP_WHOSON_LIBS=-lwhoson
+# for static
+LOOKUP_LIBS+=-lwhoson
 %endif
 %{?with_sasl:AUTH_CYRUS_SASL=yes}
 %if %{with ldap}
-LOOKUP_LDAP=yes
+LOOKUP_LDAP=%{dynamic_type}
 LDAP_LIB_TYPE=OPENLDAP2
-# currently dynamic ldap lookup not supported
-# LOOKUP_LDAP_LIBS=-lldap -llber
+# for dynamic
+LOOKUP_LDAP_LIBS=-lldap -llber
+# for static
+LOOKUP_LIBS+=-lldap -llber
 %endif
-LOOKUP_LIBS=%{?with_spf:-lspf2} %{?with_srs:-lsrs_alt} %{?with_sasl:-lsasl2} %{?with_ldap:-lldap -llber}
+LOOKUP_LIBS+=%{?with_spf:-lspf2} %{?with_srs:-lsrs_alt} %{?with_sasl:-lsasl2}
 EOF
 
 # have to be after Local/Makefile-Linux creation
@@ -233,7 +253,7 @@
 	$RPM_BUILD_ROOT%{_bindir}
 install build-Linux-*/eximon.bin $RPM_BUILD_ROOT%{_bindir}
 install build-Linux-*/eximon $RPM_BUILD_ROOT%{_bindir}
-install build-Linux-*/*/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}/modules
+%{?with_dynamic:install build-Linux-*/*/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}/modules}
 
 install %{SOURCE5} .
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.weekly
@@ -329,12 +349,14 @@
 %attr(640,exim,root) %ghost %{_var}/log/exim/*
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
+%if %{with dynamic}
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/modules
 %{?with_mysql:%attr(755,root,root) %{_libdir}/%{name}/modules/mysql.so}
 %{?with_pgsql:%attr(755,root,root) %{_libdir}/%{name}/modules/pgsql.so}
 %{?with_sqlite:%attr(755,root,root) %{_libdir}/%{name}/modules/sqlite.so}
 %{?with_whoson:%attr(755,root,root) %{_libdir}/%{name}/modules/whoson.so}
+%endif
 %{_mandir}/man8/*
 
 %files X11
@@ -354,6 +376,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.328  2011/09/16 06:42:34  arekm
+- rel 2; disable dynamic modules (built them statically); we'll back to dynamic if we decide to split exim into subpackages
+
 Revision 1.327  2011/05/13 19:14:30  arekm
 - up to 4.76; fixes CVE-2011-1764 and some other minor bugs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/exim/exim.spec?r1=1.327&r2=1.328&f=u



More information about the pld-cvs-commit mailing list