Fix a bug setting the default backend

This commit is contained in:
Iñaki Úcar 2020-07-01 21:26:05 +02:00
parent eff1b7e796
commit e8d2f6aa04
1 changed files with 8 additions and 4 deletions

View File

@ -8,6 +8,7 @@
%else
%global default_backend netlib
%endif
%global default_backend64 %{default_backend}64
%global major_version 3
%global minor_version 0
@ -15,7 +16,7 @@
Name: flexiblas
Version: %{major_version}.%{minor_version}.%{patch_version}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A BLAS/LAPACK wrapper library with runtime exchangeable backends
# GPLv3 except contributed/ and test/, which are BSD
@ -133,7 +134,7 @@ threading support with a 32-integer interface.
%package netlib64
Summary: FlexiBLAS wrapper library (64-bit)
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-%{default_backend}64%{?_isa} = %{version}-%{release}
Requires: %{name}-%{default_backend64}%{?_isa} = %{version}-%{release}
%description netlib64 %_description
This package contains the wrapper library with 64-bit integer support.
@ -232,7 +233,7 @@ rm -rf contributed
echo "default = %{default_backend}" > %{buildroot}%{_sysconfdir}/%{name}rc
%if 0%{?__isa_bits} == 64
%make_install -C build64
echo "default = %{default_backend}" > %{buildroot}%{_sysconfdir}/%{name}64rc
echo "default = %{default_backend64}" > %{buildroot}%{_sysconfdir}/%{name}64rc
%endif
# remove dummy hook
@ -249,7 +250,7 @@ rename OpenBLAS openblas %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- Serial -serial %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- OpenMP -openmp %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- PThread -threads %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
find %{buildroot}%{_sysconfdir} -type f \
find %{buildroot}%{_sysconfdir}/%{name}*.d/* -type f \
-exec sed -i 's NETLIB netlib gI' {} \;\
-exec sed -i 's ATLAS atlas gI' {} \;\
-exec sed -i 's Blis blis gI' {} \;\
@ -387,6 +388,9 @@ make -C build test
%endif
%changelog
* Wed Jul 01 2020 Iñaki Úcar <iucar@fedoraproject.org> - 3.0.0-4
- Fix a bug setting the default backend
* Wed Jul 01 2020 Iñaki Úcar <iucar@fedoraproject.org> - 3.0.0-3
- Move man3 pages to devel subpackage
- Remove dummy hook (only useful for FlexiBLAS development)