diff --git a/eigen-3.3.8.tar.bz2 b/eigen-3.3.8.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..1b8b46cbd6697212ec895f828096ad4178649377 Binary files /dev/null and b/eigen-3.3.8.tar.bz2 differ diff --git a/eigen3.spec b/eigen3.spec new file mode 100644 index 0000000000000000000000000000000000000000..fecea45191a0db6708934bfcbb9f941a5ffb2ce8 --- /dev/null +++ b/eigen3.spec @@ -0,0 +1,55 @@ +%global debug_package %{nil} + +Name: eigen3 +Version: 3.3.8 +Release: 1 +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: http://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 +mkdir build_dir +pushd build_dir +%cmake ../ -DINCLUDE_INSTALL_DIR=include/%{name} +popd + +%install +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 feb 21 2023 syzhaok - 3.3.8-1 +- package init +