eigen/eigen3.spec

62 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-12-01 15:14:58 +08:00
%global debug_package %{nil}
Name: eigen3
Version: 3.3.8
2022-03-18 09:39:35 +08:00
Release: 3
2020-12-01 15:14:58 +08:00
Summary: A lightweight C++ template library for vector and matrix math
License: MPLv2.0 and LGPLv2+ and BSD
URL: http://eigen.tuxfamily.org/index.php?title=Main_Page
Source0: https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: doxygen
%description
%{summary}.
%package devel
Summary: A lightweight C++ template library for vector and matrix math
BuildArch: noarch
# -devel subpkg only atm, compat with other distros
Provides: %{name} = %{version}-%{release}
# not *strictly* a -static pkg, but the results are the same
Provides: %{name}-static = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -p1 -n eigen-%{version}
%build
2022-03-18 09:39:35 +08:00
mkdir build_dir
pushd build_dir
%cmake ../ -DINCLUDE_INSTALL_DIR=include/%{name}
popd
2020-12-01 15:14:58 +08:00
%install
2022-03-18 09:39:35 +08:00
mkdir -p %{buildroot}%{_includedir}/%{name}/
cp -r unsupported %{buildroot}%{_includedir}/%{name}/
cp -r Eigen %{buildroot}%{_includedir}/%{name}/
%make_install -C build_dir
2020-12-01 15:14:58 +08:00
%files devel
%license COPYING.README COPYING.BSD COPYING.MPL2 COPYING.LGPL
2021-03-27 17:58:23 +08:00
%defattr(0644, root, root, 0755)
2020-12-01 15:14:58 +08:00
%{_includedir}/%{name}
2022-03-18 09:39:35 +08:00
%{_datadir}
2020-12-01 15:14:58 +08:00
%changelog
2022-03-18 09:39:35 +08:00
* Fri Apr 15 2022 tanyulong <tanyulong@kylinos.cn> - 3.3.8-3
- fix cmake build error
2021-03-27 17:58:23 +08:00
* Sat Mar 27 2021 herengui <herengui@uniontech.com> - 3.3.8-2
- fix empty include directory issue
2020-12-01 15:14:58 +08:00
* Tue Dec 1 2020 hubble_zhu<hubble_zhu@qq.com> - 3.3.8-1
- package init