revert
OBS-URL: https://build.opensuse.org/package/show/science/eigen3?expand=0&rev=24
This commit is contained in:
parent
06ce99f845
commit
493293918f
23
eigen3.spec
23
eigen3.spec
@ -15,15 +15,14 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
|
||||||
|
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
%bcond_without docs
|
||||||
|
|
||||||
%if %{flavor} == "docs"
|
%if %{flavor} == "docs"
|
||||||
%define pkgsuffix -doc
|
%define pkgsuffix -doc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: eigen3%{?pkgsuffix}
|
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
|
||||||
@ -53,7 +52,7 @@ BuildRequires: pkg-config
|
|||||||
BuildRequires: sparsehash-devel
|
BuildRequires: sparsehash-devel
|
||||||
BuildRequires: suitesparse-devel
|
BuildRequires: suitesparse-devel
|
||||||
BuildRequires: superlu-devel
|
BuildRequires: superlu-devel
|
||||||
%if %{flavor} == "docs"
|
%if %{with docs}
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
@ -84,14 +83,13 @@ Obsoletes: libeigen3-devel < %{version}
|
|||||||
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
Eigen is a C++ template library for linear algebra: matrices, vectors,
|
||||||
numerical solvers, and related algorithms.
|
numerical solvers, and related algorithms.
|
||||||
|
|
||||||
%if %{flavor} == "docs"
|
%package docs
|
||||||
Summary: Documentation for the Eigen3 C++ Template Library for Linear Algebra
|
Summary: Documentation for the Eigen3 C++ Template Library for Linear Algebra
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
|
|
||||||
%description
|
%description doc
|
||||||
Documentation in HTML format for the Eigen3 C++ Template Library
|
Documentation in HTML format for the Eigen3 C++ Template Library
|
||||||
for Linear Algebra
|
for Linear Algebra
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n eigen-eigen-323c052e1731
|
%setup -q -n eigen-eigen-323c052e1731
|
||||||
@ -113,9 +111,8 @@ echo "HTML_TIMESTAMP = NO" >> doc/Doxyfile.in
|
|||||||
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
||||||
-DGOOGLEHASH_INCLUDES=%{_includedir}
|
-DGOOGLEHASH_INCLUDES=%{_includedir}
|
||||||
|
|
||||||
%if %{flavor} == ""
|
|
||||||
make %{?_smp_mflags} all
|
make %{?_smp_mflags} all
|
||||||
%else
|
%if %{with docs}
|
||||||
make %{?_smp_mflags} doc
|
make %{?_smp_mflags} doc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -126,11 +123,6 @@ find doc -name _formulas.log -print -delete
|
|||||||
%cmake_install
|
%cmake_install
|
||||||
%fdupes -s build/doc/html/
|
%fdupes -s build/doc/html/
|
||||||
|
|
||||||
%if %{flavor} == "docs"
|
|
||||||
%files
|
|
||||||
%doc build/doc/html/
|
|
||||||
|
|
||||||
%else
|
|
||||||
%files devel
|
%files devel
|
||||||
%license COPYING.*
|
%license COPYING.*
|
||||||
%{_includedir}/eigen3/
|
%{_includedir}/eigen3/
|
||||||
@ -138,6 +130,7 @@ find doc -name _formulas.log -print -delete
|
|||||||
%{_datadir}/pkgconfig/eigen3.pc
|
%{_datadir}/pkgconfig/eigen3.pc
|
||||||
%{_datadir}/cmake/Modules/FindEigen3.cmake
|
%{_datadir}/cmake/Modules/FindEigen3.cmake
|
||||||
|
|
||||||
%endif
|
%files doc
|
||||||
|
%doc build/doc/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user