907c665
# Copyright (c) 2007 oc2pus <toni@links2linux.de>
907c665
# Copyright (c) 2007 Hans de Goede <j.w.r.degoede@hhs.nl>
907c665
# This file and all modifications and additions to the pristine
907c665
# package are under the same license as the package itself.
907c665
#
907c665
# Please submit bugfixes or comments to us at the above email addresses
907c665
907c665
Name:           bolzplatz2006
907c665
Version:        1.0.3
4f0ef0d
Release:        46%{?dist}
907c665
Summary:        Slam Soccer 2006 is a funny football game in 3D-comic-style
907c665
Summary(fr):    Coup de Foot 2006 est un jeu comique en 3D
907c665
Summary(de):    Bolzplatz 2006 ist ein spaßiges Fußballspiel im 3D-Comic-Stil
907c665
License:        GPLv2+
907c665
URL:            http://www.bolzplatz2006.de
907c665
Source0:        http://downloads.sourceforge.net/bp2k6/%{name}-%{version}-src.zip
907c665
Source1:        %{name}.png
907c665
Source2:        %{name}.sh
907c665
Source3:        %{name}-settings.sh
907c665
Source4:        %{name}.desktop
a0f7b47
Source5:        %{name}.appdata.xml
907c665
Source6:        %{name}-jirr-no-crash.patch
907c665
Source7:        %{name}-functions.sh
907c665
Source8:        %{name}.autodlrc
907c665
Source9:        input.xml
907c665
Patch0:         %{name}-irrlicht.i.patch
907c665
Patch1:         %{name}-irrlicht-extra-qualification-error.patch
907c665
Patch2:         %{name}-irrlicht-use-systemlibs.patch
907c665
Patch3:         %{name}-irrlicht-png-64bit.patch
907c665
Patch4:         %{name}-lwjgl-nofmod.patch
907c665
Patch5:         %{name}-lwjgl-openal11.patch
907c665
Patch6:         %{name}-lwjgl-Makefile.patch
0ae544f
Patch7:         %{name}-no-xrandr.patch
0ae544f
Patch8:         %{name}-versioned-openal.patch
0f39c0e
Patch9:         %{name}-1.0.3-libpng15.patch
b92cb67
Patch10:        %{name}-class-version15.patch
6641d47
Patch11:        %{name}-use-system-extgl.patch
a0f7b47
Patch12:        %{name}-gcc6.patch
4f0ef0d
Patch13:        %{name}-openjdk11.patch
ac4ab1c
BuildRequires:  gcc-c++
3a93324
BuildRequires:  ant sdljava dom4j vecmath1.2 swig xml-commons-apis
907c665
BuildRequires:  libGLU-devel DevIL-devel libXxf86vm-devel libjpeg-devel
907c665
BuildRequires:  libpng-devel libXext-devel libXrandr-devel libXcursor-devel
907c665
BuildRequires:  libXt-devel libXrender-devel libvorbis-devel desktop-file-utils
4f0ef0d
BuildRequires:  java-devel
a0f7b47
BuildRequires:  libappstream-glib
d893047
BuildRequires: make
4f0ef0d
Requires:       sdljava dom4j vecmath1.2 java jpackage-utils
907c665
Requires:       hicolor-icon-theme autodownloader
0ae544f
# These are dynamically opened by lwjgl:
70fb4bd
Requires:       openal-soft
907c665
907c665
%description
907c665
Slam Soccer 2006 is a funny football game in
907c665
3D-comic-style - and it's for free!
907c665
907c665
* Freeware and open source
907c665
* Funny 3d-comic-style
907c665
* Enthralling stadium atmosphere
907c665
* Keyboard and gamepad control
907c665
* 2-player mode
907c665
* Career and world cup
907c665
* Register in the online hall of fame
907c665
* Build your own stadium
907c665
907c665
* 80 teams
907c665
* 20 stadiums
907c665
* 10 weather conditions
907c665
* 50 adboards
907c665
* 10 referees
907c665
* 9 commentators (5 German, 2 English, 2 French)
907c665
907c665
* 3 languages: German, English, French
907c665
907c665
%description -l de
907c665
Bolzplatz 2006 ist ein spaßiges Fußballspiel
907c665
im 3D-Comic-Stil für lau.
907c665
907c665
* Kostenlos und Open-Source
907c665
* Witzige 3D-Comic-Grafik
907c665
* Packende Stadionatmosphäre
907c665
* Steuerung mit Tastatur oder Gamepad
907c665
* 2-Spieler-Modus
907c665
* Karriere und Weltmeisterschaft
907c665
* Eintrag in die Hall of Fame
907c665
* Baue Dein eigenes Stadion
907c665
907c665
* 80 Teams
907c665
* 20 Stadien
907c665
* 10 Wetterverhältnisse
907c665
* 50 Werbebanden
907c665
* 10 Schiedsrichter
907c665
* 9 Kommentatoren (5xDeutsch, 2xEnglisch, 2xFranzösisch)
907c665
907c665
* 3 Sprachen: Deutsch, Englisch und Französisch
907c665
907c665
%description -l fr
907c665
Coup de Foot 2006 est un jeu comique en 3D.
907c665
Gratuit et open-source.
907c665
907c665
* Graphiques 3D en style cartoon
907c665
* Ambiance de stade presqu'originale
907c665
* A commander par clavier ou gamepad
907c665
* Mode 2 joueurs
907c665
* Mode Carrière et Coupe du Monde
907c665
* Inscription au Hall of Fame
907c665
* Construis tes propres stades
907c665
907c665
* 80 équipes
907c665
* 20 stades
907c665
* 10 conditions atmosphériques différentes
907c665
* 50 panneaux publicitaires
907c665
* 10 arbitres
907c665
* 9 commentateurs
907c665
907c665
* 3 langues: allemand, anglais et français
907c665
907c665
907c665
%prep
907c665
%setup -q -c
907c665
pushd libsrc/jirr-dev
907c665
%patch0 -p0
907c665
cp %{SOURCE6} diff.txt
907c665
popd
907c665
%patch1 -p1
907c665
%patch2 -p1
907c665
%patch3 -p1
907c665
%patch4 -p1
907c665
%patch5 -p1
907c665
%patch6 -p1
0ae544f
%patch7 -p1
0ae544f
%patch8 -p1
0f39c0e
%patch9 -p1
b92cb67
%patch10 -p1
6641d47
%patch11 -p1
a0f7b47
%patch12 -p1
4f0ef0d
%patch13 -p1
e1ab764
cp %{SOURCE7} .
907c665
sed -i 's/\r//' license.txt
907c665
# we use the system versions of these
907c665
rm -r libsrc/irrlicht-0.14-patched/libpng libsrc/irrlicht-0.14-patched/zlib \
6641d47
  libsrc/irrlicht-0.14-patched/jpeglib libsrc/irrlicht-0.14-patched/glext.h
