%global commit 894fcb48e5de900229ceb5707a13932916aa203a %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20260312 %global debug_package %{nil} Name: openabf Version: 2.0.0^%{commitdate}git%{shortcommit} Release: %autorelease Summary: A single-header C++ library of angle-based flattening algorithms License: Apache-2.0 URL: https://gitlab.com/educelab/OpenABF Source: %{url}/-/archive/%{commit}/OpenABF-%{shortcommit}.tar.gz Patch1: tests-use-system-gtest.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: eigen3-devel BuildRequires: doxygen BuildRequires: gtest-devel BuildRequires: gmock-devel BuildRequires: perl BuildRequires: git %package devel Summary: Development files for %{name} Provides: openabf-static = %{version}-%{release} BuildArch: noarch %package doc Summary: Documentation for %{name} BuildArch: noarch %description OpenABF is a single-header C++ library of angle-based flattening algorithms. The template interface is designed for simple out-of-the-box use, and integration with existing geometric processing pipelines is quick and easy. %description devel Development and header files for OpenABF. %description doc Documentation for OpenABF using doxygen. %prep %autosetup -n OpenABF-%{commit} -p1 %build %cmake \ -DOPENABF_BUILD_DOCS=ON \ -DOPENABF_BUILD_TESTS=ON %cmake_build %cmake_build --target docs %install %cmake_install install -m 644 -d %{_vpath_builddir}/docs/html/ %{buildroot}%{_docdir}/%{name}/html/ %check %ctest %files %license LICENSE %doc README.md %files devel %doc README.md %license LICENSE %{_includedir}/OpenABF/OpenABF.hpp %{_libdir}/cmake/OpenABF/ %files doc %doc README.md %license LICENSE %{_docdir}/%{name}/html/ %changelog %autochangelog