diff --git a/arpack-install-arpackicb_h.patch b/arpack-install-arpackicb_h.patch new file mode 100644 index 0000000..ef2757b --- /dev/null +++ b/arpack-install-arpackicb_h.patch @@ -0,0 +1,12 @@ +diff -up src/Makefile.am.icb src/Makefile.am +--- src/Makefile.am.icb 2020-12-07 11:40:45.000000000 +0100 ++++ src/Makefile.am 2021-09-02 23:55:29.346733967 +0200 +@@ -1,7 +1,7 @@ + ACLOCAL_AMFLAGS = -I m4 + + pkgincludedir = $(includedir)/arpack +-pkginclude_HEADERS = debug.h stat.h arpackdef.h ++pkginclude_HEADERS = debug.h stat.h arpackdef.h arpackicb.h + + AM_DISTCHECK_CONFIGURE_FLAGS = + if MPI diff --git a/arpack.spec b/arpack.spec index e9566d6..8200b85 100644 --- a/arpack.spec +++ b/arpack.spec @@ -1,45 +1,27 @@ %global build64 0 -%if 0%{?fedora} >= 26 || 0%{?rhel} >= 7 -%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64} -%ifnarch %{openblas_arches} -# matches openblas ExclusiveArch -%bcond_without atlas -%else %if 0%{?__isa_bits} == 64 %global build64 1 %endif -%endif -%endif - -%if 0%{?fedora} >= 33 -%bcond_without flexiblas -%endif # We are linking FORTRAN symbols. Thus we cannot link --as-needed. %undefine _ld_as_needed Name: arpack Version: 3.8.0 -Release: 2%{dist} +Release: 3%{dist} Summary: Fortran 77 subroutines for solving large scale eigenvalue problems License: BSD URL: https://github.com/opencollab/arpack-ng Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/arpack-ng-%{version}.tar.gz +# https://bugzilla.redhat.com/show_bug.cgi?id=1990366 +Patch0: arpack-install-arpackicb_h.patch BuildRequires: gcc-c++ BuildRequires: gcc-gfortran -%if %{with flexiblas} -BuildRequires: pkgconfig(flexiblas) -%else -%if %{with atlas} -BuildRequires: atlas-devel -%else -BuildRequires: openblas-devel -%endif -%endif +BuildRequires: pkgconfig(flexiblas) BuildRequires: libtool >= 2.4.2 -BuildRequires: make +BuildRequires: make Provides: arpack-ng = %{version}-%{release} Provides: arpack-ng%{?_isa} = %{version}-%{release} @@ -92,6 +74,7 @@ library and so links used for building arpack based applications. %setup -qc mv arpack-ng-%{version} src pushd src +%patch0 -p1 autoreconf -vif popd %if %{build64} @@ -100,23 +83,10 @@ cp -pr src src64 %build -%if %{with flexiblas} -%global blaslib -lflexiblas -%else -%if %{with atlas} -%if 0%{?fedora} || 0%{?rhel} >= 7 -%global blaslib -L%{_libdir}/atlas -ltatlas -%else -%global blaslib -L%{_libdir}/atlas -lf77blas -latlas -%endif -%else -%global blaslib -lopenblasp -%endif -%endif pushd src %configure --enable-shared --enable-static \ - --with-blas="%{blaslib}" \ - --with-lapack="%{blaslib}" \ + --with-blas=-lflexiblas \ + --with-lapack=-lflexiblas \ --enable-icb %make_build popd @@ -125,8 +95,8 @@ pushd src64 %configure --enable-shared --enable-static \ LIBSUFFIX=64 \ INTERFACE64=1 \ - --with-blas=%{blaslib}64 \ - --with-lapack=%{blaslib}64 \ + --with-blas=-lflexiblas64 \ + --with-lapack=-lflexiblas64 \ --enable-icb %make_build popd @@ -143,7 +113,6 @@ popd %endif # Get rid of .la files rm -r %{buildroot}%{_libdir}/*.la -# Get rid of generic file names (https://github.com/opencollab/arpack-ng/issues/130) %check pushd src @@ -157,8 +126,6 @@ pushd EXAMPLES ; make clean ; popd popd %endif -%ldconfig_scriptlets - %files %doc src/CHANGES src/README.md %license src/COPYING @@ -192,6 +159,11 @@ popd %changelog +* Thu Sep 02 2021 Dominik Mierzejewski - 3.8.0-3 +- ensure arpackicb.h is installed (#1990366) +- spec clean-up: drop support for building with other blas libs on F34+ +- drop obsolete ldconfig scriptlet macro + * Wed Jul 21 2021 Fedora Release Engineering - 3.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild