#4 fix source file snafu and adapt to CMake macros changes in fedora 33+
Merged 3 years ago by smani. Opened 3 years ago by decathorpe.
Unknown source master  into  master

file modified
+1
@@ -24,3 +24,4 @@

  /3.3.5.tar.bz2

  /3.3.6.tar.bz2

  /3.3.7.tar.bz2

+ /eigen-3.3.7.tar.bz2

file modified
+19 -18
@@ -6,7 +6,7 @@

  

  Name:           eigen3

  Version:        3.3.7

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        A lightweight C++ template library for vector and matrix math

  

  License:        MPLv2.0 and LGPLv2+ and BSD
@@ -72,32 +72,30 @@

  

  

  %build

- mkdir %{_target_platform}

- pushd %{_target_platform}

- %cmake .. -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \

-   -DBLAS_LIBRARIES="cblas" \

-   -DSUPERLU_INCLUDES=%{_includedir}/SuperLU \

-   -DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \

-   -DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \

-   -DCMAKEPACKAGE_INSTALL_DIR=%{_datadir}/%{name}

- popd

+ %cmake \

+     -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \

+     -DBLAS_LIBRARIES="cblas" \

+     -DSUPERLU_INCLUDES=%{_includedir}/SuperLU \

+     -DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \

+     -DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \

+     -DCMAKEPACKAGE_INSTALL_DIR=%{_datadir}/%{name}

  

- %make_build -C %{_target_platform}

- %make_build doc -C %{_target_platform}

+ %cmake_build

+ %cmake_build --target doc

  

- rm -f %{_target_platform}/doc/html/installdox

- rm -f %{_target_platform}/doc/html/unsupported/installdox

+ rm -f %{_vpath_builddir}/doc/html/installdox

+ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox

  

  

  %install

- %make_install -C %{_target_platform}

+ %cmake_install

  

  

  %check

  # Run tests but make failures non-fatal. Note that upstream doesn't expect the

  # tests to pass consistently since they're seeded randomly.

- #make_build buildtests -C %{_target_platform}

- #make_build test -C %{_target_platform} test ARGS="-V" || :

+ #cmake_build --target buildtests

+ #cmake_build --target test -- test ARGS="-V" || :

  

  

  %files devel
@@ -108,10 +106,13 @@

  %{_datadir}/cmake/Modules/*.cmake

  

  %files doc

- %doc %{_target_platform}/doc/html

+ %doc %{_vpath_builddir}/doc/html

  

  

  %changelog

+ * Sat Aug 29 2020 Fabio Valentini <decathorpe@gmail.com> - 3.3.7-6

+ - Adapt to CMake macros changes in fedora 33+.

+ 

  * Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.7-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@

- SHA512 (3.3.7.tar.bz2) = c12bfd034d0a1112bf2df3f773ad98f36b2b53fbbfceac5f143ee1793322746fb8a6546d7db7da2a1000da6a535bd8cea0c4125b549afc90a6570743b02dcf3d

+ SHA512 (eigen-3.3.7.tar.bz2) = ea3f1570de3be9ec230d2fbd0f2ae246bf5fd13da79835bf546eb31524796f26f9f633ee779f77942b370a8d540c5cbbd8dd033ccec53a44b692c7e407d6266f

no initial comment

Pull-Request has been merged by smani

3 years ago