|
|
0a76ec1 |
Name: ballz
|
|
|
0a76ec1 |
Version: 1.0
|
|
|
0a76ec1 |
Release: 1%{?dist}
|
|
|
0a76ec1 |
Summary: Platform game with some puzzle elements
|
|
|
0a76ec1 |
Group: Amusements/Games
|
|
|
0a76ec1 |
License: BSD
|
|
|
94676d5 |
# Was http://darkbits.org/ but that site is down
|
|
|
94676d5 |
URL: http://www.allegro.cc/forums/thread/590831
|
|
|
94676d5 |
# http://darkbits.org/%{name}-%{version}.tar.gz but site is down
|
|
|
94676d5 |
Source0: %{name}-%{version}.tar.gz
|
|
|
0a76ec1 |
Source1: %{name}.desktop
|
|
|
0a76ec1 |
Patch0: ballz-1.0-syslibs.patch
|
|
|
0a76ec1 |
Patch1: ballz-1.0-fullscreen.patch
|
|
|
0a76ec1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0a76ec1 |
BuildRequires: dumb-devel guichan-devel desktop-file-utils automake
|
|
|
0a76ec1 |
BuildRequires: ImageMagick
|
|
|
0a76ec1 |
Requires: hicolor-icon-theme
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%description
|
|
|
0a76ec1 |
Ballz is a platformer with some puzzle elements. You take control of a ball
|
|
|
0a76ec1 |
which is genetically modified by the British secret service. Your mission is
|
|
|
0a76ec1 |
to rescue captured British soldiers from a prison in Iran.
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
The game was written in 72 hours for the TINS competition, a competition
|
|
|
0a76ec1 |
similar to Speedhack. The name TINS is an recursive acronym for ‘TINS is
|
|
|
0a76ec1 |
not Speedhack’.
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%prep
|
|
|
0a76ec1 |
%setup -q
|
|
|
0a76ec1 |
%patch0 -p1 -z .syslibs
|
|
|
0a76ec1 |
%patch1 -p1 -z .fullscreen
|
|
|
0a76ec1 |
# we use the system version of these libs
|
|
|
0a76ec1 |
rm -fr src/guichan* src/dumb
|
|
|
0a76ec1 |
# remove hardcoded optflags from configure
|
|
|
0a76ec1 |
sed -i 's/-O2 -ffast-math -fomit-frame-pointer/ -ffast-math/g' configure.ac
|
|
|
0a76ec1 |
autoreconf -f
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%build
|
|
|
0a76ec1 |
%configure
|
|
|
0a76ec1 |
make %{?_smp_mflags}
|
|
|
0a76ec1 |
convert -transparent black data/%{name}.bmp %{name}.png
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%install
|
|
|
0a76ec1 |
rm -rf $RPM_BUILD_ROOT
|
|
|
0a76ec1 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
# below is the desktop file and icon stuff.
|
|
|
0a76ec1 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
0a76ec1 |
desktop-file-install --vendor fedora \
|
|
|
0a76ec1 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
0a76ec1 |
%{SOURCE1}
|
|
|
0a76ec1 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
|
|
|
0a76ec1 |
install -m 644 %{name}.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%clean
|
|
|
0a76ec1 |
rm -rf $RPM_BUILD_ROOT
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%post
|
|
|
0a76ec1 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
04802b3 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
04802b3 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
04802b3 |
fi
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%postun
|
|
|
0a76ec1 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
04802b3 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
04802b3 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
04802b3 |
fi
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%files
|
|
|
0a76ec1 |
%defattr(-,root,root,-)
|
|
|
0a76ec1 |
%doc AUTHORS README BSD-license
|
|
|
0a76ec1 |
%{_bindir}/%{name}
|
|
|
0a76ec1 |
%{_datadir}/%{name}
|
|
|
0a76ec1 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
0a76ec1 |
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
|
|
|
0a76ec1 |
%changelog
|
|
|
94676d5 |
* Fri Feb 15 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-2
|
|
|
94676d5 |
- Fix Source0 and URL for upstream's site disappearing
|
|
|
94676d5 |
- Rebuild for gcc 4.3
|
|
|
94676d5 |
|
|
|
0a76ec1 |
* Tue Apr 17 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-1
|
|
|
0a76ec1 |
- Initial Fedora Extras package
|