diff --git a/polymake.spec b/polymake.spec index 8a9dc96..4d371f7 100644 --- a/polymake.spec +++ b/polymake.spec @@ -16,15 +16,9 @@ # itextpdf 5.3.2, whose license is problematic. %bcond_with jreality -%ifarch %{arm} -# The ARM builders almost always run out of memory while building polymake. -# Reduce the optimization level in an effort to avoid this. -%global __global_cflags %(sed 's/-O2/-O1/' <<< '%__global_cflags') -%endif - Name: polymake Version: 3.0r2 -Release: 3%{?dist} +Release: 4%{?dist} %global polydir %{_libdir}/%{name} %global majver %(cut -dr -f1 <<< %{version}) @@ -213,6 +207,13 @@ fixtimestamp bundled/group/apps/polytope/src/sympol_interface.cc sed -e '/^\$LDsharedFlags=/a$LDsharedFlags =~ s/ -specs=\\S+//g;' \ -i support/configure.pl +%ifarch %{arm} +# The ARM builders almost always run out of memory while building polymake. +# Reduce the optimization level for certain files in an effort to avoid this. +sed -i '/Local Variables/irel_int_point$O : ExtraCXXFLAGS += -O1\n' \ + apps/polytope/src/Makefile.inc +%endif + %build export LC_ALL=C.UTF-8 export CFLAGS="%{optflags} -I%{_includedir}/eigen3 -Wno-unused-local-typedefs -fno-delete-null-pointer-checks" @@ -310,6 +311,9 @@ done %doc doc/* %changelog +* Mon Jan 16 2017 Jerry James - 3.0r2-4 +- Rebuild for perl 5.24.1 + * Wed Jan 11 2017 Jerry James - 3.0r2-3 - Add -magic, -ppl, and -endian patches to fix build problems - Add the option to build with a bundled version of jreality