|
|
@ -1,19 +1,7 @@
|
|
|
|
%global build64 0
|
|
|
|
%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
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
%global build64 1
|
|
|
|
%global build64 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
|
|
|
|
%bcond_without flexiblas
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We are linking FORTRAN symbols. Thus we cannot link --as-needed.
|
|
|
|
# We are linking FORTRAN symbols. Thus we cannot link --as-needed.
|
|
|
|
%undefine _ld_as_needed
|
|
|
|
%undefine _ld_as_needed
|
|
|
@ -31,15 +19,7 @@ Patch0: arpack-install-arpackicb_h.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
%if %{with flexiblas}
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(flexiblas)
|
|
|
|
BuildRequires: pkgconfig(flexiblas)
|
|
|
|
%else
|
|
|
|
|
|
|
|
%if %{with atlas}
|
|
|
|
|
|
|
|
BuildRequires: atlas-devel
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: openblas-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: libtool >= 2.4.2
|
|
|
|
BuildRequires: libtool >= 2.4.2
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
Provides: arpack-ng = %{version}-%{release}
|
|
|
|
Provides: arpack-ng = %{version}-%{release}
|
|
|
@ -103,19 +83,7 @@ cp -pr src src64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if %{with flexiblas}
|
|
|
|
|
|
|
|
%global blaslib -lflexiblas
|
|
|
|
%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
|
|
|
|
pushd src
|
|
|
|
%configure --enable-shared --enable-static \
|
|
|
|
%configure --enable-shared --enable-static \
|
|
|
|
--with-blas="%{blaslib}" \
|
|
|
|
--with-blas="%{blaslib}" \
|
|
|
@ -197,6 +165,7 @@ popd
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Sep 02 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.8.0-2
|
|
|
|
* Thu Sep 02 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.8.0-2
|
|
|
|
- ensure arpackicb.h is installed (#1990366)
|
|
|
|
- ensure arpackicb.h is installed (#1990366)
|
|
|
|
|
|
|
|
- spec clean-up: drop support for building with other blas libs on F34+
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 02 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.8.0-1
|
|
|
|
* Wed Jun 02 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.8.0-1
|
|
|
|
- update to 3.8.0 (#1905263)
|
|
|
|
- update to 3.8.0 (#1905263)
|
|
|
|