2011-04-21 10:42:39 +00:00
#
# spec file for package armadillo
#
2016-01-28 08:02:03 +00:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2011-04-21 10:42:39 +00: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2016-07-07 14:09:04 +00:00
%define soname libarmadillo7
2011-04-21 10:42:39 +00:00
Name : armadillo
2016-12-31 00:45:22 +00:00
Version : 7.600.2
2012-04-04 12:19:50 +00:00
Release : 0
2011-04-21 10:42:39 +00:00
Summary : Fast C++ matrix library with interfaces to LAPACK and ATLAS
2013-03-01 18:10:09 +00:00
License : MPL-2.0
2011-04-21 10:42:39 +00:00
Group : Development/Libraries/C and C++
2012-04-04 12:19:50 +00:00
Url : http://arma.sourceforge.net/
2016-07-07 14:09:04 +00:00
Source : http://downloads.sourceforge.net/arma/%{name} -%{version} .tar.xz
2011-09-17 18:50:35 +00:00
Source2 : baselibs.conf
2016-11-05 08:45:31 +00:00
# PATCH-FEATURE-OPENSUSE armadillo-tests.patch badshah400@gmail.com -- Generate tests/Makefile by configuring tests/Makefile.in using cmake so that the tests can be run before actually installing the library; patch sent upstream
Patch1 : armadillo-tests.patch
2014-01-08 05:50:20 +00:00
BuildRequires : arpack-ng-devel
2012-04-04 12:19:50 +00:00
BuildRequires : blas-devel
2011-04-21 10:42:39 +00:00
BuildRequires : cmake
BuildRequires : gcc-c++
2012-04-04 12:19:50 +00:00
BuildRequires : lapack-devel
2016-11-05 08:45:31 +00:00
BuildRequires : pkgconfig
2016-07-07 14:09:04 +00:00
BuildRequires : superlu-devel >= 5.2
2011-04-21 10:42:39 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
Armadillo is a C++ linear algebra library (matrix maths)
aiming towards a good balance between speed and ease of use.
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 library is useful if C++ has been decided as the language
of choice (due to speed and/or integration capabilities), rather
than another language like Matlab or Octave.
2014-01-07 09:06:24 +00:00
%package -n %{soname}
2013-03-01 18:10:09 +00:00
Summary : Fast C++ matrix library with interfaces to LAPACK and ATLAS
Group : System/Libraries
2011-04-21 10:42:39 +00:00
2014-01-07 09:06:24 +00:00
%description -n %{soname}
2011-04-21 10:42:39 +00:00
Armadillo is a C++ linear algebra library (matrix maths)
aiming towards a good balance between speed and ease of use.
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 library is useful if C++ has been decided as the language
of choice (due to speed and/or integration capabilities), rather
than another language like Matlab or Octave.
This package provides the shared libraries for armadillo.
2013-03-01 18:10:09 +00:00
%package doc
Summary : Documentation for %{name}
Group : Documentation/Other
%if 0%{?suse_version} > 1110
BuildArch : noarch
%endif
%description doc
Armadillo is a C++ linear algebra library (matrix maths)
aiming towards a good balance between speed and ease of use.
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 library is useful if C++ has been decided as the language
of choice (due to speed and/or integration capabilities), rather
than another language like Matlab or Octave.
This package provides the documentation for armadillo.
%package devel
2011-04-21 10:42:39 +00:00
Summary : Development headers and documentation for the Armadillo C++ library
Group : Development/Libraries/C and C++
2014-01-07 09:06:24 +00:00
Requires : %{soname} = %{version}
2014-01-08 05:50:20 +00:00
Requires : arpack-ng-devel
2012-04-04 12:19:50 +00:00
Requires : blas-devel
Requires : lapack-devel
2011-04-21 10:42:39 +00:00
Requires : libstdc++-devel
2015-04-16 17:51:29 +00:00
Requires : superlu-devel >= 4.3
2013-03-01 18:10:09 +00:00
Recommends: %{name} -doc
2011-04-21 10:42:39 +00:00
2013-03-01 18:10:09 +00:00
%description devel
2011-04-21 10:42:39 +00:00
Armadillo is a C++ linear algebra library (matrix maths)
aiming towards a good balance between speed and ease of use.
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 library is useful if C++ has been decided as the language
of choice (due to speed and/or integration capabilities), rather
than another language like Matlab or Octave.
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
2016-11-05 08:45:31 +00:00
%patch1 -p1
2011-04-21 10:42:39 +00:00
#Convert DOS end-of-line to UNIX end-of-line
sed -i 's/\r//' README.txt
sed -i 's/\r//' LICENSE.txt
2013-03-01 18:10:09 +00:00
# for i in `ls licenses/`; do sed -i 's/\r//' licenses/$i ; done
2011-04-21 10:42:39 +00:00
for i in `ls examples/*.cpp`; do sed -i 's/\r//' $i; done
%build
2012-06-22 21:06:30 +00:00
cmake . \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DINSTALL_LIB_DIR:PATH=%{_libdir}
2012-12-23 17:07:13 +00:00
make %{?_smp_mflags}
2011-04-21 10:42:39 +00:00
%install
2012-12-23 17:07:13 +00:00
make DESTDIR=%{buildroot} install
2011-04-21 10:42:39 +00:00
rm -f examples/Makefile.cmake
2014-01-07 09:06:24 +00:00
rm -rf examples/example1_win64.*
rm -rf examples/example2_win64.*
rm -rf examples/lib_win64
2011-04-21 10:42:39 +00:00
2016-11-05 08:45:31 +00:00
%check
pushd tests
make %{?_smp_mflags}
./main
popd
2014-01-07 09:06:24 +00:00
%post -n %{soname} -p /sbin/ldconfig
2011-04-21 10:42:39 +00:00
2014-01-07 09:06:24 +00:00
%postun -n %{soname} -p /sbin/ldconfig
2011-04-21 10:42:39 +00:00
2014-01-07 09:06:24 +00:00
%files -n %{soname}
2011-04-21 10:42:39 +00:00
%defattr (-,root,root)
%{_libdir} /*.so.*
2013-03-01 18:10:09 +00:00
%files doc
%defattr (-,root,root)
%doc armadillo_nicta_2010.pdf
2013-12-10 09:42:06 +00:00
%doc rcpp_armadillo_csda_2014.pdf
2013-03-01 18:10:09 +00:00
%doc LICENSE.txt README.txt index.html examples/ docs.html
2011-04-21 10:42:39 +00:00
%files devel
%defattr (-,root,root)
%{_libdir} /*.so
2016-11-05 08:45:31 +00:00
%{_libdir} /pkgconfig/%{name} .pc
2011-04-21 10:42:39 +00:00
%{_includedir} /armadillo
%{_includedir} /armadillo_bits/
2011-04-27 13:14:51 +00:00
%{_datadir} /Armadillo/
2011-04-21 10:42:39 +00:00
%changelog