diff --git a/triplea.spec b/triplea.spec index 3f1d90c..e6016f4 100644 --- a/triplea.spec +++ b/triplea.spec @@ -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 -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 < 2.6.586-1mamba +- update to 2.6.586 + * Thu Oct 11 2012 Automatic Build System 1.6.1.2-1mamba - automatic version update by autodist