2 # TODO: - use arch dependend compilers
4 # - try to make it runnable by non-privileged users (sth wrong with boost?)
5 # - fix problem with font finding
8 Summary: Free, Open-Source, cross-platform RTS game of ancient warfare
11 Release: 0.%{svn_ver}.1
13 Group: X11/Applications/Games
14 Source0: http://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.tar.xz
15 # Source0-md5: b9df52751596633d9aab4cc3b253cb82
16 URL: http://wildfiregames.com/0ad/
17 BuildRequires: DevIL-devel
18 BuildRequires: OpenAL-devel
19 BuildRequires: OpenGL-devel
20 BuildRequires: SDL-devel
21 BuildRequires: boost-devel
23 BuildRequires: enet-devel < 1.3.0
24 BuildRequires: enet-devel >= 1.2.0
25 BuildRequires: libogg-devel
26 BuildRequires: libpng-devel
27 BuildRequires: libvorbis-devel
28 BuildRequires: libxml2-devel
29 BuildRequires: perl-base
30 BuildRequires: pkgconfig
32 BuildRequires: python-modules
33 BuildRequires: sed >= 4.0
34 BuildRequires: wxGTK2-unicode-devel
36 BuildRequires: zlib-devel
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 0 A.D. (pronounced "zero ey-dee") is a free, open-source,
41 cross-platform real-time strategy (RTS) game of ancient warfare. In
42 short, it is a historically-based war/economy game that allows players
43 to relive or rewrite the history of Western civilizations, focusing on
44 the years between 500 B.C. and 500 A.D. The project is highly
45 ambitious, involving state-of-the-art 3D graphics, detailed artwork,
46 sound, and a flexible and powerful custom-built game engine.
49 %setup -q -n %{name}-%{version}-alpha
51 # force link with libboost_*.so not libboost_*-mt.so
52 %{__sed} -i 's,-mt,,g' build/premake/extern_libs.lua
54 # use wx-gtk2-unicode-config instead of wx-config
55 %{__sed} -i 's,wx-config,wx-gtk2-unicode-config,' build/premake/extern_libs.lua
58 export CFLAGS="%{rpmcflags}"
59 export CPPFLAGS="%{rpmcxxflags}"
61 ./update-workspaces.sh \
64 --datadir %{_datadir}/%{name} \
65 --libdir %{_libdir}/%{name}
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_pixmapsdir}}
76 cp -a build/resources/0ad.sh $RPM_BUILD_ROOT%{_bindir}/0ad
77 cp -a binaries/system/pyrogenesis $RPM_BUILD_ROOT%{_bindir}
80 cp -a binaries/system/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
83 cp -a build/resources/0ad.desktop $RPM_BUILD_ROOT%{_desktopdir}
84 cp -a build/resources/0ad.png $RPM_BUILD_ROOT%{_pixmapsdir}
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/0ad
93 %attr(755,root,root) %{_bindir}/pyrogenesis
96 %{_desktopdir}/0ad.desktop
97 %{_pixmapsdir}/0ad.png