diff --git a/hdf.spec b/hdf.spec index 7f9133d..da34d55 100644 --- a/hdf.spec +++ b/hdf.spec @@ -4,7 +4,7 @@ Name: hdf Version: 4.2.14 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD URL: https://portal.hdfgroup.org/ @@ -135,8 +135,10 @@ touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h # For destdir/examplesdir patches autoreconf -vif + # avoid upstream compiler flags settings rm config/*linux-gnu + # TODO: upstream fix # libmfhdf.so is link to libdf.so export CFLAGS="%{optflags} -I%{_includedir}/tirpc" @@ -154,6 +156,11 @@ cd - mkdir build-static cd build-static # Java requires shared libraries, fortran requires static + +# Temporary workaround for compiling on GCC-10 +%if 0%{?fedora} && 0%{?fedora} > 31 +export FCFLAGS="%{build_fflags} -fallow-argument-mismatch" +%endif %configure --disable-production --disable-java --disable-netcdf \ --enable-shared=no --enable-static=yes --enable-fortran %{!?el6:--with-szlib} \ --includedir=%{_includedir}/%{name} @@ -252,6 +259,9 @@ make -j1 -C build-static check %changelog +* Sun Feb 02 2020 Antonio Trande 4.2.14-8 +- Temporary workaround for compiling with GCC-10 + * Wed Jan 29 2020 Fedora Release Engineering - 4.2.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild