001c727
Name:           ballbuster
001c727
Version:        1.0
f12fc9a
Release:        21%{?dist}
001c727
Summary:        Move the paddle to bounce the ball and break all the bricks
001c727
Group:          Amusements/Games
718e53b
License:        GPLv2+
001c727
URL:            http://www.patrickavella.com/ballbuster.shtml
001c727
Source0:        http://www.patrickavella.com/BallBusterX.zip
001c727
Source1:        %{name}.desktop
001c727
Patch0:         ballbuster-unix.patch.gz
55c136c
Patch1:         ballbuster-1.0-gcc43.patch
d3ed828
BuildRequires:  ClanLib1-devel desktop-file-utils ImageMagick
0231b6f
Requires:       hicolor-icon-theme opengl-games-utils
001c727
001c727
%description
001c727
Game inspired by one of the great classics. The purpose of the game is to
001c727
remove all the bricks on the screen, by hitting them with a ball. You can
001c727
control the ball by bouncing it back at the bricks with a paddle which you
001c727
control with your mouse. The game features: A built in level editor, 20 power
001c727
ups and special effects (particle, alpha, rotating, and zooming).
001c727
001c727
%prep
001c727
%setup -q -c
001c727
%patch0 -p1 -z .unix
55c136c
%patch1 -p1 -z .gcc43
001c727
sed -i 's/\r//g' COPYING credits.txt ExtremeUpdates.txt manual.html html/*
001c727
001c727
%build
001c727
make %{?_smp_mflags} PREFIX=%{_prefix} \
1e63ce3
  CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags clanCore-1.0` -fpermissive"
001c727
convert -transparent black icon1.ico %{name}.png
001c727
001c727
%install
001c727
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
0231b6f
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper
001c727
001c727
# below is the desktop file and icon stuff.
001c727
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
03f1835
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
001c727
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
001c727
install -p -m 644 %{name}.png \
001c727
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
001c727
001c727
%post
001c727
touch --no-create %{_datadir}/icons/hicolor || :
001c727
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
001c727
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
001c727
fi
001c727
001c727
%postun
001c727
touch --no-create %{_datadir}/icons/hicolor || :
001c727
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
001c727
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
001c727
fi
001c727
001c727
%files
001c727
%doc COPYING credits.txt ExtremeUpdates.txt manual.html html
0231b6f
%{_bindir}/%{name}*
001c727
%{_datadir}/%{name}
03f1835
%{_datadir}/applications/%{name}.desktop
001c727
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
001c727
001c727
%changelog
f12fc9a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-21
f12fc9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f12fc9a
c071946
* Sun May 03 2015 Kalev Lember <kalevlember@gmail.com> - 1.0-20
c071946
- Rebuilt for GCC 5 C++11 ABI change
c071946
d09a6ff
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-19
d09a6ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d09a6ff
b1ee057
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-18
b1ee057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b1ee057
e5b4b17
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-17
e5b4b17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5b4b17
03f1835
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0-16
03f1835
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
03f1835
- clean up spec to follow current guidelines
03f1835
- fix desktop file to follow specification
03f1835
763a4ee
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-15
763a4ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
763a4ee
21e6e40
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-14
21e6e40
- Rebuilt for c++ ABI breakage
21e6e40
8c4ac3a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
8c4ac3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8c4ac3a
1e63ce3
* Thu Feb 10 2011 Hans de Goede <hdegoede@redhat.com> - 1.0-12
1e63ce3
- Fix building with gcc 4.6
1e63ce3
59f4dd8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-11
59f4dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
59f4dd8
d3ed828
* Thu Nov 19 2009 Hans de Goede <hdegoede@redhat.com> 1.0-10
d3ed828
- Fix FTBFS, BuildRequire ClanLib1-devel (#538930)
d3ed828
8d630c7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
8d630c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8d630c7
179e44d
* Mon May 18 2009 Hans de Goede <hdegoede@redhat.com> 1.0-8
179e44d
- Rebuild for new ClanLib                        
179e44d
e659265
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
e659265
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e659265
c70b844
* Sat Feb 21 2009 Hans de Goede <hdegoede@redhat.com> 1.0-6
c70b844
- Fix build with gcc 4.4
c70b844
c4ca06c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-5
c4ca06c
- Autorebuild for GCC 4.3
c4ca06c
55c136c
* Fri Jan  4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-4
55c136c
- Fix building with gcc 4.3
55c136c
0231b6f
* Tue Sep 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-3
0231b6f
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
0231b6f
718e53b
* Sun Aug  5 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-2
718e53b
- Update License tag for new Licensing Guidelines compliance
718e53b
001c727
* Tue Oct 10 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-1
001c727
- Initial Fedora Extras package