SPECS: sendmail.spec - enable sparc32 build on 64bit kernel

tommat tommat at pld-linux.org
Sat Jul 21 11:43:16 CEST 2007


Author: tommat                       Date: Sat Jul 21 09:43:16 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- enable sparc32 build on 64bit kernel

---- Files affected:
SPECS:
   sendmail.spec (1.200 -> 1.201) 

---- Diffs:

================================================================
Index: SPECS/sendmail.spec
diff -u SPECS/sendmail.spec:1.200 SPECS/sendmail.spec:1.201
--- SPECS/sendmail.spec:1.200	Fri Jul 13 22:37:34 2007
+++ SPECS/sendmail.spec	Sat Jul 21 11:43:11 2007
@@ -62,6 +62,9 @@
 %{?with_pgsql:BuildRequires:	postgresql-devel}
 BuildRequires:	rpmbuild(macros) >= 1.310
 BuildRequires:	sed >= 4.0
+%ifarch sparc
+BuildRequires:	sparc32
+%endif
 Requires(post):	awk
 Requires(post):	textutils
 Requires(post,preun):	/sbin/chkconfig
@@ -234,13 +237,19 @@
 
 echo "APPENDDEF(\`confENVDEF', \`-DMILTER')" >> config.m4
 
-cd sendmail	&& sh Build -f ../config.m4
-cd ../mailstats	&& sh Build -f ../config.m4
-cd ../rmail	&& sh Build -f ../config.m4
-cd ../makemap	&& sh Build -f ../config.m4
-cd ../praliases	&& sh Build -f ../config.m4
-cd ../smrsh	&& sh Build -f ../config.m4
-cd ../libmilter	&& sh Build -f ../config.m4
+%ifarch sparc
+%define		Build		sparc32 sh Build
+%else
+%define		Build		sh Build
+%endif
+
+cd sendmail	&& %{Build} -f ../config.m4
+cd ../mailstats	&& %{Build} -f ../config.m4
+cd ../rmail	&& %{Build} -f ../config.m4
+cd ../makemap	&& %{Build} -f ../config.m4
+cd ../praliases	&& %{Build} -f ../config.m4
+cd ../smrsh	&& %{Build} -f ../config.m4
+cd ../libmilter	&& %{Build} -f ../config.m4
 cd ../cf/cf
 m4 pld.mc > pld.cf
 
@@ -492,6 +501,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.201  2007/07/21 09:43:11  tommat
+- enable sparc32 build on 64bit kernel
+
 Revision 1.200  2007/07/13 20:37:34  arekm
 - don't provide /usr/lib/sendmail. It's already provides; see rpm -q --fileprovide.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sendmail.spec?r1=1.200&r2=1.201&f=u



More information about the pld-cvs-commit mailing list