Accepting request 718313 from home:StefanBruens:branches:science
- Clean up spec file: * Correct License tag, some included algorithms are LGPL-2.1-only * Remove conditionals for obsolete distributions (which were failing or unresolvable anyway) * Remove defattr, use license macro * Hide GL/GLUT/GLEW BuildRequires behind tests bcond, as tests are not build currently * Add missing BuildRequires tex(newunicodechar.sty), group doc dependencies OBS-URL: https://build.opensuse.org/request/show/718313 OBS-URL: https://build.opensuse.org/package/show/science/eigen3?expand=0&rev=22
This commit is contained in:
parent
860e71fffd
commit
6ce7a88e7c
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 24 15:48:27 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Clean up spec file:
|
||||||
|
* Correct License tag, some included algorithms are LGPL-2.1-only
|
||||||
|
* Remove conditionals for obsolete distributions (which were failing
|
||||||
|
or unresolvable anyway)
|
||||||
|
* Remove defattr, use license macro
|
||||||
|
* Hide GL/GLUT/GLEW BuildRequires behind tests bcond, as tests are
|
||||||
|
not build currently
|
||||||
|
* Add missing BuildRequires tex(newunicodechar.sty), group doc dependencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 26 19:32:49 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Tue Feb 26 19:32:49 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
51
eigen3.spec
51
eigen3.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package eigen3
|
# spec file for package eigen3
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,15 +12,17 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%bcond_with tests
|
||||||
|
%bcond_without docs
|
||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.3.7
|
Version: 3.3.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: C++ Template Library for Linear Algebra
|
Summary: C++ Template Library for Linear Algebra
|
||||||
License: MPL-2.0 and LGPL-2.1+ and BSD-3-Clause
|
License: MPL-2.0 AND LGPL-2.1-only AND LGPL-2.1-or-later AND BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://eigen.tuxfamily.org/
|
Url: http://eigen.tuxfamily.org/
|
||||||
Source0: https://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2#/%{name}-%{version}.tar.bz2
|
Source0: https://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2#/%{name}-%{version}.tar.bz2
|
||||||
@ -34,37 +36,33 @@ Patch3: 01_install_FindEigen3.patch
|
|||||||
Patch4: eigen3-3.3.1-fixcmake.patch
|
Patch4: eigen3-3.3.1-fixcmake.patch
|
||||||
BuildRequires: adolc-devel
|
BuildRequires: adolc-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: fftw3-devel
|
BuildRequires: fftw3-devel
|
||||||
BuildRequires: freeglut-devel
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
BuildRequires: glew-devel
|
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: graphviz
|
|
||||||
BuildRequires: graphviz-gd
|
|
||||||
BuildRequires: gsl-devel
|
BuildRequires: gsl-devel
|
||||||
%if 0%{?suse_version} > 1320
|
|
||||||
BuildRequires: libboost_headers-devel
|
BuildRequires: libboost_headers-devel
|
||||||
%else
|
BuildRequires: metis-devel
|
||||||
BuildRequires: boost-devel
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} == 1315
|
|
||||||
BuildRequires: libqt4-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: sparsehash-devel
|
BuildRequires: sparsehash-devel
|
||||||
BuildRequires: suitesparse-devel
|
BuildRequires: suitesparse-devel
|
||||||
BuildRequires: superlu-devel
|
BuildRequires: superlu-devel
|
||||||
|
%if %{with docs}
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: graphviz
|
||||||
|
BuildRequires: graphviz-gd
|
||||||
BuildRequires: texlive-dvips
|
BuildRequires: texlive-dvips
|
||||||
BuildRequires: texlive-latex
|
BuildRequires: texlive-latex
|
||||||
BuildRequires: pkgconfig(gl)
|
BuildRequires: tex(newunicodechar.sty)
|
||||||
BuildArch: noarch
|
|
||||||
%if 0%{?suse_version} > 1310
|
|
||||||
BuildRequires: metis-devel
|
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: freeglut-devel
|
||||||
|
BuildRequires: glew-devel
|
||||||
|
BuildRequires: pkgconfig(gl)
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
||||||
@ -108,23 +106,26 @@ echo "HTML_TIMESTAMP = NO" >> doc/Doxyfile.in
|
|||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
||||||
-DGOOGLEHASH_INCLUDES=%{_includedir}
|
-DGOOGLEHASH_INCLUDES=%{_includedir}
|
||||||
make %{?_smp_mflags} all doc
|
make %{?_smp_mflags} all
|
||||||
rm -f doc/html/*.tgz `find doc -name _formulas.log`
|
%if %{with docs}
|
||||||
|
make %{?_smp_mflags} doc
|
||||||
|
%endif
|
||||||
|
|
||||||
|
rm -f doc/html/*.tgz
|
||||||
|
find doc -name _formulas.log -print -delete
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
%fdupes -s build/doc/html/
|
%fdupes -s build/doc/html/
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%license COPYING.*
|
||||||
%doc COPYING.*
|
|
||||||
%{_includedir}/eigen3/
|
%{_includedir}/eigen3/
|
||||||
%{_datadir}/eigen3/
|
%{_datadir}/eigen3/
|
||||||
%{_datadir}/pkgconfig/eigen3.pc
|
%{_datadir}/pkgconfig/eigen3.pc
|
||||||
%{_datadir}/cmake/Modules/FindEigen3.cmake
|
%{_datadir}/cmake/Modules/FindEigen3.cmake
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/doc/html/
|
%doc build/doc/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user