Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a687fd72899634e37a7e9cb031255c5f > files > 3

triplea-1.6.1.4-2.mga3.src.rpm

%define	_version2	%(echo %version | tr . _)

Name:		triplea
Version:	1.6.1.4
Release:	%mkrel 2
Summary:	A networked open source strategy game
Group:		Games/Strategy
License:	GPLv2+
URL:		http://triplea.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/triplea/%{name}_%{_version2}_source_code_only.zip
Source1:	%{name}.png
Patch0:		%{name}-mga-build.xml.patch

BuildRequires:	ant
BuildRequires:	dos2unix
BuildRequires:	jakarta-commons-codec
BuildRequires:	jakarta-commons-logging
BuildRequires:	java-devel
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils
BuildRequires:	junit
BuildRequires:	ant-junit
BuildRequires:	xerces-j2
BuildRequires:	xmlbeans
Requires:	jakarta-commons-codec
Requires:	jakarta-commons-logging
Requires:	java >= 1.6
BuildArch:	noarch

%description
TripleA is a networked open source strategy game, based on the 
Axis & Allies board game. It allows people to implement and play various 
strategy board games (i.e. Axis & Allies). The TripleA engine has full 
networking support for online play, support for sounds, XML support for 
game files, and has its own imaging subsystem that allows for customized
user editable maps to be used. TripleA is versatile, scalable and robust.


%prep
%setup -q -n %{name}_%{_version2}
%patch0 -p1 -b .orig~
%__rm triplea_mac_os_x.sh
%__rm triplea_windows.bat
dos2unix     readme.html changelog.txt doc/*.html

%build
%ant zip

%install
# ant makes a zip file, so unzip that into the final dir.
# Don't know another way to do it, yet.
%__install -dm 755 %{buildroot}%{_gamesdatadir}
%__unzip -q -d %{buildroot}%{_gamesdatadir} release/%{name}_all_platforms.zip

# startscript
%__install -dm 755 %{buildroot}%{_gamesbindir}

%__cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
%{_gamesdatadir}/%{name}/%{name}_unix.sh
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icon and menu-entry
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps

%__install -dm 755 %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Comment=Axis and Allies clone
Name=TripleA
GenericName=TripleA
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;StrategyGame;
Terminal=false
EOF

%files
%doc changelog.txt readme.html doc/*
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*



%changelog

* Mon Jan 14 2013 umeabot <umeabot> 1.6.1.4-2.mga3
+ Revision: 384793
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Dec 23 2012 solbu <solbu> 1.6.1.4-1.mga3
+ Revision: 334078
- Rediff patch
- New version

* Sat Sep 08 2012 solbu <solbu> 1.6.1.2-1.mga3
+ Revision: 289870
- New version

* Wed Aug 01 2012 solbu <solbu> 1.6.1.1-1.mga3
+ Revision: 277145
- Spec cleanup
- New version
- Fix Licence
- Rename and rediff patch

* Wed Jun 06 2012 solbu <solbu> 1.5.2.1-1.mga3
+ Revision: 256422
- Spec cleanup

  + ovitters <ovitters>
    - imported package triplea