2011-04-21 12:42:39 +02:00
|
|
|
#
|
|
|
|
# spec file for package armadillo
|
|
|
|
#
|
2011-04-27 15:15:07 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-04-27 15:15:07 +02:00
|
|
|
|
2011-04-21 12:42:39 +02:00
|
|
|
Name: armadillo
|
2011-08-27 12:59:33 +02:00
|
|
|
Version: 2.2.3
|
2011-04-21 12:42:39 +02:00
|
|
|
Release: 1
|
|
|
|
License: LGPLv3+
|
|
|
|
Summary: Fast C++ matrix library with interfaces to LAPACK and ATLAS
|
|
|
|
Url: http://arma.sourceforge.net/
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-09-17 20:50:35 +02:00
|
|
|
Source2: baselibs.conf
|
2011-04-21 12:42:39 +02:00
|
|
|
BuildRequires: blas
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: lapack
|
|
|
|
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.
|
|
|
|
|
2011-07-18 09:17:50 +02:00
|
|
|
%package -n libarmadillo2
|
2011-04-27 15:15:07 +02:00
|
|
|
License: LGPLv3+
|
2011-04-21 12:42:39 +02:00
|
|
|
Summary: Shared libraries for armadillo
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-03 09:22:28 +02:00
|
|
|
Provides: libarmadillo1 = %{version}
|
|
|
|
Obsoletes: libarmadillo1 < %{version}
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2011-07-18 09:17:50 +02:00
|
|
|
%description -n libarmadillo2
|
2011-04-21 12:42:39 +02: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.
|
|
|
|
|
|
|
|
%package devel
|
2011-04-27 15:15:07 +02:00
|
|
|
License: LGPLv3+
|
2011-04-21 12:42:39 +02:00
|
|
|
Summary: Development headers and documentation for the Armadillo C++ library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: blas
|
|
|
|
Requires: boost-devel
|
|
|
|
Requires: lapack
|
2011-07-18 09:17:50 +02:00
|
|
|
Requires: libarmadillo2 = %{version}
|
2011-04-21 12:42:39 +02:00
|
|
|
Requires: libstdc++-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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
|
|
|
|
#Convert DOS end-of-line to UNIX end-of-line
|
|
|
|
sed -i 's/\r//' README.txt
|
|
|
|
sed -i 's/\r//' LICENSE.txt
|
|
|
|
for i in `ls licenses/`; do sed -i 's/\r//' licenses/$i ; done
|
|
|
|
for i in `ls examples/*.cpp`; do sed -i 's/\r//' $i; done
|
|
|
|
|
|
|
|
%build
|
|
|
|
cmake .
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
|
|
rm -f examples/Makefile.cmake
|
|
|
|
rm -rf examples/example1_win32
|
|
|
|
rm -rf examples/example2_win32
|
|
|
|
rm -rf examples/lib_win32
|
|
|
|
|
2011-07-18 09:17:50 +02:00
|
|
|
%post -n libarmadillo2 -p /sbin/ldconfig
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2011-07-18 09:17:50 +02:00
|
|
|
%postun -n libarmadillo2 -p /sbin/ldconfig
|
2011-04-21 12:42:39 +02:00
|
|
|
|
2011-07-18 09:17:50 +02:00
|
|
|
%files -n libarmadillo2
|
2011-04-21 12:42:39 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
2011-04-27 15:14:51 +02:00
|
|
|
%doc LICENSE.txt licenses
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/armadillo
|
|
|
|
%{_includedir}/armadillo_bits/
|
|
|
|
%{_includedir}/armadillo_itpp
|
2011-04-27 15:14:51 +02:00
|
|
|
%{_datadir}/Armadillo/
|
|
|
|
%doc README.txt index.html examples/ docs/
|
2011-04-21 12:42:39 +02:00
|
|
|
|
|
|
|
%changelog
|