0c09fa8
Name:           xblast
0c09fa8
Version:        2.10.4
b437e9c
Release:        14%{?dist}
0c09fa8
Summary:        Lay bombs and Blast the other players of the field (SDL version)
0c09fa8
Group:          Amusements/Games
d30a922
License:        GPLv2+
0c09fa8
URL:            http://xblast.sourceforge.net
0c09fa8
Source0:        http://downloads.sourceforge.net/xblast/xblast-%{version}.tar.gz
0c09fa8
Source1:        xblast.png
0c09fa8
Source2:        xblast.desktop
0c09fa8
Source3:        xblast.sh
0c09fa8
Patch0:         xblast-2.10.4-sdl-fixes.patch
0c09fa8
Patch1:         xblast-2.10.4-manpage.patch
0c09fa8
BuildRequires:  libXt-devel gettext gawk desktop-file-utils SDL_gfx-devel
0c09fa8
BuildRequires:  SDL_image-devel SDL_ttf-devel SDL_mixer-devel SDL_net-devel
0c09fa8
Requires:       %{name}-data >= 2.10.0, %{name}-common = %{version}-%{release}
b1d2420
Requires:       /usr/share/fonts/dejavu/DejaVuSans.ttf
0c09fa8
Provides:       %{name}-engine = %{version}-%{release}
0c09fa8
0c09fa8
%description
0c09fa8
This is the new SDL version of XBlast, a multiplayer game where the "purpose"
0c09fa8
is to Blast the other players of the gamefield by laying bombs close to them.
0c09fa8
While at the same time you must avoid being blown up yourself.
0c09fa8
0c09fa8
0c09fa8
%package x11
0c09fa8
Summary:        Lay bombs and Blast the other players of the field (X11 version)
0c09fa8
Group:          Amusements/Games
0c09fa8
Requires:       %{name}-data >= 2.10.0, %{name}-common = %{version}-%{release}
0c09fa8
Requires:       xorg-x11-fonts-ISO8859-1-75dpi
0c09fa8
Provides:       %{name}-engine = %{version}-%{release}
0c09fa8
0c09fa8
%description x11
0c09fa8
This is the original X11 version of XBlast, a multiplayer game where the
0c09fa8
"purpose" is to Blast the other players of the gamefield by laying bombs close
0c09fa8
to them. While at the same time you must avoid being blown up yourself.
0c09fa8
0c09fa8
0c09fa8
%package common
0c09fa8
Summary:        Files common to both the X11 and SDL version of XBlast
0c09fa8
Group:          Amusements/Games
0c09fa8
Requires:       %{name}-engine = %{version}-%{release}, hicolor-icon-theme
0c09fa8
0c09fa8
%description common
0c09fa8
Files common to both the X11 and SDL version of XBlast, a multiplayer game
0c09fa8
where the "purpose" is to Blast the other players of the gamefield by laying
0c09fa8
bombs close to the other player.
0c09fa8
0c09fa8
0c09fa8
%prep
0c09fa8
%setup -q
0c09fa8
%patch0 -p1 -z .sdl
0c09fa8
%patch1 -p1 -z .man
0c09fa8
sed -i 's|$(game_datadir)/locale|%{_datadir}/locale|g' Makefile.in
0c09fa8
0c09fa8
# stop rpmlint from complaining about executable source files in the -debuginfo
0c09fa8
chmod -x chat.* version.c
0c09fa8
# stop autoxxx from rerunning because of strange timestamps in the tarbal
0c09fa8
touch aclocal.m4 configure Makefile.in config.h.in
0c09fa8
0c09fa8
0c09fa8
%build
0c09fa8
# first build the SDL version
0c09fa8
%configure --with-otherdatadir=%{_datadir}/%{name} --enable-admin --enable-sdl
0c09fa8
make %{?_smp_mflags}
0c09fa8
mv xblast xblast-sdl
0c09fa8
0c09fa8
# and then the X11 version
0c09fa8
make distclean
0c09fa8
%configure --with-otherdatadir=%{_datadir}/%{name} --enable-admin --enable-sound
0c09fa8
make %{?_smp_mflags}
0c09fa8
0c09fa8
0c09fa8
%install
0c09fa8
make install localedir=%{_datadir}/locale DESTDIR=$RPM_BUILD_ROOT
0c09fa8
%find_lang %{name}
0c09fa8
0c09fa8
mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-x11
0c09fa8
install -m 755 xblast-sdl $RPM_BUILD_ROOT%{_bindir}
0c09fa8
install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}
0c09fa8
0c09fa8
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
0c09fa8
install -m 644 %{name}.man $RPM_BUILD_ROOT%{_mandir}/man6/%{name}.6
0c09fa8
0c09fa8
# below is the desktop file and icon stuff.
0c09fa8
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
Parag Nemade d609f7d
desktop-file-install            \
0c09fa8
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
0c09fa8
  %{SOURCE2}