907c665
907c665
907c665
%build
1bb9f5a
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
6c11291
export JAVA_HOME=/usr/lib/jvm/java-openjdk
907c665
6c11291
# special case ix86 as all of ix86 should look in the i386 jre lib subdir
907c665
%ifarch %{ix86}
907c665
export JAVA_ARCH=i386
907c665
%endif
6c11291
# special case x86_64 as it should be mapped to amd64
907c665
%ifarch x86_64
907c665
export JAVA_ARCH=amd64
907c665
%endif
6c11291
# All other archs
6c11291
if [ -z "$JAVA_ARCH" ]; then
6c11291
  export JAVA_ARCH=%{_arch}
6c11291
fi
907c665
e1ab764
echo "export LD_LIBRARY_PATH=/usr/lib/jvm/jre-openjdk/lib/$JAVA_ARCH" >> \
e1ab764
  %{name}-functions.sh
e1ab764
907c665
# jbolzplatz ships with copies of several libraries, as these are heavily
907c665
# patched we use the bolzplatz versions and not the system ones
907c665
907c665
# build irrlicht-0.14
907c665
pushd libsrc/irrlicht-0.14-patched
907c665
make %{?_smp_mflags} CPP="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \
907c665
  CC="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
907c665
popd
907c665
907c665
# build jirr-0.6
907c665
pushd libsrc/jirr-dev
a9706cd
make CXX="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing -fpermissive" \
907c665
  CC="g++ $RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
907c665
popd
907c665
907c665
# build lwjgl
907c665
pushd libsrc/lwjgl
907c665
ant jars
907c665
ant compile_native
907c665
popd
907c665
907c665
# build bolzplatz itself
907c665
mkdir classes
907c665
javac -d classes -encoding iso-8859-1 \
c25d7c3
  -cp `build-classpath dom4j sdljava vecmath1.2`:./libsrc/jirr-dev/lib/irrlicht.jar:./libsrc/lwjgl/libs/lwjgl.jar \
907c665
  `find ./src -name '*.java'`
907c665
jar cf %{name}.jar -C classes .
907c665
907c665
907c665
%install
907c665
# dirs
907c665
mkdir -p $RPM_BUILD_ROOT%{_bindir}
907c665
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}
a0f7b47
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
907c665
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
907c665
mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
a0f7b47
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
907c665
907c665
# jars
907c665
install -m 644 %{name}.jar libsrc/jirr-dev/lib/irrlicht.jar \
907c665
  libsrc/lwjgl/libs/lwjgl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
907c665
907c665
# native libraries
907c665
install -m 755 libsrc/jirr-dev/libirrlicht_wrap.so \
907c665
  libsrc/lwjgl/libs/linux/liblwjgl.so $RPM_BUILD_ROOT%{_libdir}/%{name}
907c665
907c665
# startscripts
907c665
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
907c665
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-settings
907c665
907c665
# icon and menu-entry
907c665
install -p -m 644 %{SOURCE1} \
a0f7b47
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
a0a01a4
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE4}
a0f7b47
install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/appdata
a0f7b47
appstream-util validate-relax --nonet \
a0f7b47
  $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
907c665
907c665
# needed "data" files
e1ab764
install -p -m 644 %{name}-functions.sh %{SOURCE8} %{SOURCE9} \
907c665
  $RPM_BUILD_ROOT%{_datadir}/%{name}
907c665
907c665
907c665
%files
a0f7b47
%license license.txt
907c665
%{_bindir}/%{name}*
907c665
%{_libdir}/%{name}
907c665
%{_datadir}/%{name}
907c665
%{_javadir}/%{name}
a0f7b47
%{_datadir}/appdata/%{name}.appdata.xml
a0f7b47
%{_datadir}/applications/%{name}.desktop
a0f7b47
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
907c665
907c665
907c665
%changelog
4f0ef0d
* Tue Aug 11 2020 Hans de Goede <hdegoede@redhat.com> - 1.0.3-46
4f0ef0d
- Fix FTBFS (rhbz#1863284, rhbz#1859123)
4f0ef0d
a9c2765
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-45
a9c2765
- Second attempt - Rebuilt for
a9c2765
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a9c2765
6966585
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-44
6966585
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6966585
db65562
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.0.3-43
db65562
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
db65562
b043f81
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-42
b043f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b043f81
0d356a2
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-41
0d356a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0d356a2
2790d99
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-40
2790d99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2790d99
f5ac6e9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-39
f5ac6e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f5ac6e9
8e32a66
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-38
8e32a66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8e32a66
5daa8c2
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.3-37
5daa8c2
- Remove obsolete scriptlets
5daa8c2
ebdd4b4
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-36
ebdd4b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ebdd4b4
76c085a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-35
76c085a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
76c085a
95d1f61
* Thu Feb 23 2017 Hans de Goede <hdegoede@redhat.com> - 1.0.3-34
95d1f61
- Fix FTBFS on armv7hl (rhbz#1423244)
95d1f61
2b43bf0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-33
2b43bf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2b43bf0
a0f7b47
* Fri Feb 19 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.3-32
a0f7b47
- Fix FTBFS with gcc6 (rhbz#1307359)
a0f7b47
- Add higher-res icon
a0f7b47
- Add appdata
a0f7b47
3d87114
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-31
3d87114
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3d87114
cb49f0c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-30
cb49f0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cb49f0c
98fb67b
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0.3-29
98fb67b
- Rebuilt for GCC 5 C++11 ABI change
98fb67b
6641d47
* Fri Oct 24 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.3-28
6641d47
- Fix building with latest mesa
6641d47
44e2dd9
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-27
44e2dd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
44e2dd9
e6247eb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-26
e6247eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e6247eb
a31fe3e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-25
a31fe3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a31fe3e
a0a01a4
* Thu Feb 14 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0.3-24
a0a01a4
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
a0a01a4
ff2445b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-23
ff2445b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ff2445b
Adam Tkac dba06f0
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.0.3-22
Adam Tkac dba06f0
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac dba06f0
a8e0ae0
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1.0.3-21
a8e0ae0
- rebuild against new libjpeg
a8e0ae0
b92cb67
* Thu Jul 26 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.3-20
b92cb67
- Build all class files in 1.5 format or higher (rhbz#842580)
b92cb67
83ee3db
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-19
83ee3db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
83ee3db
e1ab764
* Fri Apr  6 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.3-18
e1ab764
- Fix bolzplatz2006 not running due to openjdk-1.7 no longer setting
e1ab764
  LD_LIBRARY_PATH
e1ab764
a97f264
* Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> - 1.0.3-17
a97f264
- Resolves rhbz#794501
a97f264
- Patch from Omair Majid <omajid@redhat.com> , removed explicit Java 6 dependency
a97f264
4765581
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-16
4765581
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4765581
0f39c0e
* Wed Dec 14 2011 Hans de Goede <hdegoede@redhat.com> - 1.0.3-15
0f39c0e
- Fix building with new libpng
0f39c0e
7edf2ee
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.0.3-14
7edf2ee
- Rebuild for new libpng
7edf2ee
a9706cd
* Mon Feb 14 2011 Hans de Goede <hdegoede@redhat.com> - 1.0.3-13
a9706cd
- Fix building with gcc-4.6
a9706cd
22ae557
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-12
22ae557
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
22ae557
70fb4bd
* Mon Nov 15 2010 Adam Jackson <ajax@redhat.com> 1.0.3-11
70fb4bd
- Remove explicit Requires: libGL, rpm finds the DSO dep for us.
70fb4bd
c25d7c3
* Wed Nov  4 2009 Hans de Goede <hdegoede@redhat.com> 1.0.3-10
c25d7c3
- Fix building and running with latest vecmath1.2 package
c25d7c3
  (hurray for coordination of changes)
c25d7c3
0ae544f
* Wed Nov  4 2009 Hans de Goede <hdegoede@redhat.com> 1.0.3-9
0ae544f
- Fix hang on exit (by using XF86Vidmode instead of Xrandr)
0ae544f
- Do not crash when openal-soft-devel is not installed
0ae544f
  (dlopen versioned lib instead of .so devel symlink)
0ae544f
- Require openal-soft, as it is dlopened
0ae544f
b866b08
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-8
b866b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b866b08
87b0bdb
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7
87b0bdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
87b0bdb
1bb9f5a
* Wed Apr  2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-6
1bb9f5a
- Fix missing prototype compiler warnings
1bb9f5a
6c11291
* Fri Mar 14 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-5
6c11291
- Adapt launch script and (Build)Requires for icedtea -> openjdk rename
6c11291
- Drop ExclusiveArch now that openjdk also is available for ppc
6c11291
388907b
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.3-4
388907b
- Autorebuild for GCC 4.3
388907b
907c665
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-3
907c665
- Add missing BuildRequires: libXxf86vm-devel, libGLU-devel, libjpeg-devel,
907c665
  libpng-devel, libXext-devel, libXrandr-devel, libXcursor-devel, libXt-devel
907c665
  libXrender-devel, libvorbis-devel, desktop-file-utils
907c665
907c665
* Mon Sep 17 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-2
907c665
- Switch to using autodownloader for the datafiles, upstream wanted to change
907c665
  the license of the datafiles to be free, but not all contributers have
907c665
  agreed to the license change :(
907c665
907c665
* Sat Sep  8 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-1
907c665
- Adapted Packman spec file for Fedora
907c665
907c665
* Mon Jun 18 2007 Toni Graffy <toni@links2linux.de> - 1.0.3-0.pm.1
907c665
- initial release 1.0.3
907c665
- repacked as tar.bz2
907c665
- added docs from binary-tarball