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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 636122 - (hide annotations) (download)
Sat Jun 14 13:27:40 2014 UTC (9 years, 10 months ago) by akien
File size: 2512 byte(s)
Version 1.8.0.3
1 ovitters 256324 %define _version2 %(echo %version | tr . _)
2    
3     Name: triplea
4 akien 636122 Version: 1.8.0.3
5     Release: %mkrel 1
6 ovitters 256324 Summary: A networked open source strategy game
7     Group: Games/Strategy
8 solbu 277138 License: GPLv2+
9 ovitters 256324 URL: http://triplea.sourceforge.net/
10 solbu 256422 Source0: http://prdownloads.sourceforge.net/triplea/%{name}_%{_version2}_source_code_only.zip
11 ovitters 256324 Source1: %{name}.png
12 solbu 277138 Patch0: %{name}-mga-build.xml.patch
13 solbu 277144
14 ovitters 256324 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 akien 636081 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 ovitters 256324 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 solbu 277138 %patch0 -p1 -b .orig~
42 ovitters 256324 %__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 solbu 277138 %__unzip -q -d %{buildroot}%{_gamesdatadir} release/%{name}_all_platforms.zip
54 ovitters 256324
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}/*

  ViewVC Help
Powered by ViewVC 1.1.30