spec: build with -O3 on ppc64

Resolves: #1051078
Version: 5.1.2-7alpha
This commit is contained in:
Pavel Raiskup 2014-01-10 14:41:08 +01:00
parent 70817f0618
commit e7de512134
1 changed files with 10 additions and 3 deletions

13
xz.spec
View File

@ -3,7 +3,7 @@
Summary: LZMA compression utilities
Name: xz
Version: 5.1.2
Release: 6alpha%{?dist}
Release: 7alpha%{?dist}
License: LGPLv2+
Group: Applications/File
# official upstream release
@ -84,8 +84,12 @@ for i in `find . -name config.sub`; do
done
%build
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
%ifarch %{power64}
CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|^-O2$|-O3|g' | xargs -n 100`
%endif
export CFLAGS
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -151,6 +155,9 @@ rm -rf %{buildroot}
%{_mandir}/man1/*lz*
%changelog
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-7alpha
- build with -O3 on ppc64 (private #1051078)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-6alpha
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild