Name: flyingsaucersattack Version: 1.20h Release: 3%{?dist} Summary: Shoot down the attacking UFOs and to save the city Group: Amusements/Games # Engine is MIT, resources are CC-BY-SA-4.0 License: MIT and CC-BY-SA URL: http://www.dennisbusch.de/fsa.php Source0: http://www.dennisbusch.de/software/fsa/fuga120h.zip Source1: %{name}.png Source2: %{name}.desktop Source3: %{name}.appdata.xml # Note upstream is not interested in taking unix porting patches Patch0: flyingsaucersattack-1.20h-unixify.patch BuildRequires: allegro-devel dumb-devel desktop-file-utils libappstream-glib Requires: hicolor-icon-theme %description F.S.A. (Flying Saucers Attack) aka F.U.G.A. (Fliegende Untertassen greifen an) is a kind of mixture between two old Atari2600 games. It comes in German and English language. You'll see a screen with your city that you have to save against 30 Alien attack waves in three different difficulty levels. You shoot attacking UFOs with two cannons positioned at the left and right borders of the screen. The UFOs will first bomb away all your buildings then send in little green men to dig tunnels to blow your cannons which results in a game over. %prep %setup -q -n fuga120h %patch0 -p1 -b .unix for i in docs/*; do sed -i 's/\r//' $i; done %build # Note -Wno-format-security is to work around the custom translation system # All format strings passed to printf are actually const strings %make_build -C sources \ CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-deprecated -Wno-write-strings -Wno-unused-result -Wno-format-security" %install %make_install -C sources # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps install -p -m 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc docs/* %license LICENSE.txt %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %changelog * Wed Dec 14 2016 Hans de Goede - 1.20h-3 - Minor specfile cleanups (rhbz#1303349) * Sat Feb 27 2016 Hans de Goede - 1.20h-2 - Fix a few spelling errors in the description (rhbz#1303349) - Fix gcc6 compiler warnings * Sat Jan 30 2016 Hans de Goede - 1.20h-1 - Initial Fedora package