X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpostfix.git;a=blobdiff_plain;f=postfix.spec;h=8191a62361ab0abc18793601f3e58f4fec3fe131;hp=d446277923550a516b55ac1f3da661f105c7115b;hb=104d469196d85063eb17e8a519f0106da2d13be3;hpb=cb138bf3f3823231fee6960995b233568c3c85a8 diff --git a/postfix.spec b/postfix.spec index d446277..8191a62 100644 --- a/postfix.spec +++ b/postfix.spec @@ -18,7 +18,7 @@ Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho Summary(sk.UTF-8): Agent prenosu pošty Postfix Name: postfix Version: 3.0.2 -Release: 1 +Release: 5 Epoch: 2 License: distributable Group: Networking/Daemons/SMTP @@ -260,11 +260,15 @@ CC="%{__cc}" export CC %{__make} -j1 \ dynamicmaps=yes \ + shared=yes \ + shlib_directory=%{_libdir}/postfix \ DEBUG="" \ OPT="%{rpmcflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64" \ CCARGS="%{!?with_epoll:-DNO_EPOLL} %{?with_ldap:-DHAS_LDAP} -DHAS_PCRE %{?with_sasl:-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl} %{?with_mysql:-DHAS_MYSQL -I/usr/include/mysql} %{?with_pgsql:-DHAS_PGSQL} %{?with_ssl:-DUSE_TLS} %{?with_cdb:-DHAS_CDB} %{?with_sqlite:-DHAS_SQLITE}" \ + %{?with_ldap:AUXLIBS_CDB="-lcdb"} \ %{?with_ldap:AUXLIBS_LDAP="-lldap -llber"} \ %{?with_mysql:AUXLIBS_MYSQL="-lmysqlclient"} \ + %{?with_ldap:AUXLIBS_PCRE="-lpcre"} \ %{?with_pgsql:AUXLIBS_PGSQL="-lpq"} \ %{?with_sqlite:AUXLIBS_SQLITE="-lsqlite3 -lpthread"} \ AUXLIBS="%{?with_sasl:-lsasl} %{?with_ssl:-lssl -lcrypto}" @@ -288,6 +292,9 @@ cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}/mail sed -e's,^daemon_directory = .*,daemon_directory = %{_libdir}/postfix,' \ conf/main.cf > $RPM_BUILD_ROOT%{_sysconfdir}/mail/main.cf +sed -e 's,${LIB_PREFIX},%{_libdir}/postfix/postfix-,g;s,${LIB_SUFFIX},.so,g' \ + conf/dynamicmaps.cf > $RPM_BUILD_ROOT%{_sysconfdir}/mail/dynamicmaps.cf + for f in dns global master util tls; do cp -a lib/libpostfix-${f}.so $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so.1 ln -sf lib${f}.so.1 $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so @@ -325,7 +332,7 @@ touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp %{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/mail/makedefs.out %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mail/TLS_LICENSE -%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mail/{postfix-files,postfix-script,post-install} +%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mail/{postfix-script,post-install} %clean rm -rf $RPM_BUILD_ROOT @@ -393,6 +400,7 @@ fi %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/dynamicmaps.cf %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/main.cf %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/master.cf +%{_sysconfdir}/mail/postfix-files %{_sysconfdir}/mail/postfix-wrapper %{_sysconfdir}/mail/postmulti-script %attr(740,root,root) /etc/cron.daily/postfix @@ -422,6 +430,11 @@ fi %attr(755,root,root) /usr/lib/sendmail %dir %{_libdir}/postfix %attr(755,root,root) %{_libdir}/postfix/[!d]* +%attr(755,root,root) %{_libdir}/postfix/!postfix-ldap.so +%attr(755,root,root) %{_libdir}/postfix/!postfix-mysql.so +%attr(755,root,root) %{_libdir}/postfix/!postfix-pcre.so +%attr(755,root,root) %{_libdir}/postfix/!postfix-pgsql.so +%attr(755,root,root) %{_libdir}/postfix/!postfix-sqlite.so %attr(755,root,root) %{_libdir}/postfix/discard %attr(755,root,root) %{_libdir}/postfix/dnsblog %attr(755,root,root) %dir %{_var}/spool/postfix