/[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 256324 - (show annotations) (download)
Wed Jun 6 16:57:59 2012 UTC (11 years, 10 months ago) by ovitters
File size: 2601 byte(s)
imported package triplea
1 %define _version2 %(echo %version | tr . _)
2
3 Name: triplea
4 Version: 1.5.2.1
5 Release: %mkrel 1
6 Summary: A networked open source strategy game
7 Group: Games/Strategy
8 License: GPLv2
9 URL: http://triplea.sourceforge.net/
10 Source0: %{name}_%{_version2}_source_code_only.zip
11 Source1: %{name}.png
12 Patch0: %{name}-build.xml.patch
13 BuildRequires: ant
14 BuildRequires: dos2unix
15 BuildRequires: jakarta-commons-codec
16 BuildRequires: jakarta-commons-logging
17 BuildRequires: java-devel
18 BuildRequires: java-rpmbuild
19 BuildRequires: jpackage-utils
20 BuildRequires: junit
21 BuildRequires: ant-junit
22 BuildRequires: xerces-j2
23 BuildRequires: xmlbeans
24 Requires: jakarta-commons-codec
25 Requires: jakarta-commons-logging
26 Requires: java >= 1.6
27 BuildArch: noarch
28 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
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 (ie. 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
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 rm -rf %{buildroot}
51 # ant makes a zip file, so unzip that into the final dir.
52 # Don't know another way to do it, yet.
53 %__install -dm 755 %{buildroot}%{_gamesdatadir}
54 %__unzip -q -d %{buildroot}%{_gamesdatadir} release/%{name}_%{_version2}_all_platforms.zip
55
56 # startscript
57 %__install -dm 755 %{buildroot}%{_gamesbindir}
58
59 %__cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
60 #!/bin/sh
61 %{_gamesdatadir}/%{name}/%{name}_unix.sh
62 EOF
63 chmod 755 %{buildroot}%{_gamesbindir}/%{name}
64
65 # icon and menu-entry
66 %__install -dm 755 %{buildroot}%{_datadir}/pixmaps
67 %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
68
69 %__install -dm 755 %{buildroot}%{_datadir}/applications
70 %__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
71 [Desktop Entry]
72 Encoding=UTF-8
73 Comment=Axis and Allies clone
74 Name=TripleA
75 GenericName=TripleA
76 Type=Application
77 Exec=%{_gamesbindir}/%{name}
78 Icon=%{name}
79 Categories=Game;StrategyGame;
80 Terminal=false
81 EOF
82
83 %clean
84 rm -rf %{buildroot}
85
86 %files
87 %defattr(-,root,root,-)
88 %doc changelog.txt readme.html doc/*
89 %{_gamesbindir}/%{name}
90 %{_datadir}/applications/%{name}.desktop
91 %{_datadir}/pixmaps/%{name}.png
92 %dir %{_gamesdatadir}/%{name}
93 %{_gamesdatadir}/%{name}/*
94

  ViewVC Help
Powered by ViewVC 1.1.30