diff -r 09548e292fb1 -r 747afbba9aa8 dovecot/dovecot.spec --- a/dovecot/dovecot.spec Wed Feb 08 20:16:25 2012 +0200 +++ b/dovecot/dovecot.spec Tue Aug 28 18:52:55 2012 +0200 @@ -22,9 +22,9 @@ ## # package version -%define V_major 2.0 -%define V_minor 18 -%define V_pigeonhole 0.2.6 +%define V_major 2.1 +%define V_minor 9 +%define V_pigeonhole 0.3.1 # package information Name: dovecot @@ -37,7 +37,7 @@ Group: Mail License: MIT+LGPL Version: %{V_major}.%{V_minor} -Release: 20120208 +Release: 20120800 # package options %option with_fsl yes @@ -57,10 +57,8 @@ Patch0: dovecot.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20060823 -PreReq: OpenPKG, openpkg >= 20060823, MTA, x509 +BuildPreReq: OpenPKG, openpkg >= 20100101, pkgconfig +PreReq: OpenPKG, openpkg >= 20100101, MTA, x509 BuildPreReq: libiconv, openssl, zlib, bzip2 PreReq: libiconv, openssl, zlib, bzip2 %if "%{with_fsl}" == "yes" @@ -91,8 +89,6 @@ BuildPreReq: sqlite PreReq: sqlite %endif -AutoReq: no -AutoReqProv: no %description Dovecot is an Open Source IMAP and POP3 server, written with @@ -127,17 +123,18 @@ src/lib-lda/lda-settings.c cppflags="%{l_cppflags}" ldflags="%{l_ldflags} %{l_fsl_ldflags}" - libs="%{l_fsl_libs}" + libs="%{l_fsl_libs} `%{l_prefix}/bin/pkg-config --libs-only-l openssl`" sql_drivers="" %if "%{with_ldap}" == "yes" - libs="$libs -llber -lssl -lcrypto" + ldflags="$ldflags `%{l_prefix}/bin/pkg-config --libs-only-L openldap`" + libs="$libs `%{l_prefix}/bin/pkg-config --libs-only-l openldap`" %endif %if "%{with_mysql}" == "yes" cppflags="$cppflags %{l_cppflags mysql}" ldflags="$ldflags %{l_ldflags mysql}" %endif %if "%{with_pgsql}" == "yes" - libs="$libs -lssl -lcrypto -lcrypt" + libs="$libs `%{l_prefix}/bin/pg_config --libs" %endif sql_drivers=`echo "$sql_drivers" | sed 's;^,;;'` CC="%{l_cc}" \ @@ -215,9 +212,6 @@ %endif %install - # clean build cruft - rm -rf $RPM_BUILD_ROOT - # install Dovecot %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" @@ -282,7 +276,6 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service