!6 fix cmake build error
From: @tanyulong2021 Reviewed-by: @small_leek, @yangzhao_kl, @sinever Signed-off-by: @small_leek, @yangzhao_kl, @sinever
This commit is contained in:
commit
7fb7439723
17
eigen3.spec
17
eigen3.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: eigen3
|
||||
Version: 3.3.8
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A lightweight C++ template library for vector and matrix math
|
||||
|
||||
License: MPLv2.0 and LGPLv2+ and BSD
|
||||
@ -33,17 +33,26 @@ Provides: %{name}-static = %{version}-%{release}
|
||||
%autosetup -p1 -n eigen-%{version}
|
||||
|
||||
%build
|
||||
mkdir build_dir
|
||||
pushd build_dir
|
||||
%cmake ../ -DINCLUDE_INSTALL_DIR=include/%{name}
|
||||
popd
|
||||
|
||||
%install
|
||||
install -d -p -m 0755 %{buildroot}%{_includedir}/%{name}
|
||||
cp -r Eigen unsupported %{buildroot}%{_includedir}/%{name}/
|
||||
mkdir -p %{buildroot}%{_includedir}/%{name}/
|
||||
cp -r unsupported %{buildroot}%{_includedir}/%{name}/
|
||||
cp -r Eigen %{buildroot}%{_includedir}/%{name}/
|
||||
%make_install -C build_dir
|
||||
|
||||
%files devel
|
||||
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
|
||||
%defattr(0644, root, root, 0755)
|
||||
%{_includedir}/%{name}
|
||||
|
||||
%{_datadir}
|
||||
%changelog
|
||||
* Fri Mar 18 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
|
||||
- fix empty include directory issue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user