%global git_date 20250310 %global git_hash 82f08ce3 # Version in CMakeLists.txt %global git_ver 1.7.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: CelestiaContent Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Data files for Celestia space simulator License: GPL-2.0-only URL: https://github.com/CelestiaProject/CelestiaContent Source: %{url}/%{src_name} BuildArch: noarch #Remember to check version upstream BuildRequires: make cmake gcc BuildRequires: gettext-devel %description Data files for Celestia space simulator %prep %autosetup -n %{name} %build %cmake %cmake_build %install %cmake_install %files %doc README %license LICENSE.md %{_datadir}/celestia/* %{_datadir}/locale/* %changelog %autochangelog