add upstream patch to support flexiblas

enable tests
epel9
José Matos 4 years ago
parent 9d79444a3f
commit 24841be919

@ -1,6 +1,6 @@
Name: armadillo
Version: 9.900.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Fast C++ matrix library with syntax similar to MATLAB and Octave
License: ASL 2.0
@ -11,6 +11,14 @@ Source: http://sourceforge.net/projects/arma/files/%{name}-%{version}.ta
%undefine __cmake_in_source_build
%endif
%if 0%{?fedora} > 32
%global extra_options -DALLOW_FLEXIBLAS_LINUX=ON
BuildRequires: flexiblas-devel
Patch0: armadillo-flexiblas.patch
%else
%global extra_options
%endif
BuildRequires: gcc-c++
BuildRequires: cmake, lapack-devel, arpack-devel
BuildRequires: hdf5-devel
@ -55,13 +63,13 @@ and user documentation (API reference guide).
%prep
%setup -q
%autosetup
sed -i 's/\r//' README.md
rm -rf examples/*win64*
%build
%cmake
%cmake %{extra_options}
%cmake_build
@ -69,6 +77,12 @@ rm -rf examples/*win64*
%cmake_install
%check
%cmake %{extra_options} -DBUILD_SMOKE_TEST=ON
make
%ctest
%if (0%{?rhel} && 0%{?rhel} <= 7)
%post -p /sbin/ldconfig
@ -94,6 +108,10 @@ rm -rf examples/*win64*
%changelog
* Wed Aug 5 2020 José Matos <jamatos@fedoraproject.org> - 9.900.2-5
- add upstream patch to support flexiblas
- enable tests
* Wed Aug 5 2020 José Matos <jamatos@fedoraproject.org> - 9.900.2-4
- clean the spec file and remove support for epel 6

Loading…
Cancel
Save