]> git.pld-linux.org Git - packages/parallel-netcdf.git/commitdiff
- use -fallow-argument-mismatch for gfortran 10+ auto/th/parallel-netcdf-1.12.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Nov 2020 20:38:48 +0000 (21:38 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Nov 2020 20:38:48 +0000 (21:38 +0100)
parallel-netcdf.spec

index c462a15003bd3d4e9aeb6eb86543030e24616f28..e4ca32f083e267e68e4653838fc776629826ef7b 100644 (file)
@@ -22,6 +22,7 @@ BuildRequires:        libstdc++-devel
 BuildRequires: libtool >= 2:2.4.2
 # mpicc and co.
 BuildRequires: mpich-devel
+BuildRequires: mpich-fortran-devel
 BuildRequires: m4
 BuildRequires: rpmbuild(macros) >= 1.752
 %if %{with apidocs}
@@ -54,7 +55,7 @@ Summary:      Header files for PnetCDF library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki PnetCDF
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      mpich-devel
+Requires:      mpich-fortran-devel
 
 %description devel
 Header files for PnetCDF library.
@@ -96,6 +97,11 @@ Dokumentacja API biblioteki PnetCDF.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+%define        gfortran_version        %(gfortran -dumpversion)
+%if "%{_ver_ge '%{gfortran_version}' '10.0'}" == "1"
+FFLAGS="%{rpmcflags} -fallow-argument-mismatch"
+FCFLAGS="%{rpmcflags} -fallow-argument-mismatch"
+%endif
 %configure \
        %{?with_apidocs:--enable-doxygen} \
        --disable-silent-rules \
This page took 0.064394 seconds and 4 git commands to generate.