[cyrus-sasl] add ppc64p7 subarch support in config.sub (Fedora only)

Karsten Hopp karsten at fedoraproject.org
Tue Oct 15 13:36:02 UTC 2013


commit 53ef4c8b843b55ed77770c0204644c5be6aa9055
Author: Karsten Hopp <karsten at redhat.com>
Date:   Tue Oct 15 15:35:52 2013 +0200

    add ppc64p7 subarch support in config.sub (Fedora only)

 cyrus-sasl.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/cyrus-sasl.spec b/cyrus-sasl.spec
index 882c887..7aae1ad 100644
--- a/cyrus-sasl.spec
+++ b/cyrus-sasl.spec
@@ -8,7 +8,7 @@
 Summary: The Cyrus SASL library
 Name: cyrus-sasl
 Version: 2.1.26
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: BSD with advertising
 Group: System Environment/Libraries
 # Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
@@ -223,6 +223,12 @@ if test x"$LIB_DIR" != "x-L%{_libdir}"; then
         LDFLAGS="$LIB_DIR $LDFLAGS"; export LDFLAGS
 fi
 
+# Patch config.sub to support ppc64p7 subarch (Fedora specific)
+# This is similar to what the config.sub from automake has
+for i in `find . -name config.sub`; do
+  perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i
+done
+
 CFLAGS="$RPM_OPT_FLAGS $CFLAGS $CPPFLAGS -fPIE"; export CFLAGS
 LDFLAGS="$LDFLAGS -pie -Wl,-z,now"; export LDFLAGS
 
@@ -413,6 +419,9 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir}
 %{_sbindir}/sasl2-shared-mechlist
 
 %changelog
+* Tue Oct 15 2013 Karsten Hopp <karsten at redhat.com> 2.1.26-13
+- add ppc64p7 subarch support in config.sub (Fedora only)
+
 * Mon Sep 09 2013 Petr Lautrbach <plautrba at redhat.com> 2.1.26-12
 - build with RPM_OPT_FLAGS <ville.skytta at iki.fi> (#1005535)
 


More information about the scm-commits mailing list