%{?mingw_package_header} %global mingw_pkg_name eigen3 %global commit 5a0156e40feb Name: mingw-%{mingw_pkg_name} Version: 3.3.4 Release: 1%{?dist} Summary: MinGW lightweight C++ template library for vector and matrix math BuildArch: noarch # See COPYING.README License: MPLv2.0 and LGPLv2+ and BSD URL: http://eigen.tuxfamily.org/index.php?title=Main_Page Source0: http://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2 # Since we are crosscompiling, read the comment in the file for details Source1: TryRunResults.cmake # Fix pkgconfig file Patch0: eigen_pkgconfig.patch # Fix cmake error due to buggy FindCUDA.cmake # CMake Error at /usr/share/cmake/Modules/FindCUDA.cmake:675 (find_host_program): # Unknown CMake command "find_host_program". # See https://gitlab.kitware.com/cmake/cmake/issues/16509 Patch1: eigen_disable-cuda.patch # Tweak installation dir for cmake modules Patch2: eigen_cmake-dir.patch # Fix the include paths in the new Eigen3Config.cmake file Patch3: eigen_fixcmake.patch BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-gcc-gfortran BuildRequires: mingw32-fftw BuildRequires: mingw32-gmp BuildRequires: mingw32-mpfr BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-gcc-gfortran BuildRequires: mingw64-fftw BuildRequires: mingw64-gmp BuildRequires: mingw64-mpfr BuildRequires: cmake %description %{summary} # Mingw32 %package -n mingw32-%{mingw_pkg_name} Summary: %{summary} %description -n mingw32-%{mingw_pkg_name} %{summary} # Mingw64 %package -n mingw64-%{mingw_pkg_name} Summary: %{summary} %description -n mingw64-%{mingw_pkg_name} %{summary} %prep %setup -q -n eigen-eigen-%{commit} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build mkdir build_win32 pushd build_win32 %mingw32_cmake -C%{SOURCE1} -DEIGEN_BUILD_PKGCONFIG:BOOL=ON -DINCLUDE_INSTALL_DIR=%{mingw32_includedir}/eigen3 popd mkdir build_win64 pushd build_win64 %mingw64_cmake -C%{SOURCE1} -DEIGEN_BUILD_PKGCONFIG:BOOL=ON -DINCLUDE_INSTALL_DIR=%{mingw64_includedir}/eigen3 popd # Just as a sanity check %mingw_make %{?_smp_mflags} buildtests %install %mingw_make install DESTDIR=%{buildroot} %files -n mingw32-%{mingw_pkg_name} %license COPYING.BSD COPYING.LGPL COPYING.MPL2 COPYING.README %{mingw32_includedir}/eigen3 %{mingw32_datadir}/pkgconfig/* %dir %{mingw32_datadir}/cmake/Modules %{mingw32_datadir}/cmake/Modules/*.cmake %files -n mingw64-%{mingw_pkg_name} %license COPYING.BSD COPYING.LGPL COPYING.MPL2 COPYING.README %{mingw64_includedir}/eigen3 %{mingw64_datadir}/pkgconfig/* %dir %{mingw64_datadir}/cmake/Modules %{mingw64_datadir}/cmake/Modules/*.cmake %changelog * Mon Jun 19 2017 Sandro Mani - 3.3.4-1 - Update to 3.3.4 * Wed Feb 22 2017 Sandro Mani - 3.3.3-1 - Update to 3.3.3 * Fri Feb 10 2017 Fedora Release Engineering - 3.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jan 22 2017 Sandro Mani - 3.3.2-1 - Update to 3.3.2 * Sun Jan 01 2017 Sandro Mani - 3.3.1-1 - Update to 3.3.1 * Tue Oct 04 2016 Sandro Mani - 3.2.10-1 - Update to 3.2.10 * Tue Jul 19 2016 Sandro Mani - 3.2.9-1 - Update to 3.2.9 * Sat Feb 20 2016 Sandro Mani - 3.2.8-1 - Update to 3.2.8 * Thu Feb 04 2016 Fedora Release Engineering - 3.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 06 2015 Sandro Mani - 3.2.7-3 - Again: Fix incorrect include path in pkgconfig file * Fri Nov 06 2015 Sandro Mani - 3.2.7-2 - Fix incorrect include path in pkgconfig file * Thu Nov 05 2015 Sandro Mani - 3.2.7-1 - Update to release 3.2.7 * Thu Oct 01 2015 Sandro Mani - 3.2.6-1 - Update to release 3.2.6 * Tue Jun 16 2015 Sandro Mani - 3.2.5-1 - Update to release 3.2.5 * Sat Jan 24 2015 Sandro Mani - 3.2.4-1 - Update to release 3.2.4 * Thu Dec 18 2014 Sandro Mani - 3.2.3-1 - Update to release 3.2.3 * Mon Aug 04 2014 Sandro Mani - 3.2.2-1 - Update to release 3.2.2 * Sat Jun 07 2014 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 26 2014 Sandro Mani - 3.2.1-1 - Update to release 3.2.1 * Mon Aug 05 2013 Sandro Mani - 3.2-3 - Add patch to work around gcc bug 58087 * Sat Aug 03 2013 Fedora Release Engineering - 3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 24 2013 Sandro Mani - 3.2-1 - Update to release 3.2 * Fri Apr 19 2013 Sandro Mani - 3.1.3-1 - Update to release 3.1.3 * Tue Mar 05 2013 Sandro Mani - 3.1.2-1 - Initial fedora package