update to 2.6.586 [release 2.6.586-1mamba;Tue Aug 16 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 18:41:51 +01:00
parent fefa9382e7
commit 3b9af24139

View File

@ -1,40 +1,49 @@
%define sourcever %(echo %version | tr . _)
Name: triplea
Version: 1.6.1.2
Version: 2.6.586
Release: 1mamba
Summary: A turn based strategy game engine and axis and allies clone
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://triplea.sourceforge.net
Source: http://downloads.sourceforge.net/sourceforge/triplea/triplea_%{sourcever}_source_code_only.zip
URL: https://triplea-game.org/
Source: https://github.com/triplea-game/triplea/releases/download/%{version}/triplea-game-headed-%{version}.zip
Patch0: triplea-0.9.0.2-getWindows_conflict.patch
Patch1: triplea-0.9.0.2-disable_LookAndFeel.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: apache-ant
Requires: jre
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
%description
TripleA is a turn based strategy game engine and axis and allies clone.
%prep
%setup -q -n %{name}_%{sourcever}
%setup -q -c
#%patch0 -p1
#%patch1 -p1
%build
ant
cd classes
jar -cf ../bin/triplea.jar games
jar -cf ../bin/patch.jar util
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_libdir}/java/%{name}
install -m0755 bin/triplea.jar bin/patch.jar %{buildroot}%{_libdir}/java/%{name}
install -d -m0755 %{buildroot}%{_datadir}/triplea
install -d -m0755 %{buildroot}%{_bindir}
cp -a bin %{buildroot}%{_datadir}/triplea/
cp -a assets %{buildroot}%{_datadir}/triplea/
cp .triplea-root %{buildroot}%{_datadir}/triplea/
cat > %{buildroot}%{_bindir}/triplea << _EOF
#!/usr/bin/bash
cd %{_datadir}/triplea
java -jar triplea-game-headed-%{version}.jar
_EOF
chmod +x %{buildroot}%{_bindir}/triplea
# create menu link
install -d %{buildroot}/%{_datadir}/applications
@ -43,7 +52,7 @@ cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop <<EOF
Name=TripleA
GenericName=A strategy game
GenericName[it]=Un gioco di strategia
Exec=java -Xmx128m -cp %{_libdir}/java/%{name}/patch.jar:%{_libdir}/java/%{name}/triplea.jar games.strategy.engine.framework.GameRunner
Exec=%{_bindir}/triplea
Type=Application
Icon=kmines
Terminal=false
@ -55,11 +64,20 @@ EOF
%files
%defattr(-,root,root)
%{_libdir}/java/%{name}/patch.jar
%{_libdir}/java/%{name}/triplea.jar
%{_bindir}/triplea
%dir %{_datadir}/triplea
%{_datadir}/triplea/.triplea-root
%dir %{_datadir}/triplea/bin
%{_datadir}/triplea/bin/*
%dir %{_datadir}/triplea/assets
%{_datadir}/triplea/assets/*
%{_datadir}/applications/%{name}.desktop
%changelog
* Tue Aug 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.586-1mamba
- update to 2.6.586
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 1.6.1.2-1mamba
- automatic version update by autodist