Browse Source

postfix-3.0.3-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9782 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 8 years ago
parent
commit
72fe989ec5
1 changed files with 17 additions and 5 deletions
  1. 17 5
      p/postfix/postfix-vl.spec

+ 17 - 5
p/postfix/postfix-vl.spec

@@ -34,7 +34,7 @@ Summary:   Postfix Mail Transport Agent
 Summary(ja):   Postfix メールトランスポートエージェント
 Name:      postfix
 Version:   %{origversion}
-Release:   1%{?_dist_release}
+Release:   2%{?_dist_release}
 URL:       http://www.postfix.org/
 License:   Distributable - IBM PUBLIC LICENSE VERSION 1.0 - SECURE MAILER
 Group:     System Environment/Daemons
@@ -195,6 +195,8 @@ src/global/mail_params.h
 
 %build
 
+unset AUXLIBS_MYSQL AUXLIBS_PGSQL
+
 CCARGS="-DMAX_DYNAMIC_MAPS \
 		-DUSE_SASL_AUTH -I/usr/include/sasl \
 		-DUSE_CYRUS_SASL \
@@ -206,21 +208,28 @@ CCARGS="-DMAX_DYNAMIC_MAPS \
 		`pkg-config --cflags sqlite3` \
 	-DUSE_TLS"
 
-AUXLIBS="-lsasl2 -lssl -lcrypto -lpcre -lldap -llber `pkg-config --libs sqlite3`"
+AUXLIBS="-lsasl2 -lssl -lcrypto"
+
+AUXLIBS_LDAP="-lldap -llber"
+AUXLIBS_PCRE="-lpcre"
+AUXLIBS_SQLITE="`pkg-config --libs sqlite3`"
 
 %if %build_mysql
-CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql -L%{_libdir}/mysql"
-AUXLIBS="${AUXLIBS} -lmysqlclient -lm"
+CCARGS="${CCARGS} -DHAS_MYSQL -I/usr/include/mysql"
+AUXLIBS_MYSQL="-L%{_libdir}/mysql -lmysqlclient -lm"
 %endif
 %if %build_pgsql
 CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/pgsql"
-AUXLIBS="${AUXLIBS} -lpq"
+AUXLIBS_PGSQL="-lpq"
 %endif
 
 make -f Makefile.init makefiles \
 	shared=yes dynamicmaps=yes \
 	CCARGS="${CCARGS}" \
 	AUXLIBS="${AUXLIBS}" \
+	AUXLIBS_LDAP="${AUXLIBS_LDAP}" AUXLIBS_PCRE="${AUXLIBS_PCRE}" \
+	AUXLIBS_MYSQL="${AUXLIBS_MYSQL}" AUXLIBS_PGSQL="${AUXLIBS_PGSQL}" \
+	AUXLIBS_SQLITE="${AUXLIBS_SQLITE}" \
 	SHLIB_RPATH="-Wl,-rpath,%{postfix_shlib_dir}" \
 	OPT="$RPM_OPT_FLAGS" DEBUG=""
 
@@ -502,6 +511,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/postfix/postfix-files.d/pcre
 
 %changelog
+* Mon Nov  2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.3-2
+- fixed dependency.
+
 * Sun Nov  1 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.3-1
 - new upstream release.
 - updated patch200.