1 |
# FYI: |
2 |
# http://trac.wildfiregames.com/wiki/BuildInstructions#Linux |
3 |
|
4 |
%define alpha 19 |
5 |
|
6 |
Name: 0ad |
7 |
Epoch: 1 |
8 |
Version: 0.0.%{alpha} |
9 |
Release: %mkrel 1 |
10 |
License: GPLv2+ LGPLv2 |
11 |
Group: Games/Strategy |
12 |
Summary: Cross-Platform RTS Game of Ancient Warfare |
13 |
Url: http://play0ad.com/ |
14 |
Source0: http://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.tar.xz |
15 |
# adapted from binaries/system/readme.txt |
16 |
# It is advisable to review this file on newer versions, to update the |
17 |
# version field and check for extra options. Note that windows specific, |
18 |
# and disabled options were not added to the manual page. |
19 |
Source1: %{name}.6 |
20 |
Patch0: 0ad-0.0.18-mga-system-valgrind.patch |
21 |
Requires: %{name}-data >= %{epoch}:%{version} |
22 |
|
23 |
BuildRequires: boost-devel |
24 |
BuildRequires: cmake |
25 |
BuildRequires: jpeg-devel |
26 |
BuildRequires: miniupnpc-devel |
27 |
BuildRequires: pkgconfig(gloox) |
28 |
BuildRequires: pkgconfig(libcurl) |
29 |
BuildRequires: pkgconfig(libenet) |
30 |
BuildRequires: pkgconfig(libpng) |
31 |
BuildRequires: pkgconfig(libxml-2.0) |
32 |
BuildRequires: pkgconfig(nspr) |
33 |
BuildRequires: pkgconfig(openal) |
34 |
BuildRequires: pkgconfig(sdl2) |
35 |
BuildRequires: pkgconfig(valgrind) |
36 |
BuildRequires: pkgconfig(vorbisfile) |
37 |
BuildRequires: pkgconfig(xcursor) |
38 |
BuildRequires: pkgconfig(zlib) |
39 |
BuildRequires: python |
40 |
BuildRequires: wxgtk3.0-devel |
41 |
|
42 |
%description |
43 |
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform |
44 |
real-time strategy (RTS) game of ancient warfare. In short, it is a |
45 |
historically-based war/economy game that allows players to relive or rewrite |
46 |
the history of Western civilizations, focusing on the years between 500 B.C. |
47 |
and 500 A.D. The project is highly ambitious, involving state-of-the-art 3D |
48 |
graphics, detailed artwork, sound, and a flexible and powerful custom-built |
49 |
game engine. |
50 |
|
51 |
The game has been in development by Wildfire Games (WFG), a group of volunteer, |
52 |
hobbyist game developers, since 2001. |
53 |
|
54 |
%prep |
55 |
%autosetup -p1 -n %{name}-0.0.%{alpha}-alpha |
56 |
build/workspaces/clean-workspaces.sh |
57 |
|
58 |
%build |
59 |
%setup_compile_flags |
60 |
build/workspaces/update-workspaces.sh \ |
61 |
--bindir=%{_gamesbindir} \ |
62 |
--datadir=%{_gamesdatadir}/%{name} \ |
63 |
--libdir=%{_libdir}/%{name} |
64 |
# We don't have mozjs31 nor nvtt in mga5 |
65 |
# --with-system-nvtt |
66 |
# --with-system-mozjs31 |
67 |
|
68 |
%make config=release verbose=1 -C build/workspaces/gcc |
69 |
|
70 |
%check |
71 |
# test fails as they requires libraries already installed |
72 |
#export LD_LIBRARY_PATH=%{buildroot}%{_libdir}/%{name} |
73 |
#./binaries/system/test |
74 |
|
75 |
%install |
76 |
install -d %{buildroot}%{_gamesbindir} |
77 |
install -m755 binaries/system/pyrogenesis %{buildroot}%{_gamesbindir}/pyrogenesis |
78 |
install -m755 build/resources/0ad.sh %{buildroot}%{_gamesbindir}/%{name} |
79 |
|
80 |
install -d %{buildroot}%{_libdir}/%{name} |
81 |
install -m755 binaries/system/*.so %{buildroot}%{_libdir}/%{name} |
82 |
rm -f %{buildroot}%{_libdir}/%{name}/libmozjs31-ps-debug.so |
83 |
|
84 |
install -D -m644 build/resources/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
85 |
install -D -m644 build/resources/%{name}.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml |
86 |
install -D -m644 build/resources/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png |
87 |
|
88 |
install -d %{buildroot}%{_gamesdatadir}/%{name} |
89 |
cp -a binaries/data/* %{buildroot}%{_gamesdatadir}/%{name} |
90 |
|
91 |
install -D -m644 %{_sourcedir}/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6 |
92 |
ln -sf %{name}.6 %{buildroot}%{_mandir}/man6/pyrogenesis.6 |
93 |
|
94 |
%files |
95 |
%doc README.txt LICENSE.txt |
96 |
%{_gamesbindir}/%{name} |
97 |
%{_gamesbindir}/pyrogenesis |
98 |
%{_gamesdatadir}/%{name}/ |
99 |
%{_libdir}/%{name}/ |
100 |
%{_datadir}/appdata/%{name}.appdata.xml |
101 |
%{_datadir}/applications/%{name}.desktop |
102 |
%{_iconsdir}/hicolor/128x128/apps/%{name}.png |
103 |
%{_mandir}/man6/*.6* |