%define game pioneer Name: pioneerspacesim Version: 20170415 Release: %mkrel 1 Summary: Pioneer - A game of lonely space adventure License: GPLv3 and CC BY-SA 3.0 Group: Games/Strategy URL: http://www.pioneerspacesim.net # Repacked with LZMA to gain ~20 percent size # https://github.com/pioneerspacesim/pioneer Source0: %{name}-%{version}.tar.xz BuildRequires: pkgconfig(assimp) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(lua) >= 5.2 BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(sigc++-2.0) BuildRequires: pkgconfig(vorbis) Requires: %{name}-data >= %{version} %description Pioneer is a space adventure game set in our galaxy at the turn of the 31st century. The game is open-ended, and you are free to eke out whatever kind of space-faring existence you can think of. Look for fame or fortune by exploring the millions of star systems. Turn to a life of crime as a pirate, smuggler or bounty hunter. Forge and break alliances with the various factions fighting for power, freedom or self-determination. The universe is whatever you make of it. %package data Summary: Data files for the Pioneer game BuildArch: noarch %description data This package contains arch-independent data files for the Pioneer game. %prep %setup -q %build autoreconf -vfi %configure2_5x --bindir=%{_gamesbindir} \ --with-external-liblua \ PIONEER_DATA_DIR=%{_gamesdatadir}/%{name} \ CFLAGS="%{optflags}" \ CXXFLAGS="%{optflags}" %make_build %install %make_install install -D -m644 data/icons/badge32-8b.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png install -D -m644 data/icons/badge.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png cat > %{name}.desktop << EOF [Desktop Entry] Name=Pioneer Comment=A game of lonely space adventure Comment[fr]=Un jeu d'aventure spatiale solitaire Exec=%{game} Icon=%{name} StartupNotify=false Terminal=false Type=Application Categories=Game;Simulation; EOF install -D -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %files %doc AUTHORS.txt Changelog.txt README.md %{_datadir}/applications/%{name}.desktop %{_gamesbindir}/%{game} %{_gamesbindir}/modelcompiler %{_iconsdir}/hicolor/*/apps/%{name}.png %files data %{_gamesdatadir}/%{name}/ %changelog * Wed Apr 26 2017 akien <akien> 20170415-1.mga6 + Revision: 1097637 - Version 20170415 * Sun Mar 05 2017 akien <akien> 20170304-1.mga6 + Revision: 1088744 - Version 20170304 * Sat Oct 29 2016 akien <akien> 20161028-1.mga6 + Revision: 1063922 - Version 20161028 * Sat May 28 2016 akien <akien> 20160525-1.mga6 + Revision: 1019259 - Version 20160525 * Sat Jan 09 2016 akien <akien> 20160106-1.mga6 + Revision: 920737 - Version 20160106 * Tue Feb 03 2015 akien <akien> 20150201-1.mga5 + Revision: 813242 - Version 20150201 - Move data to a noarch data package * Wed Oct 15 2014 umeabot <umeabot> 20140908-3.mga5 + Revision: 747591 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 20140908-2.mga5 + Revision: 687603 - Mageia 5 Mass Rebuild * Mon Sep 08 2014 akien <akien> 20140908-1.mga5 + Revision: 673806 - Version 20140908 * Sat Jun 07 2014 akien <akien> 20140528-1.mga5 + Revision: 634302 - imported package pioneerspacesim