%global git_date 20231231 %global git_hash fc18ed8 %global git_ver 1.6.0 #As per CMakelists.txt %global rel 1 %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} #Remember to check version upstream 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