diff --git a/postfix.spec b/postfix.spec index cc71931..b7b7c3b 100644 --- a/postfix.spec +++ b/postfix.spec @@ -23,7 +23,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.3.1 -Release: 16 +Release: 17 Epoch: 2 URL: http://www.postfix.org License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -47,7 +47,7 @@ Patch8: fix-build-error-with_glibc2.30-ftbfs.patch Patch9: fix-multiple-definition-error-with-gcc-10.patch Patch10: postfix-3.6.2-glibc-234-build-fix.patch -BuildRequires: perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel +BuildRequires: lmdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel BuildRequires: cyrus-sasl-devel pcre-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng BuildRequires: chrpath Requires(post): systemd-sysv %{_sbindir}/alternatives %{_bindir}/openssl @@ -129,11 +129,13 @@ for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do done %build -unset AUXLIBS AUXLIBS_LDAP AUXLIBS_PCRE AUXLIBS_MYSQL AUXLIBS_PGSQL AUXLIBS_SQLITE AUXLIBS_CDB +unset AUXLIBS AUXLIBS_LDAP AUXLIBS_LMDB AUXLIBS_PCRE AUXLIBS_MYSQL AUXLIBS_PGSQL AUXLIBS_SQLITE AUXLIBS_CDB CCARGS="-fPIC" AUXLIBS="-lnsl" CCARGS="${CCARGS} -DHAS_LDAP -DLDAP_DEPRECATED=1 %{?with_sasl:-DUSE_LDAP_SASL}" AUXLIBS_LDAP="-lldap -llber" +CCARGS="${CCARGS} -DHAS_LMDB" +AUXLIBS_LMDB="-llmdb" CCARGS="${CCARGS} -DHAS_PCRE -I%{_includedir}/pcre" AUXLIBS_PCRE="-lpcre" CCARGS="${CCARGS} -DHAS_MYSQL -I%{_includedir}/mysql" @@ -161,7 +163,7 @@ LDFLAGS="%{?__global_ldflags} %{?_hardened_build:-Wl,-z,relro,-z,now}" make -f Makefile.init makefiles shared=yes dynamicmaps=yes \ %{?_hardened_build:pie=yes} CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" \ - AUXLIBS_LDAP="${AUXLIBS_LDAP}" AUXLIBS_PCRE="${AUXLIBS_PCRE}" \ + AUXLIBS_LDAP="${AUXLIBS_LDAP}" AUXLIBS_LMDB="${AUXLIBS_LMDB}" AUXLIBS_PCRE="${AUXLIBS_PCRE}" \ AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \ AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" AUXLIBS_CDB="${AUXLIBS_CDB}"\ DEBUG="" SHLIB_RPATH="-Wl,-rpath,%{postfix_shlib_dir} $LDFLAGS" \ @@ -320,7 +322,7 @@ function split_file } pushd %{buildroot}%{postfix_config_dir} -for map in mysql pgsql sqlite ldap pcre; do +for map in mysql pgsql sqlite ldap lmdb pcre; do rm -f dynamicmaps.cf.d/"$map" "postfix-files.d/$map" split_file "^\s*$map\b" "$map" dynamicmaps.cf sed -i "s|postfix-$map\\.so|%{postfix_shlib_dir}/\\0|" "dynamicmaps.cf.d/$map" @@ -498,6 +500,9 @@ fi %{_bindir}/rmail.postfix %{_sbindir}/sendmail.postfix /usr/lib/sendmail.postfix +%attr(0644, root, root) %{postfix_config_dir}/dynamicmaps.cf.d/lmdb +%attr(0644, root, root) %{postfix_config_dir}/postfix-files.d/lmdb +%attr(0755, root, root) %{postfix_shlib_dir}/postfix-lmdb.so %ghost %{_sysconfdir}/pam.d/smtp %ghost %attr(0755, root, root) %{_bindir}/mailq %ghost %attr(0755, root, root) %{_bindir}/newaliases @@ -547,6 +552,12 @@ fi %{postfix_doc_dir}/README_FILES/* %changelog +* Tue Mar 01 2022 zhouyihang - 2:3.3.1-17 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add build require of lmdb + * Wed Feb 23 2022 xihaochen - 2:3.3.1-16 - Type:bugfix - ID:NA