|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
%global commit b0f7a6008f37f913e97f67c826fc37fa9758f626
|
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
%global build64 0
|
|
|
|
|
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 7
|
|
|
|
|
%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64}
|
|
|
|
@ -15,13 +13,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: arpack
|
|
|
|
|
Version: 3.5.0
|
|
|
|
|
Release: 6%{dist}
|
|
|
|
|
Version: 3.6.1
|
|
|
|
|
Release: 1%{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/%{commit}/arpack-ng-%{commit}.tar.gz
|
|
|
|
|
Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/arpack-ng-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
@ -103,7 +100,8 @@ cp -pr src src64
|
|
|
|
|
pushd src
|
|
|
|
|
%configure --enable-shared --enable-static \
|
|
|
|
|
--with-blas="%{blaslib}" \
|
|
|
|
|
--with-lapack="%{blaslib}"
|
|
|
|
|
--with-lapack="%{blaslib}" \
|
|
|
|
|
--enable-icb
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
%if %{build64}
|
|
|
|
@ -113,7 +111,8 @@ pushd src64
|
|
|
|
|
SYMBOLSUFFIX=_64 \
|
|
|
|
|
INTERFACE64=1 \
|
|
|
|
|
--with-blas=%{blaslib}64_ \
|
|
|
|
|
--with-lapack=%{blaslib}64_
|
|
|
|
|
--with-lapack=%{blaslib}64_ \
|
|
|
|
|
--enable-icb
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
@ -129,7 +128,11 @@ 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)
|
|
|
|
|
rm -f %{buildroot}%{_includedir}/debug_c.{h,hpp}
|
|
|
|
|
rm -f %{buildroot}%{_includedir}/stat.h
|
|
|
|
|
rm -f %{buildroot}%{_includedir}/stat_c.{h,hpp}
|
|
|
|
|
rm -f %{buildroot}%{_includedir}/debug-arpack.h
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd src
|
|
|
|
@ -143,20 +146,17 @@ pushd EXAMPLES ; make clean ; popd
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc src/CHANGES src/README
|
|
|
|
|
%doc src/CHANGES src/README.md
|
|
|
|
|
%license src/COPYING
|
|
|
|
|
%{_libdir}/libarpack.so.*
|
|
|
|
|
%if %{build64}
|
|
|
|
|
%{_libdir}/libarpack64_.so.*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/pkgconfig/arpack.pc
|
|
|
|
|
%{_libdir}/libarpack.so
|
|
|
|
@ -164,11 +164,12 @@ popd
|
|
|
|
|
%{_libdir}/pkgconfig/arpack64_.pc
|
|
|
|
|
%{_libdir}/libarpack64_.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_includedir}/arpack.h
|
|
|
|
|
%{_includedir}/arpack.hpp
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc src/EXAMPLES/ src/DOCUMENTS/
|
|
|
|
|
%doc src/CHANGES src/README
|
|
|
|
|
%doc src/CHANGES src/README.md
|
|
|
|
|
%license src/COPYING
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -180,6 +181,9 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jun 23 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.6.1-1
|
|
|
|
|
- Update to 3.6.1, adding C and C++ bindings.
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|