| 1 |
# Copyright (c) 2007 oc2pus <toni@links2linux.de>
|
| 2 |
# Copyright (c) 2007 Hans de Goede <j.w.r.degoede@hhs.nl>
|
| 3 |
# This file and all modifications and additions to the pristine
|
| 4 |
# package are under the same license as the package itself.
|
| 5 |
|
| 6 |
Name: BlockOutII
|
| 7 |
Version: 2.3
|
| 8 |
Release: 7%{?dist}
|
| 9 |
Summary: A free adaptation of the original BlockOut DOS game
|
| 10 |
Group: Amusements/Games
|
| 11 |
License: GPLv2+
|
| 12 |
URL: http://www.blockout.net/blockout2/
|
| 13 |
# To regenerate:
|
| 14 |
# cvs -z3 -d:pserver:anonymous@blockout.cvs.sourceforge.net:/cvsroot/blockout co -D 2007-11-25 -P blockout
|
| 15 |
# mv blockout BlockOutII-2.3
|
| 16 |
# cd BlockOutII-2.3
|
| 17 |
# rm -r `find -name CVS` contrib/dxsdk8.rar contrib/D3DTools BlockOut/setup
|
| 18 |
# rm -r CVSROOT contrib/ImageLib/src/png/png contrib/ImageLib/src/png/zlib
|
| 19 |
# mp32ogg BlockOut/sounds/music.mp3
|
| 20 |
# cd ..
|
| 21 |
# tar cvfj BlockOutII-2.3.tar.bz2 BlockOutII-2.3
|
| 22 |
Source0: %{name}-%{version}.tar.bz2
|
| 23 |
Source1: %{name}.desktop
|
| 24 |
Source2: %{name}.png
|
| 25 |
Patch0: BlockOutII-2.3-syslibs.patch
|
| 26 |
Patch1: BlockOutII-2.3-64bit.patch
|
| 27 |
Patch2: BlockOutII-2.3-bl2Home.patch
|
| 28 |
Patch3: BlockOutII-2.3-music.patch
|
| 29 |
Patch4: BlockOutII-2.3-restore-resolution.patch
|
| 30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 31 |
BuildRequires: SDL_mixer-devel libpng-devel desktop-file-utils
|
| 32 |
Requires: hicolor-icon-theme opengl-games-utils
|
| 33 |
|
| 34 |
%description
|
| 35 |
BlockOut II is a free adaptation of the original BlockOut
|
| 36 |
DOS game edited by California Dreams in 1989. BlockOut II
|
| 37 |
has the same features than the original game with few graphic
|
| 38 |
improvements. The score calculation is also nearly similar to
|
| 39 |
the original game. BlockOut II has been designed by an addicted
|
| 40 |
player for addicted players. BlockOut II is an open source
|
| 41 |
project available for both Windows and Linux.
|
| 42 |
|
| 43 |
Blockout is a registered trademark of Kadon Enterprises, Inc.,
|
| 44 |
used by permission for the BlockOut II application by Jean-Luc
|
| 45 |
Pons.
|
| 46 |
|
| 47 |
|
| 48 |
%prep
|
| 49 |
%setup -q
|
| 50 |
%patch0 -p1
|
| 51 |
%patch1 -p1
|
| 52 |
%patch2 -p1
|
| 53 |
%patch3 -p1
|
| 54 |
%patch4 -p1 -z .fs
|
| 55 |
chmod -x `find -type f`
|
| 56 |
iconv -f ISO8859-1 -t UTF8 BlockOut/README.txt > t; mv t BlockOut/README.txt
|
| 57 |
|
| 58 |
|
| 59 |
%build
|
| 60 |
pushd contrib/ImageLib/src
|
| 61 |
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -Dlinux -c" \
|
| 62 |
CXXFLAGS="$RPM_OPT_FLAGS -Dlinux -c"
|
| 63 |
popd
|
| 64 |
|
| 65 |
pushd BlockOut_GL
|
| 66 |
make %{?_smp_mflags} \
|
| 67 |
CXXFLAGS="$RPM_OPT_FLAGS -Dlinux `sdl-config --cflags` -I../contrib/ImageLib/src -c" \
|
| 68 |
SDL_ROOT=%{_prefix} LIBS="-L../contrib/ImageLib/src -lpng -lz" \
|
| 69 |
IMGLIB_ROOT=../contrib/ImageLib/src
|
| 70 |
popd
|
| 71 |
|
| 72 |
|
| 73 |
%install
|
| 74 |
rm -rf $RPM_BUILD_ROOT
|
| 75 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
| 76 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/images
|
| 77 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
|
| 78 |
|
| 79 |
install -m 755 BlockOut_GL/blockout $RPM_BUILD_ROOT%{_bindir}/%{name}
|
| 80 |
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper
|
| 81 |
install -p -m 644 BlockOut/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/images
|
| 82 |
install -p -m 644 BlockOut/sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
|
| 83 |
|
| 84 |
# below is the desktop file and icon stuff.
|
| 85 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
| 86 |
desktop-file-install --vendor fedora \
|
| 87 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
| 88 |
%{SOURCE1}
|
| 89 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
| 90 |
install -p -m 644 %{SOURCE2} \
|
| 91 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
| 92 |
|
| 93 |
|
| 94 |
%clean
|
| 95 |
rm -rf $RPM_BUILD_ROOT
|
| 96 |
|
| 97 |
|
| 98 |
%post
|
| 99 |
touch --no-create %{_datadir}/icons/hicolor || :
|
| 100 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
| 101 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
| 102 |
fi
|
| 103 |
|
| 104 |
%postun
|
| 105 |
touch --no-create %{_datadir}/icons/hicolor || :
|
| 106 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
| 107 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
| 108 |
fi
|
| 109 |
|
| 110 |
|
| 111 |
%files
|
| 112 |
%defattr(-,root,root,-)
|
| 113 |
%doc BlockOut/README.txt
|
| 114 |
%{_bindir}/%{name}*
|
| 115 |
%{_datadir}/%{name}
|
| 116 |
%{_datadir}/applications/fedora-%{name}.desktop
|
| 117 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
| 118 |
|
| 119 |
|
| 120 |
%changelog
|
| 121 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-7
|
| 122 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 123 |
|
| 124 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-6
|
| 125 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 126 |
|
| 127 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-5
|
| 128 |
- Autorebuild for GCC 4.3
|
| 129 |
|
| 130 |
* Sat Dec 1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.3-4
|
| 131 |
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
|
| 132 |
|
| 133 |
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.3-3
|
| 134 |
- Fix restoration of resolution when leaving fullscreen
|
| 135 |
- Don't use macros in cvs co instructions
|
| 136 |
|
| 137 |
* Mon Nov 26 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.3-2
|
| 138 |
- Add missing libpng-devel BR (bz 398791)
|
| 139 |
- Add include date in CVS tarbal reproduction instructions (bz 398791)
|
| 140 |
|
| 141 |
* Sat Nov 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.3-1
|
| 142 |
- Initial Fedora Package based on the packman package
|