## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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 forgeurl https://github.com/flareteam/flare-engine %global shortname flare Name: flare-engine Version: 1.14 Release: %autorelease %forgemeta Summary: A single player, 2D-isometric, action Role-Playing Engine # cmake/FindSDL2* is BSD-3-Clause # https://github.com/flareteam/flare-engine/commit/777b3da2179f3f39fa1b8afdd0cc284b2069d065 License: GPL-3.0-or-later AND BSD-3-Clause URL: http://www.flarerpg.org Source0: %{forgesource} Requires: font(liberationsans) # We would like to use `font(unifont)` here like above, but that's # ambigious and installs the package providing OTF (we need TTF) Requires: unifont-ttf-fonts BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(SDL2_mixer) BuildRequires: pkgconfig(SDL2_ttf) BuildRequires: desktop-file-utils BuildRequires: font(liberationsans) # We would like to use `font(unifont)` here like above, but that's # ambigious and installs the package providing OTF (we need TTF) BuildRequires: unifont-ttf-fonts %description Flare (Free Libre Action Roleplaying Engine) is a simple game engine built to handle a very specific kind of game: single-player 2D action RPGs. Flare is not a re-implementation of an existing game or engine. It is a tribute to and exploration of the action RPG genre. Rather than building a very abstract, robust game engine, the goal of this project is to build several real games and harvest an engine from the common, reusable code. The first game, in progress, is a fantasy dungeon crawl. Flare uses simple file formats (INI style config files) for most of the game data, allowing anyone to easily modify game contents. Open formats are preferred (png, ogg). The game code is C++. This package contains the engine only. %prep %setup -q -n %{name}-%{version} %build %cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBINDIR="bin" -DDATADIR="share/%{shortname}/" %cmake_build %install %cmake_install # Use system fonts rm %{buildroot}%{_datadir}/%{shortname}/mods/default/fonts/LiberationSans-Regular.ttf # Conditional can be removed one F40 goes EOL %if %{fedora} >= 41 ln -s %{_datadir}/fonts/liberation-sans-fonts/LiberationSans-Regular.ttf %{buildroot}%{_datadir}/%{shortname}/mods/default/fonts/LiberationSans-Regular.ttf %else ln -s %{_datadir}/fonts/liberation-sans/LiberationSans-Regular.ttf %{buildroot}%{_datadir}/%{shortname}/mods/default/fonts/LiberationSans-Regular.ttf %endif # slightly wrong version number, but should be fine, past releases shipped without it at all rm %{buildroot}%{_datadir}/%{shortname}/mods/default/fonts/unifont-10.0.06.ttf ln -s %{_datadir}/fonts/unifont/unifont.ttf %{buildroot}%{_datadir}/%{shortname}/mods/default/fonts/unifont-10.0.06.ttf LEFT_FONT_FILES=$(find %{buildroot}%{_datadir}/%{shortname}/ -type f -name "*.ttf" -o -name "*.otf") if [ -n "$LEFT_FONT_FILES" ] then echo "Found remaining (non-symlinked) fonts: $LEFT_FONT_FILES" 1>&2 echo "Failing build!" 1>&2 exit 1 fi BROKEN_SYMLINKS=$(find %{buildroot}%{_datadir}/%{shortname}/ -type l ! -exec test -e {} \; -print) if [ -n "$BROKEN_SYMLINKS" ] then echo "Found broken symlinks: $BROKEN_SYMLINKS" 1>&2 echo "Failing build!" 1>&2 exit 1 fi # Validate desktop file desktop-file-validate %{buildroot}/%{_datadir}/applications/%{shortname}.desktop %files %doc README.engine.md CREDITS.engine.txt RELEASE_NOTES.txt %license COPYING %{_bindir}/%{shortname} %{_datadir}/%{shortname}/ %{_datadir}/applications/%{shortname}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{shortname}.svg %{_mandir}/man6/%{shortname}.6* %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 1.14-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 21 2024 Sandro - 1.14-9 - Guard font path change * Fri Jun 21 2024 Sandro - 1.14-8 - Use more resiliant BRs * Fri Jun 21 2024 Sandro - 1.14-7 - Fix font symlinks / packages * Wed Jan 24 2024 Fedora Release Engineering - 1.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Mar 16 2023 Zbigniew Jędrzejewski-Szmek - 1.14-3 - Update font dependency to unifont-ttf-fonts * Thu Jan 19 2023 Fedora Release Engineering - 1.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 14 2022 Sandro - 1.14-1 - Update to version 1.14 (RHBZ#2152456) - Use %%{forgesource} - License update and SPDX migration * Thu Aug 25 2022 Sandro - 1.13.04-2 - Fixed issues in spec file * Mon Aug 22 2022 Sandipan Roy - 1.13.04-1 - Update to 1.13.04 * Thu Jul 21 2022 Fedora Release Engineering - 1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jan 31 2022 Justin Jacobs - 1.13-1 - Update to 1.13 * Thu Jan 20 2022 Fedora Release Engineering - 1.07-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.07-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.07-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 1.07-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.07-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.07-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Sep 09 2018 Erik Schilling - 1.07-1 - Updated to 1.07 * Fri Jul 13 2018 Fedora Release Engineering - 0.19-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.19-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.19-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.19-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 0.19-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.19-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.19-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.19-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.19-4 - Rebuilt for GCC 5 C++11 ABI change * Wed Aug 06 2014 Erik Schilling - 0.19-3 - Added -print to find call * Wed Jul 30 2014 Erik Schilling - 0.19-2 - Actually apply system gfx patch - Disallow the project to override environment compiler flags - Delete bundeled ttf and use symlink - Added missing mail address to changelog * Sat Mar 01 2014 Erik Schilling - 0.19-1 - Seperated out engine into a seperate package like upstream did - Previously this engine was part of the flare package ## END: Generated by rpmautospec