diff --git a/xz.spec b/xz.spec index 9a8c844..bf2ac6e 100644 --- a/xz.spec +++ b/xz.spec @@ -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 - 5.1.2-7alpha +- build with -O3 on ppc64 (private #1051078) + * Sun Aug 04 2013 Fedora Release Engineering - 5.1.2-6alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild