1 |
%define revision 09488 |
2 |
|
3 |
# The source for this package was pulled from upstream's subversion (svn). |
4 |
# Use the following commands to generate the tarball: |
5 |
# svn export -r 8899 http://svn.wildfiregames.com/public/ps/trunk/ 0ad-r8899 |
6 |
# find 0ad-r8899 \( -name "*.dll" -or -name "*.exe" -or -name "*.lib" -or -name "*.bat" \) -delete |
7 |
# tar -cJvf 0ad-r8899.tar.xz 0ad-r8899 |
8 |
|
9 |
Name: 0ad |
10 |
Version: 1.0 |
11 |
Release: %mkrel 0.%{revision}.1 |
12 |
License: GNU GPL v2 or later |
13 |
Group: Games/Strategy |
14 |
Summary: Cross-Platform RTS Game of Ancient Warfare |
15 |
Url: http://wildfiregames.com/0ad/ |
16 |
Source: %{name}-r%{revision}-alpha-unix-build.tar.xz |
17 |
Requires: 0ad-data |
18 |
BuildRequires: boost-devel |
19 |
BuildRequires: devil-devel |
20 |
BuildRequires: fam-devel |
21 |
BuildRequires: gcc-c++ |
22 |
BuildRequires: libjpeg-devel |
23 |
BuildRequires: libpng-devel |
24 |
BuildRequires: libvorbis-devel |
25 |
BuildRequires: libxml2-devel |
26 |
BuildRequires: wxGTK-devel |
27 |
BuildRequires: wxgtku-devel |
28 |
BuildRequires: nasm |
29 |
BuildRequires: python |
30 |
BuildRequires: subversion |
31 |
BuildRequires: zip |
32 |
BuildRequires: cmake |
33 |
BuildRequires: desktop-file-utils |
34 |
BuildRequires: pkgconfig |
35 |
BuildRequires: SDL-devel |
36 |
BuildRequires: wxGTK-devel |
37 |
BuildRequires: enet-devel |
38 |
BuildRequires: openal-devel |
39 |
BuildRequires: curl-devel |
40 |
|
41 |
%description |
42 |
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform |
43 |
real-time strategy (RTS) game of ancient warfare. In short, it is a |
44 |
historically-based war/economy game that allows players to relive or rewrite |
45 |
the history of Western civilizations, focusing on the years between 500 B.C. |
46 |
and 500 A.D. The project is highly ambitious, involving state-of-the-art 3D |
47 |
graphics, detailed artwork, sound, and a flexible and powerful custom-built |
48 |
game engine. |
49 |
|
50 |
The game has been in development by Wildfire Games (WFG), a group of volunteer, |
51 |
hobbyist game developers, since 2001. |
52 |
|
53 |
%package data |
54 |
Summary: Data files for 0 A.D the RTS games |
55 |
Group: Games/Strategy |
56 |
License: GPLv2+ and CC-BY-SA |
57 |
BuildArch: noarch |
58 |
Requires: %{name} = %{version}-%{release} |
59 |
|
60 |
%description data |
61 |
Data files for 0 A.D the RTS games such as sound, movies and images. |
62 |
|
63 |
%prep |
64 |
%setup -q -n %{name}-r%{revision}-alpha |
65 |
|
66 |
%build |
67 |
export CFLAGS="%{optflags}" |
68 |
export CPPFLAGS="%{optflags}" |
69 |
build/workspaces/update-workspaces.sh \ |
70 |
--verbose \ |
71 |
--bindir %{_bindir} \ |
72 |
--datadir %{_datadir}/%{name} \ |
73 |
--libdir %{_libdir}/%{name} |
74 |
pushd build/workspaces/gcc |
75 |
%make CONFIG=Release |
76 |
popd |
77 |
|
78 |
%check |
79 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}/%{name} |
80 |
./binaries/system/test -libdir binaries/system |
81 |
|
82 |
%install |
83 |
install -d -m 755 %{buildroot}%{_bindir} |
84 |
install -m 755 binaries/system/pyrogenesis %{buildroot}%{_bindir}/pyrogenesis |
85 |
install -m 755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad |
86 |
|
87 |
install -d -m 755 %{buildroot}%{_libdir}/%{name} |
88 |
install -m 755 binaries/system/libCollada.so %{buildroot}%{_libdir}/%{name}/libCollada.so |
89 |
install -m 755 binaries/system/libAtlasUI.so %{buildroot}%{_libdir}/%{name}/libAtlasUI.so |
90 |
install -m 755 binaries/system/libmozjs-ps-release.so %{buildroot}%{_libdir}/%{name}/libmozjs-ps-release.so |
91 |
install -m 755 binaries/system/libnvcore.so %{buildroot}%{_libdir}/%{name}/libnvcore.so |
92 |
install -m 755 binaries/system/libnvimage.so %{buildroot}%{_libdir}/%{name}/libnvimage.so |
93 |
install -m 755 binaries/system/libnvmath.so %{buildroot}%{_libdir}/%{name}/libnvmath.so |
94 |
install -m 755 binaries/system/libnvtt.so %{buildroot}%{_libdir}/%{name}/libnvtt.so |
95 |
|
96 |
install -d -m 755 %{buildroot}%{_datadir}/applications |
97 |
install -m 644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
98 |
|
99 |
install -d -m 755 %{buildroot}%{_datadir}/pixmaps |
100 |
install -m 644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png |
101 |
|
102 |
install -d -m 755 %{buildroot}%{_datadir}/%{name} |
103 |
cp -a binaries/data/* %{buildroot}%{_datadir}/%{name} |
104 |
|
105 |
%clean |
106 |
rm -rf %{buildroot} |
107 |
|
108 |
%files |
109 |
%defattr(-,root,root) |
110 |
%doc README.txt LICENSE.txt |
111 |
%doc license_gpl-2.0.txt license_lgpl-2.1.txt license_dbghelp.txt |
112 |
%{_bindir}/0ad |
113 |
%{_bindir}/pyrogenesis |
114 |
%{_libdir}/%{name} |
115 |
%{_datadir}/pixmaps/%{name}.png |
116 |
%{_datadir}/applications/%{name}.desktop |
117 |
|
118 |
%files data |
119 |
%defattr(-,root,root) |
120 |
%{_datadir}/0ad |
121 |
|
122 |
|