Name: lacewing
Version: 1.10
Release: 23%{?dist}
Summary: Arcade-style shoot-em-up
Group: Amusements/Games
License: GPLv2+
URL: http://users.olis.net.au/zel/
Source0: http://users.olis.net.au/zel/lwsrc.zip
Source1: http://users.olis.net.au/zel/lwdata.zip
Source2: lacewing.desktop
Source3: lacewing.png
Patch0: lacewing.patch
Patch1: lacewing-fullscreen.patch
Patch2: lacewing-nicecpu.patch
Patch3: lacewing-warn.patch
Patch4: lacewing-format-security.patch
Patch5: lacewing-rhbz1045111.patch
BuildRequires: allegro-devel desktop-file-utils
Requires: hicolor-icon-theme
%description
Arcade-style shoot-em-up where you can choose a type of ship and depending on
the type of ship can pickup a number of upgrades during the game.
Lacewing is an arcade-style shoot-em-up which plays a little bit like a cross
between Spacewar and Centipede. It has a decidedly retro style to it. It has
a single-player mode, and also co-operative and duel modes for two players
(split-screen).
%prep
%setup -q -c
unzip -qqo %{SOURCE1}
%patch0 -p1 -z .unix
%patch1 -p1 -z .fullscreen
%patch2 -p1 -z .nicecpu
%patch3 -p1 -z .warn
%patch4 -p1
%patch5 -p1
sed -i 's/\r//' readme.txt licence.txt
chmod 644 readme.txt licence.txt
%build
make %{?_smp_mflags} PREFIX=%{_prefix} \
CFLAGS="$RPM_OPT_FLAGS -fsigned-char -Wno-deprecated-declarations"
%install
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install \
%if 0%{?fedora} && 0%{?fedora} < 19
--vendor fedora \
%endif
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE3} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%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 readme.txt licence.txt
%{_bindir}/lacewing
%{_datadir}/lacewing
%if 0%{?fedora} && 0%{?fedora} < 19
%{_datadir}/applications/fedora-lacewing.desktop
%else
%{_datadir}/applications/lacewing.desktop
%endif
%{_datadir}/icons/hicolor/48x48/apps/lacewing.png
%changelog
* Sat Jun 14 2014 Hans de Goede <hdegoede@redhat.com> - 1.10-23
- Fix building with -Werror=format-security (rhbz#1037151)
- Fix a crash (rhbz#1045111)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Mar 6 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.10-20
- Remove vendor prefix from desktop files in F19+ https://fedorahosted.org/fesco/ticket/1077
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> - 1.10-16
- Rebuild for new allegro-4.4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Feb 15 2010 Hans de Goede <hdegoede@redhat.com> 1.10-14
- Fix FTBFS (#564669)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Jan 30 2009 Hans de Goede <hdegoede@redhat.com> 1.10-11
- Update description for new trademark guidelines
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10-10
- Autorebuild for GCC 4.3
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-9
- Rebuild for buildId
* Sun Aug 12 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-8
- Update License tag for new Licensing Guidelines compliance
- Fix invalid desktop file (fix building with latest desktop-file-utils)
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-7
- FE6 Rebuild
* Thu Jul 6 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-6
- Rebuild against new allegro to remove executable stack requirement caused
by previous versions of allegro.
* Wed Mar 22 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-5
- Change fullscreen patch to not change to window / fullscreen untill
the menu is left.
- Fix all warnings.
* Mon Feb 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-4
- Bump release and rebuild for new gcc4.1 and glibc.
* Mon Jan 30 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-3
- Summary and Description text fixes (bz 178568)
* Sun Jan 22 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-2
- Some minor spec file cleanups (bz 178568):
- use %%{_prefix} instead of /usr
- use advised scriplets from the Wiki (use %%{_bindir}, || : )
- run sed on doc files to convert DOS line-ends to UNIX ones
- don't mark the default default settings file %%config as suggested
in comment 5
* Sat Jan 21 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.10-1
- Initial Fedora Extras package