2014-05-06 17:38:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package eigen3
|
|
|
|
#
|
2019-07-25 18:59:53 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-05-06 17:38:01 +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-07-25 18:59:53 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-05-06 17:38:01 +02:00
|
|
|
#
|
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
2019-07-25 18:59:53 +02:00
|
|
|
%bcond_with tests
|
2014-05-06 17:38:01 +02:00
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%if %{flavor} == "docs"
|
|
|
|
%define pkgsuffix -doc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: eigen3%{?pkgsuffix}
|
2018-12-30 18:14:26 +01:00
|
|
|
Version: 3.3.7
|
2014-05-06 17:38:01 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C++ Template Library for Linear Algebra
|
2019-07-25 18:59:53 +02:00
|
|
|
License: MPL-2.0 AND LGPL-2.1-only AND LGPL-2.1-or-later AND BSD-3-Clause
|
2014-05-06 17:38:01 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://eigen.tuxfamily.org/
|
2017-03-09 00:59:11 +01:00
|
|
|
Source0: https://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2#/%{name}-%{version}.tar.bz2
|
2014-08-03 15:36:30 +02:00
|
|
|
Patch0: 0001-Disable-Altivec-for-ppc64le.patch
|
|
|
|
Patch1: 0001-Do-stack-allignment-on-ppc.patch
|
2016-07-12 23:50:12 +02:00
|
|
|
# PATCH-FIX-OPENSUSE eigen_pkgconfig.patch asterios.dramis@gmail.com -- Fix pkg-config file includedir
|
|
|
|
Patch2: eigen_pkgconfig.patch
|
|
|
|
# PATCH-FIX-OPENSUSE 01_install_FindEigen3.patch asterios.dramis@gmail.com -- Install FindEigen3.cmake
|
|
|
|
Patch3: 01_install_FindEigen3.patch
|
2018-12-30 18:14:26 +01:00
|
|
|
# PATCH-FIX-OPENSUSE eigen3-3.3.1-fixcmake.patch -- Fix double {prefix} as we use INCLUDE_INSTALL_DIR with {_includedir}
|
|
|
|
Patch4: eigen3-3.3.1-fixcmake.patch
|
2014-05-06 17:38:01 +02:00
|
|
|
BuildRequires: adolc-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-fortran
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: gsl-devel
|
2017-03-09 00:59:11 +01:00
|
|
|
BuildRequires: libboost_headers-devel
|
2019-07-25 18:59:53 +02:00
|
|
|
BuildRequires: metis-devel
|
2014-05-06 17:38:01 +02:00
|
|
|
BuildRequires: mpfr-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: sparsehash-devel
|
|
|
|
BuildRequires: suitesparse-devel
|
2016-07-12 23:50:12 +02:00
|
|
|
BuildRequires: superlu-devel
|
2019-08-06 00:54:17 +02:00
|
|
|
%if %{flavor} == "docs"
|
2019-07-25 18:59:53 +02:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: graphviz-gd
|
2017-01-11 11:53:00 +01:00
|
|
|
BuildRequires: texlive-dvips
|
2014-05-06 17:38:01 +02:00
|
|
|
BuildRequires: texlive-latex
|
2019-07-25 18:59:53 +02:00
|
|
|
BuildRequires: tex(newunicodechar.sty)
|
|
|
|
%endif
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: glew-devel
|
2015-09-11 09:01:18 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
%endif
|
2019-07-25 18:59:53 +02:00
|
|
|
BuildArch: noarch
|
2014-05-06 17:38:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
|
|
|
numerical solvers, and related algorithms.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: C++ Template Library for Linear Algebra
|
2017-11-08 20:10:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-11-08 20:11:24 +01:00
|
|
|
# libeigen3-devel was last used at openSUSE 13.1 (version 3.2.0)
|
2014-05-06 17:38:01 +02:00
|
|
|
Provides: libeigen3-devel = %{version}
|
|
|
|
Obsoletes: libeigen3-devel < %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
|
|
|
numerical solvers, and related algorithms.
|
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%if %{flavor} == "docs"
|
2017-08-12 19:06:59 +02:00
|
|
|
Summary: Documentation for the Eigen3 C++ Template Library for Linear Algebra
|
|
|
|
Group: Documentation/HTML
|
2017-07-18 14:42:00 +02:00
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%description
|
2017-07-18 14:42:00 +02:00
|
|
|
Documentation in HTML format for the Eigen3 C++ Template Library
|
|
|
|
for Linear Algebra
|
2019-08-06 00:54:17 +02:00
|
|
|
%endif
|
2017-07-18 14:42:00 +02:00
|
|
|
|
2014-05-06 17:38:01 +02:00
|
|
|
%prep
|
2018-12-30 18:14:26 +01:00
|
|
|
%setup -q -n eigen-eigen-323c052e1731
|
2014-08-03 15:36:30 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2016-07-12 23:50:12 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2018-12-30 18:14:26 +01:00
|
|
|
%patch4 -p1
|
2014-05-06 17:38:01 +02:00
|
|
|
|
|
|
|
# Fix rpmlint warning "wrong-file-end-of-line-encoding"
|
|
|
|
sed -i 's/\r$//' COPYING.MINPACK
|
|
|
|
|
|
|
|
# Remove build time references so build-compare can do its work
|
|
|
|
echo "HTML_TIMESTAMP = NO" >> doc/Doxyfile.in
|
|
|
|
|
|
|
|
%build
|
2015-09-11 09:01:18 +02:00
|
|
|
%cmake \
|
2016-07-12 23:50:12 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2016-08-12 15:35:08 +02:00
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
|
|
|
-DGOOGLEHASH_INCLUDES=%{_includedir}
|
2019-08-06 00:54:17 +02:00
|
|
|
|
|
|
|
%if %{flavor} == ""
|
2019-07-25 18:59:53 +02:00
|
|
|
make %{?_smp_mflags} all
|
2019-08-06 00:54:17 +02:00
|
|
|
%else
|
2019-07-25 18:59:53 +02:00
|
|
|
make %{?_smp_mflags} doc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
rm -f doc/html/*.tgz
|
|
|
|
find doc -name _formulas.log -print -delete
|
2014-05-06 17:38:01 +02:00
|
|
|
|
|
|
|
%install
|
2015-09-11 09:01:18 +02:00
|
|
|
%cmake_install
|
2015-11-24 22:32:59 +01:00
|
|
|
%fdupes -s build/doc/html/
|
2014-05-06 17:38:01 +02:00
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%if %{flavor} == "docs"
|
|
|
|
%files
|
|
|
|
%doc build/doc/html/
|
|
|
|
|
|
|
|
%else
|
2014-05-06 17:38:01 +02:00
|
|
|
%files devel
|
2019-07-25 18:59:53 +02:00
|
|
|
%license COPYING.*
|
2014-05-06 17:38:01 +02:00
|
|
|
%{_includedir}/eigen3/
|
2017-03-09 00:59:11 +01:00
|
|
|
%{_datadir}/eigen3/
|
2014-05-06 17:38:01 +02:00
|
|
|
%{_datadir}/pkgconfig/eigen3.pc
|
2016-07-12 23:50:12 +02:00
|
|
|
%{_datadir}/cmake/Modules/FindEigen3.cmake
|
2014-05-06 17:38:01 +02:00
|
|
|
|
2019-08-06 00:54:17 +02:00
|
|
|
%endif
|
2017-07-18 14:42:00 +02:00
|
|
|
|
2014-05-06 17:38:01 +02:00
|
|
|
%changelog
|