diff --git a/xerces-c-add-ppc64le.patch b/xerces-c-add-ppc64le.patch new file mode 100644 index 0000000..8334287 --- /dev/null +++ b/xerces-c-add-ppc64le.patch @@ -0,0 +1,13 @@ +diff -Naur xerces-c-src_2_7_0.orig/src/xercesc/config.guess xerces-c-src_2_7_0/src/xercesc/config.guess +--- xerces-c-src_2_7_0.orig/src/xercesc/config.guess 2014-05-22 18:23:43.000001489 -0500 ++++ xerces-c-src_2_7_0/src/xercesc/config.guess 2014-05-22 18:27:10.210001485 -0500 +@@ -821,6 +821,9 @@ + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit 0 ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64le-unknown-linux-gnu ++ exit 0 ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; diff --git a/xerces-c27.spec b/xerces-c27.spec index 0efe09a..a1e8e0d 100644 --- a/xerces-c27.spec +++ b/xerces-c27.spec @@ -1,12 +1,13 @@ Summary: Validating XML Parser Name: xerces-c27 Version: 2.7.0 -Release: 13%{?dist} +Release: 14%{?dist} License: ASL 2.0 Group: System Environment/Libraries URL: http://xml.apache.org/xerces-c/ Source0: http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_7_0/source/xerces-c-src_2_7_0.tar.gz Patch0: xerces-c--CVE-2009-1885.diff +Patch1: xerces-c-add-ppc64le.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description @@ -58,6 +59,7 @@ for i in feedback.xml migration.xml releases_archive.xml; do { done; %patch0 -p0 -b .CVE-2009-1885 +%patch1 -p1 -b .ppc64le %build @@ -77,7 +79,7 @@ find -name runConfigure | while read f; do done cd $XERCESCROOT/src/xercesc -%ifarch alpha ppc64 s390x sparc64 x86_64 +%ifarch alpha %{power64} s390x sparc64 x86_64 CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b64 -P %{_prefix} -C --libdir="%{_libdir}" %else CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b32 -P %{_prefix} -C --libdir="%{_libdir}" @@ -128,6 +130,10 @@ mv $RPM_BUILD_ROOT%{_includedir}/xercesc $RPM_BUILD_ROOT%{_includedir}/xercesc-2 %changelog +* Thu May 22 2014 Brent Baude - 2.7.0-14 +- Changed ppc64 arch to power64 macro +- Added xerces-c-add-ppc64le.patch + * Sun Aug 04 2013 Fedora Release Engineering - 2.7.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild