2 # TODO: - use arch dependend compilers
6 Summary: Free, Open-Source, cross-platform RTS game of ancient warfare
9 Release: 0.%{svn_ver}.1
11 Group: X11/Applications/Games
12 Source0: %{name}-%{version}-alpha-unix-build.tar.gz
13 # Source0-md5: f38d660d039a37edebb2ea2f0eb6aa6d
14 URL: http://wildfiregames.com/0ad/
15 BuildRequires: DevIL-devel
16 BuildRequires: OpenAL-devel
17 BuildRequires: OpenGL-devel
18 BuildRequires: SDL-devel
19 BuildRequires: boost-devel
21 BuildRequires: enet < 1.3.0
22 BuildRequires: enet >= 1.2.0
23 BuildRequires: libogg-devel
24 BuildRequires: libpng-devel
25 BuildRequires: libvorbis-devel
26 BuildRequires: libxml2-devel
27 BuildRequires: sed >= 4.0
28 BuildRequires: wxGTK2-unicode-devel
29 BuildRequires: zlib-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 0 A.D. (pronounced "zero ey-dee") is a free, open-source,
34 cross-platform real-time strategy (RTS) game of ancient warfare. In
35 short, it is a historically-based war/economy game that allows players
36 to relive or rewrite the history of Western civilizations, focusing on
37 the years between 500 B.C. and 500 A.D. The project is highly
38 ambitious, involving state-of-the-art 3D graphics, detailed artwork,
39 sound, and a flexible and powerful custom-built game engine.
44 # force link with libboost_*.so not libboost_*-mt.so
45 %{__sed} -i 's,-mt,,g' build/premake/extern_libs.lua
47 # use wx-gtk2-unicode-config instead of wx-config
48 %{__sed} -i 's,wx-config,wx-gtk2-unicode-config,' build/premake/extern_libs.lua
51 export CFLAGS="%{rpmcflags}"
52 export CPPFLAGS="%{rpmcxxflags}"
54 ./update-workspaces.sh \
57 --datadir %{_datadir}/%{name} \
58 --libdir %{_libdir}/%{name}
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_pixmapsdir}}
69 cp -a build/resources/0ad.sh $RPM_BUILD_ROOT%{_bindir}/0ad
70 cp -a binaries/system/pyrogenesis $RPM_BUILD_ROOT%{_bindir}
73 cp -a binaries/system/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
76 cp -a build/resources/0ad.desktop $RPM_BUILD_ROOT%{_desktopdir}
77 cp -a build/resources/0ad.png $RPM_BUILD_ROOT%{_pixmapsdir}
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_bindir}/0ad
86 %attr(755,root,root) %{_bindir}/pyrogenesis
89 %{_desktopdir}/0ad.desktop
90 %{_pixmapsdir}/0ad.png