2011-04-21 12:42:39 +02:00
|
|
|
#
|
|
|
|
# spec file for package armadillo
|
|
|
|
#
|
2023-01-11 06:11:32 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-04-21 12:42:39 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-20 22:19:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-21 12:42:39 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-03-15 09:20:11 +01:00
|
|
|
%define soname libarmadillo12
|
2011-04-21 12:42:39 +02:00
|
|
|
Name: armadillo
|
2023-10-16 15:28:40 +02:00
|
|
|
Version: 12.6.5
|
2012-04-04 14:19:50 +02:00
|
|
|
Release: 0
|
2017-09-07 20:26:27 +02:00
|
|
|
Summary: C++ matrix library with interfaces to LAPACK and ATLAS
|
2017-02-19 12:38:18 +01:00
|
|
|
License: Apache-2.0
|
2011-04-21 12:42:39 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-02-20 11:15:02 +01:00
|
|
|
URL: https://arma.sourceforge.net/
|
|
|
|
Source: https://sourceforge.net/projects/arma/files/%{name}-%{version}.tar.xz
|
2011-09-17 20:50:35 +02:00
|
|
|
Source2: baselibs.conf
|
2014-01-08 06:50:20 +01:00
|
|
|
BuildRequires: arpack-ng-devel
|
2012-04-04 14:19:50 +02:00
|
|
|
BuildRequires: blas-devel
|
2011-04-21 12:42:39 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2012-04-04 14:19:50 +02:00
|
|
|
BuildRequires: lapack-devel
|
2016-11-05 09:45:31 +01:00
|
|
|
BuildRequires: pkgconfig
|
2016-07-07 16:09:04 +02:00
|
|
|
BuildRequires: superlu-devel >= 5.2
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%description
|
2017-09-07 20:26:27 +02:00
|
|
|
Armadillo is a C++ linear algebra library (matrix maths).
|
2011-04-21 12:42:39 +02:00
|
|
|
Integer, floating point and complex numbers are supported,
|
|
|
|
as well as a subset of trigonometric and statistics functions.
|
|
|
|
|
2014-01-07 10:06:24 +01:00
|
|
|
%package -n %{soname}
|
2017-09-07 20:26:27 +02:00
|
|
|
Summary: C++ matrix library with interfaces to LAPACK and ATLAS
|
2013-03-01 19:10:09 +01:00
|
|
|
Group: System/Libraries
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2014-01-07 10:06:24 +01:00
|
|
|
%description -n %{soname}
|
2017-09-07 20:26:27 +02:00
|
|
|
Armadillo is a C++ linear algebra library (matrix maths).
|
2011-04-21 12:42:39 +02:00
|
|
|
Integer, floating point and complex numbers are supported,
|
|
|
|
as well as a subset of trigonometric and statistics functions.
|
|
|
|
Various matrix decompositions are provided through optional
|
|
|
|
integration with LAPACK and ATLAS libraries.
|
|
|
|
A delayed evaluation approach is employed (during compile time)
|
|
|
|
to combine several operations into one and reduce (or eliminate)
|
|
|
|
the need for temporaries. This is accomplished through recursive
|
|
|
|
templates and template meta-programming.
|
|
|
|
|
|
|
|
This package provides the shared libraries for armadillo.
|
|
|
|
|
2013-03-01 19:10:09 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2017-09-07 20:26:27 +02:00
|
|
|
Armadillo is a C++ linear algebra library (matrix maths).
|
2013-03-01 19:10:09 +01:00
|
|
|
Integer, floating point and complex numbers are supported,
|
|
|
|
as well as a subset of trigonometric and statistics functions.
|
|
|
|
|
|
|
|
This package provides the documentation for armadillo.
|
|
|
|
|
|
|
|
%package devel
|
2011-04-21 12:42:39 +02:00
|
|
|
Summary: Development headers and documentation for the Armadillo C++ library
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-07 10:06:24 +01:00
|
|
|
Requires: %{soname} = %{version}
|
2014-01-08 06:50:20 +01:00
|
|
|
Requires: arpack-ng-devel
|
2012-04-04 14:19:50 +02:00
|
|
|
Requires: blas-devel
|
|
|
|
Requires: lapack-devel
|
2011-04-21 12:42:39 +02:00
|
|
|
Requires: libstdc++-devel
|
2015-04-16 19:51:29 +02:00
|
|
|
Requires: superlu-devel >= 4.3
|
2013-03-01 19:10:09 +01:00
|
|
|
Recommends: %{name}-doc
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2013-03-01 19:10:09 +01:00
|
|
|
%description devel
|
2017-09-07 20:26:27 +02:00
|
|
|
Armadillo is a C++ linear algebra library (matrix maths).
|
2011-04-21 12:42:39 +02:00
|
|
|
Integer, floating point and complex numbers are supported,
|
|
|
|
as well as a subset of trigonometric and statistics functions.
|
|
|
|
|
|
|
|
This package contains files necessary for development using the
|
|
|
|
Armadillo C++ library. It contains header files, example programs,
|
|
|
|
and user documentation (reference guide).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#Convert DOS end-of-line to UNIX end-of-line
|
2018-08-16 14:20:28 +02:00
|
|
|
sed -i 's/\r$//' README.md
|
2020-10-15 23:43:23 +02:00
|
|
|
sed -i 's/\r$//' examples/README.txt
|
2018-08-16 14:20:28 +02:00
|
|
|
sed -i 's/\r$//' LICENSE.txt
|
|
|
|
sed -i 's/\r$//' NOTICE.txt
|
|
|
|
for i in `ls examples/*.cpp`; do sed -i 's/\r$//' $i; done
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%build
|
2020-11-18 09:13:53 +01:00
|
|
|
%cmake -DBUILD_SMOKE_TEST:BOOL=ON
|
2020-06-23 14:01:31 +02:00
|
|
|
%cmake_build
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%install
|
2020-06-23 14:01:31 +02:00
|
|
|
%cmake_install
|
2011-04-21 12:42:39 +02:00
|
|
|
rm -f examples/Makefile.cmake
|
2014-01-07 10:06:24 +01:00
|
|
|
rm -rf examples/example1_win64.*
|
|
|
|
rm -rf examples/example2_win64.*
|
|
|
|
rm -rf examples/lib_win64
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2020-11-18 09:13:53 +01:00
|
|
|
%check
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
%ctest
|
|
|
|
|
2014-01-07 10:06:24 +01:00
|
|
|
%post -n %{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname} -p /sbin/ldconfig
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2014-01-07 10:06:24 +01:00
|
|
|
%files -n %{soname}
|
2011-04-21 12:42:39 +02:00
|
|
|
%{_libdir}/*.so.*
|
2013-03-01 19:10:09 +01:00
|
|
|
|
|
|
|
%files doc
|
2023-02-18 17:33:46 +01:00
|
|
|
%doc armadillo_*.pdf
|
2018-08-16 14:20:28 +02:00
|
|
|
%doc NOTICE.txt README.md index.html examples/ docs.html
|
|
|
|
%license LICENSE.txt
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
2016-11-05 09:45:31 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2011-04-21 12:42:39 +02:00
|
|
|
%{_includedir}/armadillo
|
|
|
|
%{_includedir}/armadillo_bits/
|
2011-04-27 15:14:51 +02:00
|
|
|
%{_datadir}/Armadillo/
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%changelog
|