%global git_date 20230628 %global git_hash 90ecffab # 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 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 COPYING %{_datadir}/celestia/* %{_datadir}/locale/* %changelog %autochangelog