Fix build on aarch64

This commit is contained in:
Peter Robinson 2014-04-30 23:52:46 +01:00
parent a39e577d69
commit b8d9a3f9a0

View File

@ -1,6 +1,6 @@
Name: xalan-c
Version: 1.11.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Xalan XSLT processor for C
Group: System Environment/Libraries
@ -43,12 +43,14 @@ Documentation for %{name}.
find -type d -name CVS -print0 | xargs -0 rm -rf
chmod 644 NOTICE
# Update config.guess for new architectures
cp /usr/lib/rpm/config.guess config.guess
%build
export XALANCROOT="${PWD}"
export XERCESROOT=%{_includedir}/xercesc/
COMMONARGS="-plinux -cgcc -xg++ -minmem"
%ifarch alpha ppc64 s390x sparc64 x86_64
%ifarch alpha ppc64 s390x sparc64 x86_64 aarch64
./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
%else
./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
@ -83,6 +85,9 @@ make install DESTDIR=%{buildroot}
%changelog
* Wed Apr 30 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.11.0-3
- Fix build on aarch64
* Thu Oct 24 2013 Lubomir Rintel <lkundrak@v3.sk> - 1.11.0-2
- Bulk sad and useless attempt at consistent SPEC file formatting