!7 fix cmake build error
From: @tanyulong2021 Reviewed-by: @small_leek, @sinever Signed-off-by: @small_leek, @sinever
This commit is contained in:
commit
00c8ceea71
17
eigen3.spec
17
eigen3.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.3.8
|
Version: 3.3.8
|
||||||
Release: 2
|
Release: 3
|
||||||
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
|
||||||
@ -33,17 +33,26 @@ Provides: %{name}-static = %{version}-%{release}
|
|||||||
%autosetup -p1 -n eigen-%{version}
|
%autosetup -p1 -n eigen-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
mkdir build_dir
|
||||||
|
pushd build_dir
|
||||||
|
%cmake ../ -DINCLUDE_INSTALL_DIR=include/%{name}
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -p -m 0755 %{buildroot}%{_includedir}/%{name}
|
mkdir -p %{buildroot}%{_includedir}/%{name}/
|
||||||
cp -r Eigen unsupported %{buildroot}%{_includedir}/%{name}/
|
cp -r unsupported %{buildroot}%{_includedir}/%{name}/
|
||||||
|
cp -r Eigen %{buildroot}%{_includedir}/%{name}/
|
||||||
|
%make_install -C build_dir
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
|
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
|
||||||
%defattr(0644, root, root, 0755)
|
%defattr(0644, root, root, 0755)
|
||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
|
%{_datadir}
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 15 2022 tanyulong <tanyulong@kylinos.cn> - 3.3.8-3
|
||||||
|
- fix cmake build error
|
||||||
|
|
||||||
* Sat Mar 27 2021 herengui <herengui@uniontech.com> - 3.3.8-2
|
* Sat Mar 27 2021 herengui <herengui@uniontech.com> - 3.3.8-2
|
||||||
- fix empty include directory issue
|
- fix empty include directory issue
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user