eigen3/eigen3.spec

178 lines
5.7 KiB
RPMSpec
Raw Normal View History

# The (empty) main package is arch, to have the package built and tests run
# on all arches, but the actual result package is the noarch -devel subpackge.
# Debuginfo packages are disabled To prevent rpmbuild from generating empty
# debuginfo packages for the empty main package.
%global debug_package %{nil}
Name: eigen3
2013-07-24 10:22:04 +00:00
Version: 3.2
2013-08-04 00:11:31 +00:00
Release: 3%{?dist}
Summary: A lightweight C++ template library for vector and matrix math
Group: Development/Libraries
2013-03-06 00:35:27 +00:00
License: MPLv2.0 and LGPLv2+ and BSD
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
2013-04-19 12:52:20 +00:00
# Source file is at: http://bitbucket.org/eigen/eigen/get/3.1.3.tar.bz2
# Renamed source file so it's not just a version number
Source0: eigen-%{version}.tar.bz2
BuildRequires: atlas-devel
BuildRequires: fftw-devel
BuildRequires: glew-devel
BuildRequires: gmp-devel
BuildRequires: gsl-devel
BuildRequires: mpfr-devel
BuildRequires: sparsehash-devel
BuildRequires: suitesparse-devel
BuildRequires: gcc-gfortran
BuildRequires: SuperLU-devel
BuildRequires: qt-devel
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: tex(latex)
%description
%{summary}.
%package devel
Summary: A lightweight C++ template library for vector and matrix math
Group: Development/Libraries
BuildArch: noarch
# -devel subpkg only atm, compat with other distros
Provides: %{name} = %{version}-%{release}
# not *strictly* a -static pkg, but the results are the same
Provides: %{name}-static = %{version}-%{release}
%description devel
%{summary}.
%prep
2013-07-24 10:22:04 +00:00
%setup -q -n eigen-eigen-ffa86ffb5570
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%cmake .. -DBLAS_LIBRARIES="cblas" -DSUPERLU_INCLUDES=%{_includedir}/SuperLU
popd
make -C %{_target_platform} %{?_smp_mflags}
make doc -C %{_target_platform} %{?_smp_mflags}
rm -f %{_target_platform}/doc/html/installdox
rm -f %{_target_platform}/doc/html/unsupported/installdox
%install
%make_install -C %{_target_platform}
%check
# Exclude tests that are failing:
%ifarch armv7hl
# The following tests FAILED:
# 3 - dynalloc (Failed)
# 5 - nomalloc_2 (Failed)
# 14 - packetmath_3 (Failed)
# 54 - redux_6 (Failed)
# 62 - visitor_6 (Failed)
# 153 - array_6 (Failed)
# 159 - array_for_matrix_6 (Failed)
# 254 - product_trsolve_8 (Failed)
# 311 - qr_colpivoting_1 (Failed)
# 576 - matrix_exponential_6 (Failed)
# 630 - gmres_1 (Failed)
# 632 - levenberg_marquardt (Failed)
excluded_tests="dynalloc|nomalloc_2|packetmath_3|redux_6|visitor_6|array_6|array_for_matrix_6|product_trsolve_8|qr_colpivoting_1|matrix_exponential_6|gmres_1|levenberg_marquardt"
%endif
2013-08-03 07:18:43 +00:00
%ifarch x86_64
# The following tests FAILED:
2013-08-08 19:17:07 +00:00
# 585 - matrix_function_1 (Failed)
# 608 - mpreal_support (Failed)
# 631 - gmres_2 (Failed)
2013-08-05 17:15:03 +00:00
# 632 - gmres_1 (Failed)
# 632 - minres_1 (Failed)
# 647 - bdcsvd_2 (Failed)
2013-08-08 19:17:07 +00:00
excluded_tests="matrix_function_1|mpreal_support|gmres_1|gmres_2|minres_1|bdcsvd_2"
%endif
2013-08-03 07:18:43 +00:00
%ifarch %{ix86}
# The following tests FAILED:
# 177 - ref_1 (Failed)
# 555 - superlu_support_2 (Failed)
# 556 - cholmod_support_1 (Failed)
# 557 - cholmod_support_2 (Failed)
# 570 - NonLinearOptimization (Failed)
2013-08-10 20:40:22 +00:00
# 603 - mpreal_support (Failed)
2013-08-10 22:03:36 +00:00
# 627 - gmres_2 (Failed)
2013-08-04 00:11:31 +00:00
# 629 - minres_1 (Failed)
2013-08-03 07:18:43 +00:00
# 633 - gmres_1 (Failed)
# 635 - levenberg_marquardt (Failed)
2013-08-04 00:11:31 +00:00
# 643 - bdcsvd_2 (Failed)
2013-08-10 22:03:36 +00:00
excluded_tests="ref_1|superlu_support_2|cholmod_support_1|cholmod_support_2|NonLinearOptimization|mpreal_support|gmres_2|minres_1|gmres_1|levenberg_marquardt|bdcsvd_2"
2013-08-03 07:18:43 +00:00
%endif
make -C %{_target_platform} %{?_smp_mflags} buildtests
2013-08-02 22:26:57 +00:00
make -C %{_target_platform} %{?_smp_mflags} test ARGS="-V -E '$excluded_tests'"
%files devel
2013-03-06 00:35:27 +00:00
%doc COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
%doc %{_target_platform}/doc/html
%{_includedir}/eigen3
%{_datadir}/pkgconfig/*
%changelog
2013-08-10 22:03:36 +00:00
* Sun Aug 11 2013 Sandro Mani <manisandro@gmail.com> - 3.2-3
- Build and run tests
- Drop -DBLAS_LIBRARIES_DIR, not used
- Add some BR to enable tests of corresponding backends
- spec cleanup
2013-07-24 10:22:04 +00:00
* Wed Jul 24 2013 Sandro Mani <manisandro@gmail.com> - 3.2-1
- Update to release 3.2
* Sat Jun 29 2013 Rich Mattes <richmattes@gmail.com> - 3.1.3-2
- Add upstream patch to fix malloc/free bugs (rhbz#978971)
2013-04-19 12:52:20 +00:00
* Fri Apr 19 2013 Sandro Mani <manisandro@gmail.com> - 3.1.3-1
- Update to release 3.1.3
- Add patch for unused typedefs warning with gcc4.8
2013-03-06 00:35:27 +00:00
* Tue Mar 05 2013 Rich Mattes <richmattes@gmail.com> - 3.1.2-1
2013-03-06 00:16:56 +00:00
- Update to release 3.1.2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 28 2012 Tim Niemueller <tim@niemueller.de> - 3.0.6-1
- Update to release 3.0.6 (fixes GCC 4.7 warnings)
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-05-05 16:29:22 +00:00
* Sun Mar 11 2012 Rich Mattes <richmattes@gmail.com> - 3.0.5-1
- Update to release 3.0.5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-12-19 03:12:03 +00:00
* Sun Dec 18 2011 Rich Mattes <richmattes@gmail.com> - 3.0.4-1
- Update to release 3.0.4
2011-11-15 05:44:54 +00:00
* Tue Nov 15 2011 Rich Mattes <richmattes@gmail.com> - 3.0.3-1
- Update to release 3.0.3
* Sun Apr 17 2011 Rich Mattes <richmattes@gmail.com> - 3.0.0-2
- Patched sources to fix build failure
- Removed fixes made upstream
- Added project name to source tarball filename
* Sat Mar 26 2011 Rich Mattes <richmattes@gmail.com> - 3.0.0-1
- Update to release 3.0.0
* Tue Jan 25 2011 Rich Mattes <richmattes@gmail.com> - 3.0-0.2.beta2
- Change blas-devel buildrequirement to atlas-devel
- Don't make the built-in experimental blas library
* Mon Jan 24 2011 Rich Mattes <richmattes@gmail.com> - 3.0-0.1.beta2
- Initial package