Blame SPECS/eigen3.spec

92fff4
# The (empty) main package is arch, to have the package built and tests run
92fff4
# on all arches, but the actual result package is the noarch -devel subpackge.
92fff4
# Debuginfo packages are disabled to prevent rpmbuild from generating an empty
92fff4
# debuginfo package for the empty main package.
92fff4
%global debug_package %{nil}
92fff4
92fff4
%global commit 5a0156e40feb
92fff4
92fff4
Name:           eigen3
92fff4
Version:        3.3.4
92fff4
Release:        6%{?dist}
92fff4
Summary:        A lightweight C++ template library for vector and matrix math
92fff4
92fff4
Group:          Development/Libraries
92fff4
License:        MPLv2.0 and LGPLv2+ and BSD
92fff4
URL:            http://eigen.tuxfamily.org/index.php?title=Main_Page
92fff4
Source0:        http://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2
92fff4
92fff4
# Install FindEigen3.cmake
92fff4
# Adapted from Debian eigen3 package
92fff4
Patch0:         01_install_FindEigen3.patch
92fff4
92fff4
# Fix pkg-config file
92fff4
Patch1:         eigen_pkgconfig.patch
92fff4
# Fix the include paths in the new Eigen3Config.cmake file
92fff4
Patch2:         eigen3-3.3.1-fixcmake.patch
92fff4
92fff4
BuildRequires:  atlas-devel
92fff4
BuildRequires:  fftw-devel
92fff4
BuildRequires:  glew-devel
92fff4
BuildRequires:  gmp-devel
92fff4
BuildRequires:  gsl-devel
92fff4
BuildRequires:  mpfr-devel
92fff4
BuildRequires:  sparsehash-devel
92fff4
BuildRequires:  suitesparse-devel
92fff4
BuildRequires:  gcc-gfortran
92fff4
BuildRequires:  SuperLU-devel
92fff4
#BuildRequires:  qt-devel
92fff4
BuildRequires:  scotch-devel
92fff4
BuildRequires:  metis-devel
92fff4
92fff4
BuildRequires:  cmake
92fff4
BuildRequires:  make
92fff4
BuildRequires:  gcc-c++
92fff4
BuildRequires:  doxygen
92fff4
BuildRequires:  graphviz
92fff4
BuildRequires:  tex(latex)
92fff4
92fff4
%description
92fff4
%{summary}.
92fff4
92fff4
%package devel
92fff4
Summary:   A lightweight C++ template library for vector and matrix math
92fff4
Group:     Development/Libraries
92fff4
BuildArch: noarch
92fff4
# -devel subpkg only atm, compat with other distros
92fff4
Provides:  %{name} = %{version}-%{release}
92fff4
# not *strictly* a -static pkg, but the results are the same
92fff4
Provides:  %{name}-static = %{version}-%{release}
92fff4
%description devel
92fff4
%{summary}.
92fff4
92fff4
%package doc
92fff4
Summary:   Developer documentation for Eigen
92fff4
Requires:  %{name}-devel = %{version}-%{release}
92fff4
BuildArch: noarch
92fff4
%description doc
92fff4
Developer documentation for Eigen.
92fff4
92fff4
%prep
92fff4
%setup -q -n eigen-eigen-%{commit}
92fff4
%patch0 -p1
92fff4
%patch1 -p1
92fff4
%patch2 -p0 -b .fixcmake
92fff4
%build
92fff4
mkdir %{_target_platform}
92fff4
pushd %{_target_platform}
92fff4
#%%ifarch ppc64
92fff4
# Currently get a compiler ICE, work around it
92fff4
# https://bugzilla.redhat.com/show_bug.cgi?id=1063999
92fff4
#export CXXFLAGS="%%{optflags} -mno-vsx"
92fff4
#%%endif
92fff4
%cmake .. -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
92fff4
  -DBLAS_LIBRARIES="cblas" \
92fff4
  -DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
92fff4
  -DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
92fff4
  -DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
92fff4
  -DCMAKEPACKAGE_INSTALL_DIR=%{_datadir}/%{name}
