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