/[packages]/cauldron/triplea/current/SPECS/triplea.spec
ViewVC logotype

Contents of /cauldron/triplea/current/SPECS/triplea.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 384793 - (show annotations) (download)
Mon Jan 14 07:11:44 2013 UTC (11 years, 3 months ago) by umeabot
File size: 2517 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 %define _version2 %(echo %version | tr . _)
2
3 Name: triplea
4 Version: 1.6.1.4
5 Release: %mkrel 2
6 Summary: A networked open source strategy game
7 Group: Games/Strategy
8 License: GPLv2+
9 URL: http://triplea.sourceforge.net/
10 Source0: http://prdownloads.sourceforge.net/triplea/%{name}_%{_version2}_source_code_only.zip
11 Source1: %{name}.png
12 Patch0: %{name}-mga-build.xml.patch
13
14 BuildRequires: ant
15 BuildRequires: dos2unix
16 BuildRequires: jakarta-commons-codec
17 BuildRequires: jakarta-commons-logging
18 BuildRequires: java-devel
19 BuildRequires: java-rpmbuild
20 BuildRequires: jpackage-utils
21 BuildRequires: junit
22 BuildRequires: ant-junit
23 BuildRequires: xerces-j2
24 BuildRequires: xmlbeans
25 Requires: jakarta-commons-codec
26 Requires: jakarta-commons-logging
27 Requires: java >= 1.6
28 BuildArch: noarch
29
30 %description
31 TripleA is a networked open source strategy game, based on the
32 Axis & Allies board game. It allows people to implement and play various
33 strategy board games (i.e. Axis & Allies). The TripleA engine has full
34 networking support for online play, support for sounds, XML support for
35 game files, and has its own imaging subsystem that allows for customized
36 user editable maps to be used. TripleA is versatile, scalable and robust.
37
38
39 %prep
40 %setup -q -n %{name}_%{_version2}
41 %patch0 -p1 -b .orig~
42 %__rm triplea_mac_os_x.sh
43 %__rm triplea_windows.bat
44 dos2unix readme.html changelog.txt doc/*.html
45
46 %build
47 %ant zip
48
49 %install
50 # ant makes a zip file, so unzip that into the final dir.
51 # Don't know another way to do it, yet.
52 %__install -dm 755 %{buildroot}%{_gamesdatadir}
53 %__unzip -q -d %{buildroot}%{_gamesdatadir} release/%{name}_all_platforms.zip
54
55 # startscript
56 %__install -dm 755 %{buildroot}%{_gamesbindir}
57
58 %__cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
59 #!/bin/sh
60 %{_gamesdatadir}/%{name}/%{name}_unix.sh
61 EOF
62 chmod 755 %{buildroot}%{_gamesbindir}/%{name}
63
64 # icon and menu-entry
65 %__install -dm 755 %{buildroot}%{_datadir}/pixmaps
66 %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
67
68 %__install -dm 755 %{buildroot}%{_datadir}/applications
69 %__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
70 [Desktop Entry]
71 Encoding=UTF-8
72 Comment=Axis and Allies clone
73 Name=TripleA
74 GenericName=TripleA
75 Type=Application
76 Exec=%{_gamesbindir}/%{name}
77 Icon=%{name}
78 Categories=Game;StrategyGame;
79 Terminal=false
80 EOF
81
82 %files
83 %doc changelog.txt readme.html doc/*
84 %{_gamesbindir}/%{name}
85 %{_datadir}/applications/%{name}.desktop
86 %{_datadir}/pixmaps/%{name}.png
87 %dir %{_gamesdatadir}/%{name}
88 %{_gamesdatadir}/%{name}/*
89

  ViewVC Help
Powered by ViewVC 1.1.30