|
|
eca1ab0 |
Name: abuse
|
|
|
de1a8bd |
Version: 0.7.1
|
|
|
de1a8bd |
Release: 1%{?dist}
|
|
|
eca1ab0 |
Summary: The classic Crack-Dot-Com game
|
|
|
eca1ab0 |
Group: Amusements/Games
|
|
|
de1a8bd |
License: GPLv2+
|
|
|
de1a8bd |
URL: http://abuse.zoy.org/
|
|
|
de1a8bd |
# no URL, as downloading requires a parameter, this file is:
|
|
|
de1a8bd |
# http://abuse.zoy.org/attachment/wiki/Downloads/abuse-0.7.1.tar.gz?format=raw
|
|
|
de1a8bd |
Source0: %{name}-%{version}.tar.gz
|
|
|
eca1ab0 |
Patch1: abuse_sdl-0.7.0-fixes.patch
|
|
|
86946de |
Patch2: abuse_sdl-0.7.0-exit-intro-crash.patch
|
|
|
eca1ab0 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
7a89e87 |
BuildRequires: SDL-devel alsa-lib-devel libGLU-devel
|
|
|
de1a8bd |
# abuse-data >= 0.7.1 as the included desktop files needs to be updated for the
|
|
|
de1a8bd |
# fact thar out binary was renamed from abuse.sdl to just abuse
|
|
|
de1a8bd |
Requires: abuse-data >= 0.7.1, hicolor-icon-theme
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%description
|
|
|
eca1ab0 |
This is the SDL version of Abuse, the classic Crack-Dot-Com game. It can run in
|
|
|
eca1ab0 |
a window or fullscreen and it has stereo sound with sound panning.
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%prep
|
|
|
de1a8bd |
%setup -q
|
|
|
eca1ab0 |
%patch1 -p1 -z .fix
|
|
|
86946de |
%patch2 -p1 -z .intro
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%build
|
|
|
eca1ab0 |
%configure
|
|
|
eca1ab0 |
make %{?_smp_mflags}
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%install
|
|
|
eca1ab0 |
rm -rf $RPM_BUILD_ROOT
|
|
|
eca1ab0 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
eca1ab0 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
|
eca1ab0 |
mv $RPM_BUILD_ROOT%{_datadir}/games/%{name}/%{name}.png \
|
|
|
eca1ab0 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
|
eca1ab0 |
rm -fr $RPM_BUILD_ROOT%{_datadir}/games
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%clean
|
|
|
eca1ab0 |
rm -rf $RPM_BUILD_ROOT
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%post
|
|
|
eca1ab0 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
2ad20ff |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
2ad20ff |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
2ad20ff |
fi
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%postun
|
|
|
eca1ab0 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
2ad20ff |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
2ad20ff |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
2ad20ff |
fi
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%files
|
|
|
eca1ab0 |
%defattr(-,root,root,-)
|
|
|
918a811 |
%doc AUTHORS README TODO COPYING
|
|
|
de1a8bd |
%{_bindir}/%{name}
|
|
|
de1a8bd |
%{_mandir}/man6/%{name}.6.gz
|
|
|
eca1ab0 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
|
|
|
eca1ab0 |
%changelog
|
|
|
de1a8bd |
* Mon Mar 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.1-1
|
|
|
de1a8bd |
- Upstream is alive again, new upstream release 0.7.1, yeah!
|
|
|
de1a8bd |
|
|
|
54073dc |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7.0-6
|
|
|
54073dc |
- Autorebuild for GCC 4.3
|
|
|
54073dc |
|
|
|
2ad20ff |
* Thu Aug 2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.0-5
|
|
|
2ad20ff |
- Update License tag for new Licensing Guidelines compliance
|
|
|
2ad20ff |
|
|
|
7a89e87 |
* Sun May 20 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.0-4
|
|
|
7a89e87 |
- Fix broken URL field (bz 240592)
|
|
|
7a89e87 |
|
|
|
cbb5adf |
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.0-3
|
|
|
cbb5adf |
- FE6 Rebuild
|
|
|
cbb5adf |
|
|
|
86946de |
* Thu Aug 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.0-2
|
|
|
86946de |
- Fix abuse from crashing on exit when you try to close the window while the
|
|
|
86946de |
intro is still playing
|
|
|
86946de |
|
|
|
eca1ab0 |
* Wed Aug 16 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7.0-1
|
|
|
eca1ab0 |
- Initial FE submission
|