adapt to CMake macro changes in fedora 33+
This commit is contained in:
parent
4a4abb21cb
commit
d04a718ce4
37
eigen3.spec
37
eigen3.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.3.7
|
Version: 3.3.7
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: A lightweight C++ template library for vector and matrix math
|
Summary: A lightweight C++ template library for vector and matrix math
|
||||||
|
|
||||||
License: MPLv2.0 and LGPLv2+ and BSD
|
License: MPLv2.0 and LGPLv2+ and BSD
|
||||||
@ -72,32 +72,30 @@ Developer documentation for Eigen.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir %{_target_platform}
|
%cmake \
|
||||||
pushd %{_target_platform}
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
||||||
%cmake .. -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \
|
-DBLAS_LIBRARIES="cblas" \
|
||||||
-DBLAS_LIBRARIES="cblas" \
|
-DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
|
||||||
-DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
|
-DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
|
||||||
-DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
|
-DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
|
||||||
-DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
|
-DCMAKEPACKAGE_INSTALL_DIR=%{_datadir}/%{name}
|
||||||
-DCMAKEPACKAGE_INSTALL_DIR=%{_datadir}/%{name}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%make_build -C %{_target_platform}
|
%cmake_build
|
||||||
%make_build doc -C %{_target_platform}
|
%cmake_build --target doc
|
||||||
|
|
||||||
rm -f %{_target_platform}/doc/html/installdox
|
rm -f %{_vpath_builddir}/doc/html/installdox
|
||||||
rm -f %{_target_platform}/doc/html/unsupported/installdox
|
rm -f %{_vpath_builddir}/doc/html/unsupported/installdox
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C %{_target_platform}
|
%cmake_install
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Run tests but make failures non-fatal. Note that upstream doesn't expect the
|
# Run tests but make failures non-fatal. Note that upstream doesn't expect the
|
||||||
# tests to pass consistently since they're seeded randomly.
|
# tests to pass consistently since they're seeded randomly.
|
||||||
#make_build buildtests -C %{_target_platform}
|
#cmake_build --target buildtests
|
||||||
#make_build test -C %{_target_platform} test ARGS="-V" || :
|
#cmake_build --target test -- test ARGS="-V" || :
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -108,10 +106,13 @@ rm -f %{_target_platform}/doc/html/unsupported/installdox
|
|||||||
%{_datadir}/cmake/Modules/*.cmake
|
%{_datadir}/cmake/Modules/*.cmake
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{_target_platform}/doc/html
|
%doc %{_vpath_builddir}/doc/html
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.7-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user