Summary: The LAPACK libraries for numerical linear algebra
Summary(pl.UTF-8): Biblioteki numeryczne LAPACK do algebry liniowej
Name: lapack
-Version: 3.9.0
+Version: 3.11.0
Release: 1
License: BSD-like
Group: Libraries
-Source0: https://github.com/Reference-LAPACK/lapack/archive/v%{version}.tar.gz
-# Source0-md5: 0b251e2a8d5f949f99b50dd5e2200ee2
-Source1: http://www.netlib.org/lapack/manpages.tgz
-# Source1-md5: bbf94b49b43e2195de42c1d76b620de1
+#Source0Download: https://github.com/Reference-LAPACK/lapack/releases
+Source0: https://github.com/Reference-LAPACK/lapack/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 595b064fd448b161cd711fe346f498a7
+Source1: https://netlib.org/lapack/manpages.tgz
+# Source1-md5: b13491eb1bcb381918a5b86437c4b029
Patch0: blas-nan.patch
-Patch1: missing_symbols_fix.patch
-URL: http://www.netlib.org/lapack/
-BuildRequires: cmake >= 2.8.12
+URL: https://netlib.org/lapack/
+BuildRequires: cmake >= 3.2
BuildRequires: gcc-fortran
%{?with_xblas:BuildRequires: xblas-devel}
Requires: blas = %{version}-%{release}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: blas-devel = %{version}-%{release}
-Obsoletes: lapack-man
+Obsoletes: lapack-man < 3.0-3
%description devel
LAPACK development files.
Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux
Summary(pl.UTF-8): Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
Group: Libraries
-URL: http://www.netlib.org/blas/
-Obsoletes: lapack-blas
+URL: https://netlib.org/blas/
+Obsoletes: lapack-blas < 3.1
%description -n blas
BLAS (Basic Linear Algebra Subprograms) is a standard library for
Group: Development/Libraries
URL: http://www.netlib.org/blas/
Requires: blas = %{version}-%{release}
-Obsoletes: blas-man
+Obsoletes: blas-man < 3.0-3
%description -n blas-devel
BLAS development files.
%prep
%setup -q -a1
%patch0 -p1
-%patch1 -p1
# copy selected routines; use INT_ETIME versions of second
# FIXME? CMakeLists doesn't handle second
#cp -f INSTALLSRC/{second_INT_ETIME,dsecnd_INT_ETIME}.f SRC
# bogus
-%{__rm} man/man3/_Users_julie_Documents_Boulot_GIT_lapack-release_*.3
+%{__rm} man/man3/_Users_julielangou_Documents_GitHub_lapack_*.3
+%{__rm} man/man3/groups-usr.dox.3
# duplicated...
%{__rm} man/man3/{SRC_xerbla,SRC_xerbla_array}.f.3
# ...in BLAS and LAPACK sources; keep versions from BLAS
%{__rm} man/man3/{VARIANTS_*,sceil,sceil.f}.3
# documentation for examples
%{__rm} man/man3/{LDA,LDB,N,NRHS,example_*,lapacke_example_aux.*,main,print_*}.3
+# too common names
+%{__mv} man/man3/{testing,lapacktesting}.3
+%{__mv} man/man3/{level1,blaslevel1}.3
+%{__mv} man/man3/{level2,blaslevel2}.3
+%{__mv} man/man3/{level3,blaslevel3}.3
%build
%if %{with static_libs}
echo "%defattr(644,root,root,755)" > blasmans.list
echo "%defattr(644,root,root,755)" > mans.list
echo "%defattr(644,root,root,755)" > lapackemans.list
-BLAS_ADDITIONAL='aux_blas|(complex|complex16|double|single)_blas_level[123]'
-LAPACK_ADDITIONAL='OTHERauxiliary|(aux|complex|complex16|double|real|variants)(GB|GE|GT|HE|OTHER|PO|PT|SY)(auxiliary|computational|eigen|sing|solve)|(complex|complex16|double|single)_eig|variants(GE|OTHER|PO)computational'
+BLAS_ADDITIONAL='blas|blaslevel[123]|blastesting|aux_blas|(complex|complex16|double|single)_blas_(level[123]|testing)'
+LAPACK_ADDITIONAL='lapack|lapacktesting|OTHERauxiliary|(aux|auxiliary|complex|complex16|computational|double|eigen|real|sing|solve|variants)?(GB|GE|GT|HE|OTHER|PO|PT|SY)(auxiliary|computational|eigen|sing|solve)?|((aux|complex|complex16|double|real|single)_)?(eig|lin|matgen)|variants(GE|OTHER|PO)computational'
MANS_ADDITIONAL="$BLAS_ADDITIONAL|$LAPACK_ADDITIONAL"
for f in man/man3/*.3 ; do
cp -p "$f" $RPM_BUILD_ROOT%{_mandir}/man3
bn=$(basename $f)
- if echo "$bn" | grep '\.[cfh]\.3$' ; then
+ if echo "$bn" | grep '\.[Fcfh]\.3$' ; then
ffn="${bn%.3}"
elif echo "$bn" | grep -E "^($MANS_ADDITIONAL)\.3\$" ; then
ffn="${bn%.3}"
- elif grep '^\.so man3/.*\.[cfh]\.3$' "$f" ; then
- ffn=$(sed -e '1s,^\.so man3/\(.*\.[cfh]\)\.3,\1,' $f)
+ elif grep '^\.so man3/.*\.[Fcfh]\.3$' "$f" ; then
+ ffn=$(sed -e '1s,^\.so man3/\(.*\.[Fcfh]\)\.3,\1,' $f)
elif grep -E "^\.so man3/($MANS_ADDITIONAL)\.3" "$f"; then
ffn=$(sed -e '1s,^\.so man3/\([^.]*\)\.3,\1,' $f)
else
%post -n blas -p /sbin/ldconfig
%postun -n blas -p /sbin/ldconfig
+%post -n cblas -p /sbin/ldconfig
+%postun -n cblas -p /sbin/ldconfig
+
%post -n lapacke -p /sbin/ldconfig
%postun -n lapacke -p /sbin/ldconfig
%{_pkgconfigdir}/lapack.pc
%{_libdir}/cmake/lapack-%{version}
-%if %{with static_liba}
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/liblapack.a
%attr(755,root,root) %{_libdir}/libblas.so
%{_pkgconfigdir}/blas.pc
-%if %{with static_liba}
+%if %{with static_libs}
%files -n blas-static
%defattr(644,root,root,755)
%{_libdir}/libblas.a
%{_pkgconfigdir}/cblas.pc
%{_libdir}/cmake/cblas-%{version}
-%if %{with static_liba}
+%if %{with static_libs}
%files -n cblas-static
%defattr(644,root,root,755)
%{_libdir}/libcblas.a
%doc LAPACKE/{LICENSE,README}
%attr(755,root,root) %{_libdir}/liblapacke.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/liblapacke.so.3
-%attr(755,root,root) %{_libdir}/libtmglib.so
+%attr(755,root,root) %{_libdir}/libtmglib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtmglib.so.3
%files -n lapacke-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/liblapacke.so
+%attr(755,root,root) %{_libdir}/libtmglib.so
%{_includedir}/lapacke*.h
%{_pkgconfigdir}/lapacke.pc
%{_libdir}/cmake/lapacke-%{version}
-%if %{with static_liba}
+%if %{with static_libs}
%files -n lapacke-static
%defattr(644,root,root,755)
%{_libdir}/liblapacke.a