# Copyright (c) 2007 oc2pus <toni@links2linux.de> # Copyright (c) 2007 Hans de Goede <j.w.r.degoede@hhs.nl> # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments to us at the above email addresses Name: bolzplatz2006 Version: 1.0.3 Release: 13%{?dist} Summary: Slam Soccer 2006 is a funny football game in 3D-comic-style Summary(fr): Coup de Foot 2006 est un jeu comique en 3D Summary(de): Bolzplatz 2006 ist ein spaÃiges FuÃballspiel im 3D-Comic-Stil License: GPLv2+ Group: Amusements/Games URL: http://www.bolzplatz2006.de Source0: http://downloads.sourceforge.net/bp2k6/%{name}-%{version}-src.zip Source1: %{name}.png Source2: %{name}.sh Source3: %{name}-settings.sh Source4: %{name}.desktop Source5: %{name}-settings.desktop Source6: %{name}-jirr-no-crash.patch Source7: %{name}-functions.sh Source8: %{name}.autodlrc Source9: input.xml Patch0: %{name}-irrlicht.i.patch Patch1: %{name}-irrlicht-extra-qualification-error.patch Patch2: %{name}-irrlicht-use-systemlibs.patch Patch3: %{name}-irrlicht-png-64bit.patch Patch4: %{name}-lwjgl-nofmod.patch Patch5: %{name}-lwjgl-openal11.patch Patch6: %{name}-lwjgl-Makefile.patch Patch7: %{name}-no-xrandr.patch Patch8: %{name}-versioned-openal.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ant-nodeps sdljava dom4j vecmath1.2 swig xml-commons-apis BuildRequires: libGLU-devel DevIL-devel libXxf86vm-devel libjpeg-devel BuildRequires: libpng-devel libXext-devel libXrandr-devel libXcursor-devel BuildRequires: libXt-devel libXrender-devel libvorbis-devel desktop-file-utils # Building ( & running) only works with openjdk BuildRequires: java-1.6.0-openjdk-devel Requires: sdljava dom4j vecmath1.2 java-1.6.0-openjdk jpackage-utils Requires: hicolor-icon-theme autodownloader # These are dynamically opened by lwjgl: Requires: openal-soft %description Slam Soccer 2006 is a funny football game in 3D-comic-style - and it's for free! * Freeware and open source * Funny 3d-comic-style * Enthralling stadium atmosphere * Keyboard and gamepad control * 2-player mode * Career and world cup * Register in the online hall of fame * Build your own stadium * 80 teams * 20 stadiums * 10 weather conditions * 50 adboards * 10 referees * 9 commentators (5 German, 2 English, 2 French) * 3 languages: German, English, French %description -l de Bolzplatz 2006 ist ein spaÃiges FuÃballspiel im 3D-Comic-Stil für lau. * Kostenlos und Open-Source * Witzige 3D-Comic-Grafik * Packende Stadionatmosphäre * Steuerung mit Tastatur oder Gamepad * 2-Spieler-Modus * Karriere und Weltmeisterschaft * Eintrag in die Hall of Fame * Baue Dein eigenes Stadion * 80 Teams * 20 Stadien * 10 Wetterverhältnisse * 50 Werbebanden * 10 Schiedsrichter * 9 Kommentatoren (5xDeutsch, 2xEnglisch, 2xFranzösisch) * 3 Sprachen: Deutsch, Englisch und Französisch %description -l fr Coup de Foot 2006 est un jeu comique en 3D. Gratuit et open-source. * Graphiques 3D en style cartoon * Ambiance de stade presqu'originale * A commander par clavier ou gamepad * Mode 2 joueurs * Mode Carrière et Coupe du Monde * Inscription au Hall of Fame * Construis tes propres stades * 80 équipes * 20 stades * 10 conditions atmosphériques différentes * 50 panneaux publicitaires * 10 arbitres * 9 commentateurs * 3 langues: allemand, anglais et français %prep %setup -q -c pushd libsrc/jirr-dev %patch0 -p0 cp %{SOURCE6} diff.txt popd %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 sed -i 's/\r//' license.txt # we use the system versions of these rm -r libsrc/irrlicht-0.14-patched/libpng libsrc/irrlicht-0.14-patched/zlib \ libsrc/irrlicht-0.14-patched/jpeglib %build export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" export JAVA_HOME=/usr/lib/jvm/java-openjdk # special case ix86 as all of ix86 should look in the i386 jre lib subdir %ifarch %{ix86} export JAVA_ARCH=i386 %endif # special case x86_64 as it should be mapped to amd64 %ifarch x86_64 export JAVA_ARCH=amd64 %endif # All other archs if [ -z "$JAVA_ARCH" ]; then export JAVA_ARCH=%{_arch} fi # jbolzplatz ships with copies of several libraries, as these are heavily # patched we use the bolzplatz versions and not the system ones # build irrlicht-0.14 pushd libsrc/irrlicht-0.14-patched make %{?_smp_mflags} CPP="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \ CC="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" popd # build jirr-0.6 pushd libsrc/jirr-dev make CXX="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing -fpermissive" \ CC="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" popd # build lwjgl pushd libsrc/lwjgl ant jars ant compile_native popd # build bolzplatz itself mkdir classes javac -d classes -encoding iso-8859-1 \ -cp `build-classpath dom4j sdljava vecmath1.2`:./libsrc/jirr-dev/lib/irrlicht.jar:./libsrc/lwjgl/libs/lwjgl.jar \ `find ./src -name '*.java'` jar cf %{name}.jar -C classes . %install rm -rf $RPM_BUILD_ROOT # dirs mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps # jars install -m 644 %{name}.jar libsrc/jirr-dev/lib/irrlicht.jar \ libsrc/lwjgl/libs/lwjgl.jar $RPM_BUILD_ROOT%{_javadir}/%{name} # native libraries install -m 755 libsrc/jirr-dev/libirrlicht_wrap.so \ libsrc/lwjgl/libs/linux/liblwjgl.so $RPM_BUILD_ROOT%{_libdir}/%{name} # startscripts install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name} install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-settings # icon and menu-entry install -p -m 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE4} desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE5} # needed "data" files install -p -m 644 %{SOURCE7} %{SOURCE8} %{SOURCE9} \ $RPM_BUILD_ROOT%{_datadir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc license.txt %{_bindir}/%{name}* %{_libdir}/%{name} %{_datadir}/%{name} %{_javadir}/%{name} %{_datadir}/applications/fedora-%{name}*.desktop %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %changelog * Mon Feb 14 2011 Hans de Goede <hdegoede@redhat.com> - 1.0.3-13 - Fix building with gcc-4.6 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Nov 15 2010 Adam Jackson <ajax@redhat.com> 1.0.3-11 - Remove explicit Requires: libGL, rpm finds the DSO dep for us. * Wed Nov 4 2009 Hans de Goede <hdegoede@redhat.com> 1.0.3-10 - Fix building and running with latest vecmath1.2 package (hurray for coordination of changes) * Wed Nov 4 2009 Hans de Goede <hdegoede@redhat.com> 1.0.3-9 - Fix hang on exit (by using XF86Vidmode instead of Xrandr) - Do not crash when openal-soft-devel is not installed (dlopen versioned lib instead of .so devel symlink) - Require openal-soft, as it is dlopened * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Apr 2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-6 - Fix missing prototype compiler warnings * Fri Mar 14 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-5 - Adapt launch script and (Build)Requires for icedtea -> openjdk rename - Drop ExclusiveArch now that openjdk also is available for ppc * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.3-4 - Autorebuild for GCC 4.3 * Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-3 - Add missing BuildRequires: libXxf86vm-devel, libGLU-devel, libjpeg-devel, libpng-devel, libXext-devel, libXrandr-devel, libXcursor-devel, libXt-devel libXrender-devel, libvorbis-devel, desktop-file-utils * Mon Sep 17 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-2 - Switch to using autodownloader for the datafiles, upstream wanted to change the license of the datafiles to be free, but not all contributers have agreed to the license change :( * Sat Sep 8 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-1 - Adapted Packman spec file for Fedora * Mon Jun 18 2007 Toni Graffy <toni@links2linux.de> - 1.0.3-0.pm.1 - initial release 1.0.3 - repacked as tar.bz2 - added docs from binary-tarball