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