92fff4
popd
92fff4
%make_build -C %{_target_platform}
92fff4
%make_build doc -C %{_target_platform}
92fff4
92fff4
rm -f %{_target_platform}/doc/html/installdox
92fff4
rm -f %{_target_platform}/doc/html/unsupported/installdox
92fff4
92fff4
%install
92fff4
%make_install -C %{_target_platform}
92fff4
92fff4
%check
92fff4
# Run tests but make failures non-fatal. Note that upstream doesn't expect the
92fff4
# tests to pass consistently since they're seeded randomly.
92fff4
#make -C %%{_target_platform} %%{?_smp_mflags} buildtests
92fff4
#make -C %%{_target_platform} %%{?_smp_mflags} test ARGS="-V" || exit 0
92fff4
92fff4
%files devel
92fff4
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
92fff4
%{_includedir}/eigen3
92fff4
%{_datadir}/%{name}
92fff4
%{_datadir}/pkgconfig/*
92fff4
%{_datadir}/cmake/Modules/*.cmake
92fff4
92fff4
%files doc
92fff4
%doc %{_target_platform}/doc/html
92fff4
92fff4
%changelog
92fff4
* Mon Sep 17 2018 Jiri Kucera <jkucera@redhat.com> - 3.3.4-6
92fff4
- Removed dependency on qt-devel
92fff4
  Resolves: #1628473
92fff4
92fff4
* Sun Feb 18 2018 Sandro Mani <manisandro@gmail.com> - 3.3.4-5
92fff4
- Add missing BR: gcc-c++, make
92fff4
92fff4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-4
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
92fff4
92fff4
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-3
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
92fff4
92fff4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
92fff4
92fff4
* Mon Jun 19 2017 Sandro Mani <manisandro@gmail.com> - 3.3.4-1
92fff4
- Update to 3.3.4
92fff4
92fff4
* Wed Feb 22 2017 Sandro Mani <manisandro@gmail.com> - 3.3.3-1
92fff4
- Update to 3.3.3
92fff4
92fff4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.2-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
92fff4
92fff4
* Sun Jan 22 2017 Sandro Mani <manisandro@gmail.com> - 3.3.2-1
92fff4
- Update to 3.3.2
92fff4
92fff4
* Wed Dec 28 2016 Rich Mattes <richmattes@gmail.com> - 3.3.1-1
92fff4
- Update to 3.3.1 (rhbz#1408538)
92fff4
92fff4
* Wed Nov 23 2016 Rich Mattes <richmattes@gmail.com> - 3.3.0-1
92fff4
- Update to 3.3.0
92fff4
- Stop renaming tarball - just use upstream tarball
92fff4
92fff4
* Tue Oct 04 2016 Sandro Mani <manisandro@gmail.com> - 3.2.10-1
92fff4
- Update to 3.2.10
92fff4
92fff4
* Tue Jul 19 2016 Sandro Mani <manisandro@gmail.com> - 3.2.9-1
92fff4
- Update to 3.2.9
92fff4
92fff4
* Sat Feb 20 2016 Sandro Mani <manisandro@gmail.com> - 3.2.8-1
92fff4
- Update to 3.2.8
92fff4
92fff4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.7-4
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
92fff4
92fff4
* Fri Nov 06 2015 Sandro Mani <manisandro@gmail.com> - 3.2.7-3
92fff4
- Again: Fix incorrect include path in pkgconfig file
92fff4
92fff4
* Fri Nov 06 2015 Sandro Mani <manisandro@gmail.com> - 3.2.7-2
92fff4
- Fix incorrect include path in pkgconfig file
92fff4
92fff4
* Thu Nov 05 2015 Sandro Mani <manisandro@gmail.com> - 3.2.7-1
92fff4
- Update to release 3.2.7
92fff4
92fff4
* Thu Oct 01 2015 Sandro Mani <manisandro@gmail.com> - 3.2.6-1
92fff4
- Update to release 3.2.6
92fff4
92fff4
* Fri Aug 21 2015 Rich Mattes <richmattes@gmail.com> - 3.2.5-2
92fff4
- Apply patch to install FindEigen3.cmake
92fff4
92fff4
* Tue Jun 16 2015 Sandro Mani <manisandro@gmail.com> - 3.2.5-1
92fff4
- Update to release 3.2.5
92fff4
92fff4
* Thu Jan 22 2015 Sandro Mani <manisandro@gmail.com> - 3.2.4-1
92fff4
- Update to release 3.2.4
92fff4
92fff4
* Mon Jan 05 2015 Rich Mattes <richmattes@gmail.com> - 3.2.3-2
92fff4
- Backport upstream Rotation2D fix
92fff4
92fff4
* Thu Dec 18 2014 Sandro Mani <manisandro@gmail.com> - 3.2.3-1
92fff4
- Update to release 3.2.3
92fff4
- Drop upstreamed eigen3-ppc64.patch
92fff4
92fff4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
92fff4
92fff4
* Mon Aug 04 2014 Sandro Mani <manisandro@gmail.com> - 3.2.2-1
92fff4
- Update to release 3.2.2
92fff4
92fff4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-5
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
92fff4
92fff4
* Tue Mar 11 2014 Orion Poplawski <orion@cora.nwra.com> - 3.2.1-4
92fff4
- Add ppc64 support
92fff4
92fff4
* Thu Feb 27 2014 Sandro Mani <manisandro@gmail.com> - 3.2.1-3
92fff4
- Make doc package noarch
92fff4
92fff4
* Thu Feb 27 2014 Sandro Mani <manisandro@gmail.com> - 3.2.1-2
92fff4
- Split off doc to a separate package
92fff4
92fff4
* Wed Feb 26 2014 Sandro Mani <manisandro@gmail.com> - 3.2.1-1
92fff4
- Udpate to release 3.2.1
92fff4
92fff4
* Sun Aug 11 2013 Sandro Mani <manisandro@gmail.com> - 3.2-3
92fff4
- Build and run tests
92fff4
- Drop -DBLAS_LIBRARIES_DIR, not used
92fff4
- Add some BR to enable tests of corresponding backends
92fff4
- spec cleanup
92fff4
92fff4
* Wed Jul 24 2013 Sandro Mani <manisandro@gmail.com> - 3.2-1
92fff4
- Update to release 3.2
92fff4
92fff4
* Sat Jun 29 2013 Rich Mattes <richmattes@gmail.com> - 3.1.3-2
92fff4
- Add upstream patch to fix malloc/free bugs (rhbz#978971)
92fff4
92fff4
* Fri Apr 19 2013 Sandro Mani <manisandro@gmail.com> - 3.1.3-1
92fff4
- Update to release 3.1.3
92fff4
- Add patch for unused typedefs warning with gcc4.8
92fff4
92fff4
* Tue Mar 05 2013 Rich Mattes <richmattes@gmail.com> - 3.1.2-1
92fff4
- Update to release 3.1.2
92fff4
92fff4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
92fff4
92fff4
* Sat Jul 28 2012 Tim Niemueller <tim@niemueller.de> - 3.0.6-1
92fff4
- Update to release 3.0.6 (fixes GCC 4.7 warnings)
92fff4
92fff4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.5-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
92fff4
92fff4
* Sun Mar 11 2012 Rich Mattes <richmattes@gmail.com> - 3.0.5-1
92fff4
- Update to release 3.0.5
92fff4
92fff4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-2
92fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
92fff4
92fff4
* Sun Dec 18 2011 Rich Mattes <richmattes@gmail.com> - 3.0.4-1
92fff4
- Update to release 3.0.4
92fff4
92fff4
* Tue Nov 15 2011 Rich Mattes <richmattes@gmail.com> - 3.0.3-1
92fff4
- Update to release 3.0.3
92fff4
92fff4
* Sun Apr 17 2011 Rich Mattes <richmattes@gmail.com> - 3.0.0-2
92fff4
- Patched sources to fix build failure
92fff4
- Removed fixes made upstream
92fff4
- Added project name to source tarball filename
92fff4
92fff4
* Sat Mar 26 2011 Rich Mattes <richmattes@gmail.com> - 3.0.0-1
92fff4
- Update to release 3.0.0
92fff4
92fff4
* Tue Jan 25 2011 Rich Mattes <richmattes@gmail.com> - 3.0-0.2.beta2
92fff4
- Change blas-devel buildrequirement to atlas-devel
92fff4
- Don't make the built-in experimental blas library
92fff4
92fff4
* Mon Jan 24 2011 Rich Mattes <richmattes@gmail.com> - 3.0-0.1.beta2
92fff4
- Initial package