0c09fa8
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
0c09fa8
install -p -m 644 %{SOURCE1} \
0c09fa8
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
0c09fa8
0c09fa8
0c09fa8
%post common
ddb9831
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
0c09fa8
0c09fa8
%postun common
ddb9831
if [ $1 -eq 0 ] ; then
ddb9831
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
ddb9831
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d30a922
fi
0c09fa8
ddb9831
%posttrans common
ddb9831
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ddb9831
0c09fa8
0c09fa8
%files
0c09fa8
%{_bindir}/%{name}-sdl
0c09fa8
0c09fa8
%files x11
0c09fa8
%{_bindir}/%{name}-x11
0c09fa8
%{_bindir}/xbsndsrv
0c09fa8
0c09fa8
%files -f %{name}.lang common
0c09fa8
%doc AUTHORS ChangeLog COPYING README NEWS
0c09fa8
%{_bindir}/%{name}
0c09fa8
%{_mandir}/man6/%{name}.6.gz
0c09fa8
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
Parag Nemade d609f7d
%{_datadir}/applications/%{name}.desktop
0c09fa8
0c09fa8
0c09fa8
%changelog
b437e9c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-14
b437e9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b437e9c
Parag Nemade d609f7d
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 2.10.4-13
Parag Nemade d609f7d
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade d609f7d
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade d609f7d
ed47824
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-12
ed47824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ed47824
4593990
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-11
4593990
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4593990
ddb9831
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> - 2.10.4-10
ddb9831
- Rebuild for new SDL_gfx
ddb9831
56557bd
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-9
56557bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
56557bd
70d501f
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-8
70d501f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
70d501f
22b368c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.4-7
22b368c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
22b368c
b1d2420
* Mon Dec  1 2008 Hans de Goede <hdegoede@redhat.com> 2.10.4-6
b1d2420
- Replace bitstream-vera with dejave font (rh 473563)
b1d2420
e1fa3ff
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.10.4-5
e1fa3ff
- Autorebuild for GCC 4.3
e1fa3ff
d30a922
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.10.4-4
d30a922
- Update License tag for new Licensing Guidelines compliance
d30a922
807d307
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.10.4-3
807d307
- Rebuild against SDL_gfx 2.0.16.
807d307
0c09fa8
* Thu Mar  1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.10.4-2
0c09fa8
- Use sf.net sourceforge URL from the Guidelines (bz 229476)
0c09fa8
- Keep timestamp while installing the wrapper (bz 229476)
0c09fa8
- Sanitize and install the manpage (bz 229476)
0c09fa8
- Add "Requires: xorg-x11-fonts-ISO8859-1-75dpi" to xblast-x11 (bz 229476)
0c09fa8
- Make xblast look for translations under /usr/share/locale (bz 229476)
0c09fa8
0c09fa8
* Thu Feb  8 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.10.4-1
0c09fa8
- Initial Fedora Extras package