%global git_date 20240428 %global git_hash 455a019 %global git_ver 1.6.0 #As per CMakelists.txt %global rel 3 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: recastnavigation Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Recast is state of the art navigation mesh construction toolset for games License: Zlib URL: https://github.com/recastnavigation/recastnavigation Source: %{url}/%{src_name} BuildRequires: make cmake gcc-c++ %description Recast is state of the art navigation mesh construction toolset for games. %package devel Summary: Devel files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Devel files for %{name} %prep %autosetup -n %{name} %build %cmake -DRECASTNAVIGATION_DEMO=OFF -DRECASTNAVIGATION_TESTS=OFF -DRECASTNAVIGATION_EXAMPLES=OFF %cmake_build %install %cmake_install %files %doc README.md %license License.txt %{_libdir}/*.so.* %files devel %{_includedir}/%{name}/* %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/cmake/%{name}/* %changelog %autochangelog