Name: flare Version: 0.19 Release: 7%{?dist} Summary: A single player, 2D-isometric, action Role-Playing Game License: CC-BY-SA and CC-BY and CC0 and Public Domain URL: http://www.flarerpg.org Source0: http://downloads.sourceforge.net/project/%{name}-game/Linux/%{name}-game.%{version}.tar.gz # unifont is not packaged in Fedora. So I use Dejavu. Patch0: %{name}-font-replace.patch # Desktop file was broken in release Patch1: %{name}-desktop-file-fix.patch # Remove the TryExec args in desktop file Patch2: %{name}-desktop-tryexec-fix.patch Requires: %{name}-engine%{?_isa} = %{version} Requires: dejavu-sans-fonts Requires: liberation-sans-fonts Obsoletes: %{name}-data <= 0.18 BuildRequires: cmake BuildRequires: desktop-file-utils BuildArch: noarch %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 configuration 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++. %prep %setup -q -n %{name}-game.%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 # Remove scripts that are not needed in installation rm -f mods/*/languages/readme.txt rm -f mods/*/languages/xgettext.py* # Remove .DS_Store files find -name "*.DS_Store" -delete # Other unclean leftovers rm -f mods/fantasycore/engine/._xp_table.txt # Empty file in release (rpmlint bugs about it) rm -f mods/fantasycore/items/sets.txt %build # Do not use /usr/games or /usr/share/games/ %cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBINDIR="bin" -DDATADIR="share/%{name}/" . make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} # Use system font find %{buildroot}%{_datadir}/%{name}/%{name}-game/ -name "*.ttf" -delete -print ln -s %{_datadir}/fonts/dejavu/DejaVuSans.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/DejaVuSans.ttf ln -s %{_datadir}/fonts/liberation/LiberationSans-Bold.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/LiberationSans-Bold.ttf ln -s %{_datadir}/fonts/liberation/LiberationSans-Italic.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/LiberationSans-Italic.ttf ln -s %{_datadir}/fonts/liberation/LiberationSans-Regular.ttf %{buildroot}%{_datadir}/%{name}/%{name}-game/mods/fantasycore/fonts/LiberationSans-Regular.ttf # Register as an application to be visible in the software center # # NOTE: It would be *awesome* if this file was maintained by the upstream # project, translated and installed into the right place during `make install`. # # See http://www.freedesktop.org/software/appstream/docs/ for more details. # mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < flare.desktop CC0-1.0 Dark fantasy world 2D RPG

Single-player 2D RPG Flare brings to you a dark fantasy world, action, items and equipments.

Built using Flare engine, a engine made especially for 2d RPG games.

http://www.flarerpg.org http://www.flarerpg.org/images/screenshots/0047.jpg http://www.flarerpg.org/images/screenshots/0048.jpg http://www.flarerpg.org/images/screenshots/0049.jpg http://www.flarerpg.org/images/screenshots/0050.jpg http://www.flarerpg.org/images/screenshots/0051.jpg http://www.flarerpg.org/images/screenshots/0052.jpg
EOF # Validate desktop file desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc README CREDITS.txt RELEASE_NOTES.txt %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg # only language folder starts with 'l' %{_datadir}/%{name}/%%{name}-game/mods/*/[!l]* %{_datadir}/%{name}/%{name}-game/mods/mods.txt # grab info files about locales too %{_datadir}/%{name}/%{name}-game/mods/*/languages/*[!o] %dir %{_datadir}/%{name}/%{name}-game/ %dir %{_datadir}/%{name}/%{name}-game/mods/*/ %dir %{_datadir}/%{name}/%{name}-game/mods/*/languages/ # LOCALES: # For updating (replace %% with single one): # find -name "*.po" | sed 's/^.\(.*[a-z]\+\.\)\(..\)\.po/%%lang(\2) %%{_datadir}\/%%{name}\/%%{name}-game\1\2.po/' | sort %lang(cs) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.cs.po %lang(cs) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.cs.po %lang(de) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.de.po %lang(de) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.de.po %lang(el) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.el.po %lang(el) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.el.po %lang(fi) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.fi.po %lang(fi) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.fi.po %lang(fr) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.fr.po %lang(fr) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.fr.po %lang(gd) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.gd.po %lang(gd) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.gd.po %lang(gl) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.gl.po %lang(gl) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.gl.po %lang(it) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.it.po %lang(it) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.it.po %lang(ja) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.ja.po %lang(ja) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.ja.po %lang(nb) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.nb.po %lang(nb) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.nb.po %lang(nl) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.nl.po %lang(nl) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.nl.po %lang(pl) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.pl.po %lang(pl) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.pl.po %lang(ru) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.ru.po %lang(ru) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.ru.po %lang(sv) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.sv.po %lang(sv) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.sv.po %lang(uk) %{_datadir}/%{name}/%{name}-game/mods/alpha_demo/languages/data.uk.po %lang(uk) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.uk.po %lang(zh) %{_datadir}/%{name}/%{name}-game/mods/fantasycore/languages/data.zh.po %changelog * 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 * Thu Mar 26 2015 Richard Hughes - 0.19-4 - Add an AppData file for the software center * Tue Sep 2 2014 Marcos Paulo de Souza - 0.19-3 - Fixed desktop file by removing TryExec args * Wed Aug 20 2014 Erik Schilling - 0.19-2 - Fixed cmake dependency * Tue Aug 19 2014 Erik Schilling 0.19-1 - New release - Splitted out engine code into flare-engine package * Sat Aug 16 2014 Fedora Release Engineering - 0.18-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 13 2014 Hans de Goede - 0.18-5 - Rebuild for new SDL_gfx * Sat Jun 07 2014 Fedora Release Engineering - 0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Apr 1 2013 Erik Schilling 0.18-2 - Adapted to the newly updated release tar - Since the old one was kind of broken and incomplete a new one was generated * Mon Apr 1 2013 Erik Schilling 0.18-1 - New upstream release - Breaks compatibillity with old save files * Wed Feb 13 2013 Fedora Release Engineering - 0.17.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 13 2012 Erik Schilling 0.17.1-8 - Simplified directiory permissions * Mon Nov 12 2012 Erik Schilling 0.17.1-7 - Fixed directory ownership * Sun Nov 11 2012 Erik Schilling 0.17.1-6 - Spell-fix: reimplementation --> re-implementation - Mark translation files with %%lang * Fri Nov 02 2012 Erik Schilling 0.17.1-5 - Dropped / between path makros - Made use of %%{name} makro in Source1 - Made sure that the binary links against system SDL_gfx parts - Replaced unifont use with dejavu since the font was not packaged * Thu Oct 25 2012 Erik Schilling 0.17.1-4 - Fixed require of binaries in -data package - Fixed update icon cache - Fixed trailing slash of url - Fixed license from GPLv3 to GPLv3+ * Sat Oct 6 2012 Erik Schilling 0.17.1-3 - Do not install to /usr/share/games but /usr/share (https://fedoraproject.org/wiki/SIGs/Games/Packaging) * Sat Oct 6 2012 Erik Schilling 0.17.1-2 - Added BuildArch: noarch for data package * Fri Oct 5 2012 Erik Schilling 0.17.1-1 - Initial packaging