diff --git a/zlib.spec b/zlib.spec index 59a38ae..63071a6 100644 --- a/zlib.spec +++ b/zlib.spec @@ -1,7 +1,7 @@ Summary: The compression and decompression library Name: zlib Version: 1.2.8 -Release: 3%{?dist} +Release: 4%{?dist} # /contrib/dotzlib/ have Boost license License: zlib and Boost Group: System Environment/Libraries @@ -74,7 +74,15 @@ iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp mv ChangeLog.tmp ChangeLog %build +%if 0%{?rhel} >= 7 + %ifarch ppc64 + export CFLAGS="$RPM_OPT_FLAGS -O3" + %else + export CFLAGS="$RPM_OPT_FLAGS" + %endif +%else export CFLAGS="$RPM_OPT_FLAGS" +%endif export LDFLAGS="$LDFLAGS -Wl,-z,relro" ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} make %{?_smp_mflags} @@ -130,6 +138,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_libdir}/pkgconfig/minizip.pc %changelog +* Wed Feb 12 2014 jchaloup - 1.2.8-4 +- resolves: #1064213 + recompiled with -O3 flag for ppc64 arch + * Sat Aug 10 2013 Kalev Lember - 1.2.8-3 - resolves: #985344 add a patch to fix missing minizip include