Blame SPECS/eigen3.spec

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