!3 devel包空目录,依赖eigen编译的包无法找到头文件

From: @reganhe_xx
Reviewed-by: @hubble_zhu
Signed-off-by: @hubble_zhu
This commit is contained in:
openeuler-ci-bot 2021-03-29 12:28:50 +08:00 committed by Gitee
commit 29678e61c4

View File

@ -2,7 +2,7 @@
Name: eigen3
Version: 3.3.8
Release: 1%{?dist}
Release: 2
Summary: A lightweight C++ template library for vector and matrix math
License: MPLv2.0 and LGPLv2+ and BSD
@ -35,17 +35,18 @@ Provides: %{name}-static = %{version}-%{release}
%build
%install
install -p -d Eigen %{buildroot}/%{_includedir}/%{name}
%files
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
%{_includedir}/%{name}
install -d -p -m 0755 %{buildroot}%{_includedir}/%{name}
cp -r Eigen unsupported %{buildroot}%{_includedir}/%{name}/
%files devel
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
%defattr(0644, root, root, 0755)
%{_includedir}/%{name}
%changelog
* Sat Mar 27 2021 herengui <herengui@uniontech.com> - 3.3.8-2
- fix empty include directory issue
* Tue Dec 1 2020 hubble_zhu<hubble_zhu@qq.com> - 3.3.8-1
- package init