## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec #%%global gittag 1.7.0 %global commit db53ae319ffc06d2d6fe92d2b65d210fdae7bd67 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20231125 # Disable debuginfo generation, no executable or library is built %global debug_package %{nil} Name: celestia-data %if "%{?gittag}" Version: 1.7.0 %else # This is a really dirty hack to overcome a wrong update path due to git commit hash # previously applied without '.git'. # I don't want to bump Epoch, so I'm going to add a leading '3' before %%{date} # until version 1.7.0 is finally released. Version: 1.7.0~3%{date}.git%{shortcommit} %endif Release: %autorelease Summary: Data, models and textures for Celestia # An accurate description of content licensing is available in the README file License: GPL-2.0-or-later AND CC-BY-SA-4.0 AND JPL-image URL: https://celestiaproject.space/ %if "%{?gittag}" Source0: https://github.com/CelestiaProject/CelestiaContent/archive/%{gittag}/CelestiaContent-%{version}.tar.gz %else Source0: https://github.com/CelestiaProject/CelestiaContent/archive/%{commit}/CelestiaContent-%{commit}.tar.gz %endif BuildArch: noarch BuildRequires: cmake BuildRequires: gettext-devel Requires: celestia-common > 1.6.2 %description This package provides the required data files, spacecraft models and planet textures for Celestia to work. %prep %if "%{?gittag}" %autosetup -p1 %else %autosetup -n CelestiaContent-%{commit} -p1 %endif %build %cmake %cmake_build %install %cmake_install %find_lang %{name} --all-name %files -f %{name}.lang %doc README %license COPYING %{_datadir}/celestia/data %{_datadir}/celestia/extras-standard %{_datadir}/celestia/models %{_datadir}/celestia/textures %{_datadir}/celestia/warp %changelog ## START: Generated by rpmautospec * Tue Jan 23 2024 Fedora Release Engineering - 1.7.0~320231125.gitdb53ae3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.7.0~320231125.gitdb53ae3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Nov 25 2023 Mattia Verga - 1.7.0~320231125.gitdb53ae3-1 - Update to latest snapshot * Sun Aug 13 2023 Mattia Verga - 1.7.0~320230812.git4b07c07-1 - Hack to fix upgrade path due to wrong minor release * Sat Aug 12 2023 Mattia Verga - 1.7.0~202308124b07c07-1 - Update data files * Wed Jul 19 2023 Fedora Release Engineering - 1.7.0~20230223ffc806d-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Mattia Verga - 1.7.0~20230223ffc806d-3 - Update URL to new domain name * Fri Mar 17 2023 Mattia Verga - 1.7.0~20230223ffc806d-2 - Change requires to celestia-common * Sun Mar 05 2023 Mattia Verga - 1.7.0~20230223ffc806d-1 - Initial import (fedora#2150240) ## END: Generated by rpmautospec