001c727
Name:           ballbuster
001c727
Version:        1.0
1083ea9
Release:        25%{?dist}
001c727
Summary:        Move the paddle to bounce the ball and break all the bricks
001c727
Group:          Amusements/Games
718e53b
License:        GPLv2+
d2c34f2
# Upstream is dead, all downloads are gone
d2c34f2
Source0:        BallBusterX.zip
001c727
Source1:        %{name}.desktop
7a518c6
Source2:        %{name}.png
7a518c6
Source3:        %{name}.appdata.xml
001c727
Patch0:         ballbuster-unix.patch.gz
55c136c
Patch1:         ballbuster-1.0-gcc43.patch
7a518c6
Patch2:         ballbuster-1.0-gcc6.patch
7a518c6
Patch3:         ballbuster-1.0-better-fullscreen-handling.patch
8a6f3a6
Patch4:         ballbuster-1.0-html-path-fix.patch
7a518c6
BuildRequires:  ClanLib1-devel desktop-file-utils libappstream-glib
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
7a518c6
001c727
%prep
8a6f3a6
%autosetup -c -p1
001c727
sed -i 's/\r//g' COPYING credits.txt ExtremeUpdates.txt manual.html html/*
001c727
7a518c6
001c727
%build
001c727
make %{?_smp_mflags} PREFIX=%{_prefix} \
1e63ce3
  CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags clanCore-1.0` -fpermissive"
7a518c6
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
# 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}
7a518c6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
7a518c6
install -p -m 644 %{SOURCE2} \
7a518c6
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
7a518c6
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
7a518c6
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata
7a518c6
appstream-util validate-relax --nonet \
7a518c6
  $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
7a518c6
001c727
001c727
%post
7a518c6
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
001c727
001c727
%postun
7a518c6
if [ $1 -eq 0 ] ; then
7a518c6
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
7a518c6
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
001c727
fi
001c727
7a518c6
%posttrans
7a518c6
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
7a518c6
7a518c6
001c727
%files
7a518c6
%doc credits.txt ExtremeUpdates.txt manual.html html
7a518c6
%license COPYING
0231b6f
%{_bindir}/%{name}*
001c727
%{_datadir}/%{name}
7a518c6
%{_datadir}/appdata/%{name}.appdata.xml
03f1835
%{_datadir}/applications/%{name}.desktop
7a518c6
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
7a518c6
001c727
001c727
%changelog
1083ea9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-25
1083ea9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1083ea9
8a6f3a6
* Mon Jan 23 2017 Hans de Goede <hdegoede@redhat.com> - 1.0-24
8a6f3a6
- Fix broken image links in html docs (rhbz#1415231)
8a6f3a6
7a518c6
* Sun Feb 14 2016 Hans de Goede <hdegoede@redhat.com> - 1.0-23
7a518c6
- Fix building with gcc6 (rhbz#1307339)
7a518c6
- Start windowed by default (use -fullscreen to start fullscreen)
7a518c6
- Improve fullscreen handling (scale to native monitor res)
7a518c6
- Higher res icon
7a518c6
- Add appdata
7a518c6
4103c91
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-22
4103c91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4103c91
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