147 lines
5.6 KiB
RPMSpec
147 lines
5.6 KiB
RPMSpec
Name: worminator
|
|
Version: 3.0R2.1
|
|
Release: 24%{?dist}
|
|
Summary: Sidescrolling platform and shoot'em up action-game
|
|
Group: Amusements/Games
|
|
License: GPLv2+
|
|
URL: http://sourceforge.net/projects/worminator/
|
|
Source0: http://downloads.sourceforge.net/worminator/worminator-%{version}.tar.gz
|
|
Source1: worminator.png
|
|
Source2: worminator.desktop
|
|
Patch0: worminator-3.0R2.1-speed.patch
|
|
Patch1: worminator-3.0R2.1-format-security.patch
|
|
BuildRequires: allegro-devel, desktop-file-utils
|
|
Requires: worminator-data >= 3.0R2.1-2, hicolor-icon-theme
|
|
|
|
%description
|
|
You play as The Worminator and fight your way through many levels of madness
|
|
and mayhem. Worminator features nine unique weapons, visible character damage,
|
|
full screen scrolling, sound and music, and much more!
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -z .speed
|
|
%patch1 -p1
|
|
sed -i 's/\r//' ReadMe.txt
|
|
|
|
|
|
%build
|
|
gcc $RPM_OPT_FLAGS -fsigned-char -Wno-deprecated-declarations \
|
|
-Wno-char-subscripts -DDATADIR=\"%{_datadir}/%{name}/\" -o %{name} \
|
|
Worminator.c `allegro-config --libs` -lm
|
|
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
install -p -m 0755 %{name} $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
|
|
desktop-file-install \
|
|
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
%{SOURCE2}
|
|
|
|
|
|
%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 changes.unix license.txt license-change.txt
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/worminator.desktop
|
|
%{_datadir}/icons/hicolor/32x32/apps/worminator.png
|
|
|
|
|
|
%changelog
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0R2.1-24
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0R2.1-23
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-22
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-21
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Tue Jun 17 2014 Hans de Goede <hdegoede@redhat.com> 3.0R2.1-20
|
|
- Fix FTBFS (rhbz#1037387)
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 3.0R2.1-17
|
|
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
|
|
- Cleanup spec as per recently changed packaging guidelines
|
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> - 3.0R2.1-14
|
|
- Rebuild for new allegro-4.4
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Feb 22 2010 Hans de Goede <hdegoede@redhat.com> 3.0R2.1-12
|
|
- Limit max framerate to 30 fps (fixes some sound issues)
|
|
- Fix FTBFS (#564902)
|
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0R2.1-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 3.0R2.1-9
|
|
- Fix Patch0:/%%patch mismatch.
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0R2.1-8
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-7
|
|
- Rebuild for buildId
|
|
|
|
* Sun Aug 12 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-6
|
|
- Update License tag for new Licensing Guidelines compliance
|
|
- Fix invalid desktop file (fix building with latest desktop-file-utils)
|
|
|
|
* Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-5
|
|
- FE6 Rebuild
|
|
|
|
* Thu Jul 6 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-4
|
|
- Rebuild against new allegro to remove executable stack requirement caused
|
|
by previous versions of allegro.
|
|
|
|
* Mon Apr 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-3
|
|
- Limit the framerate to 80 instead of trying to reach 160 fps,
|
|
hopefully this fixes bug 188337.
|
|
|
|
* Tue Mar 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-2
|
|
- move worminator data dir from /usr/share/games to just /usr/share to match
|
|
the games-SIG guidelines. Sorry about the somewhat large download for
|
|
effectivly no changes, but I wanted to make this change before FC5 release.
|
|
|
|
* Sat Mar 4 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0R2.1-1
|
|
- initial Fedora Extras package
|
|
- loosely based on the SRPM from Cru:
|
|
http://naturidentisch.de/packages/fc4/worminator/
|