!7 fix cmake build error

From: @tanyulong2021 
Reviewed-by: @small_leek, @sinever 
Signed-off-by: @small_leek, @sinever
This commit is contained in:
openeuler-ci-bot 2022-05-21 15:15:23 +00:00 committed by Gitee
commit 00c8ceea71
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 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
- fix empty include directory issue