Browse Source

sendmail-8.14.4-3

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3353 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 13 years ago
parent
commit
d50ef9618c
1 changed files with 32 additions and 8 deletions
  1. 32 8
      s/sendmail/sendmail-vl.spec

+ 32 - 8
s/sendmail/sendmail-vl.spec

@@ -1,3 +1,6 @@
+# stop strip
+%define __spec_install_post /usr/lib/rpm/brp-compress || :
+
 # Build options
 %define with_ldap 0
 %define with_sasl 0
@@ -10,7 +13,7 @@ Summary: A widely used Mail Transport Agent (MTA).
 Summary(ja): 広く使用されているメール配送エージェント (MTA)。
 Name: sendmail
 Version: 8.14.4
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 URL: http://www.sendmail.org/
 License: Sendmail
 Group: System Environment/Daemons
@@ -105,17 +108,27 @@ sendmail-docパッケージはSendmailメール配送エージェント (MTA)プ
 とtroff形式で提供されています。
 
 %package devel
-Summary: Extra development include files and development files.
-Summary(ja): 特別な開発のためのインクルードファイルと開発のためのファイル。
+Summary: Extra development include files for sendmail
+Summary(ja): sendmail拡張のためのインクルードファイル
 Group: Development/Libraries
+Requires: %{name}-static == %{version}-%{release}
 
 %description devel
-Include files and devel libraries for e.g. the milter addons as part
-of sendmail.
+Include files for addons of sendmail.
 
 %description devel -l ja
-開発のためのインクルードファイルとライブラリです。例をあげればmilterは
-sendmailの一部として追加されています。
+sendmail拡張機能の開発のためのインクルードファイルです。
+
+%package static
+Summary: Extra development libraries for sendmail
+Summary(ja): sendmail拡張のためのライブラリ
+Group: Development/Libraries
+
+%description static
+Development libraries for addons of sendmail.
+
+%description static -l ja
+sendmail拡張機能の開発のためのライブラリです。
 
 %package cf
 Summary: The files needed to reconfigure Sendmail.
@@ -148,6 +161,10 @@ your sendmail.cf file.
 perl -pi -e 's|/usr/share/sendmail-cf/m4|../m4|' ./cf/cf/submit.mc
 
 %build
+%ifarch x86_64 ppc
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC"
+%endif
+
 cp %{SOURCE2} devtools/Site/site.config.m4
 
 cat >> devtools/Site/site.config.m4 << EOF
@@ -478,6 +495,9 @@ exit 0
 %files devel
 %defattr(-,root,root)
 %{_includedir}/libmilter/*.h
+
+%files static
+%defattr(-,root,root)
 %{_libdir}/libmilter.a
 %{_libdir}/libsmutil.a
 %{_libdir}/libsm.a
@@ -487,10 +507,14 @@ exit 0
 %{_docdir}/sendmail
 
 %changelog
+* Fri Apr 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.14.4-3
+- added '-fPIC' option on x86_64 and ppc.
+- added subpackage 'sendmail-static'.
+
 * Mon Jan 10 2011 IWAI, Masaharu <iwai@alib.jp> 8.14.4-2vl6
 - rebuild with openssl 1.0.0c on VineSeed
 - add BuildRequires: groff for manpages
-- add BuildRequires: m4 for generate cd files
+- add BuildRequires: m4 for generate cf files
 - add Packager: iwaim
 
 * Tue Nov 16 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.14.4-1