2 # TODO: - use arch dependend compilers
7 Summary: Free, Open-Source, cross-platform RTS game of ancient warfare
10 Release: 0.%{svn_ver}.1
12 Group: X11/Applications/Games
13 Source0: %{name}-%{version}-alpha-unix-build.tar.gz
14 # Source0-md5: f38d660d039a37edebb2ea2f0eb6aa6d
15 URL: http://wildfiregames.com/0ad/
16 BuildRequires: boost-devel
17 BuildRequires: sed >= 4.0
18 BuildRequires: wxGTK2-unicode-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 0 A.D. (pronounced "zero ey-dee") is a free, open-source,
23 cross-platform real-time strategy (RTS) game of ancient warfare. In
24 short, it is a historically-based war/economy game that allows players
25 to relive or rewrite the history of Western civilizations, focusing on
26 the years between 500 B.C. and 500 A.D. The project is highly
27 ambitious, involving state-of-the-art 3D graphics, detailed artwork,
28 sound, and a flexible and powerful custom-built game engine.
33 # force link with libboost_*.so not libboost_*-mt.so
34 %{__sed} -i 's,-mt,,g' build/premake/extern_libs.lua
36 # use wx-gtk2-unicode-config instead of wx-config
37 %{__sed} -i 's,wx-config,wx-gtk2-unicode-config,' build/premake/extern_libs.lua
40 export CFLAGS="%{rpmcflags}"
41 export CPPFLAGS="%{rpmcxxflags}"
43 ./update-workspaces.sh \
46 --datadir %{_datadir}/%{name} \
47 --libdir %{_libdir}/%{name}
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_pixmapsdir}}
58 cp -a build/resources/0ad.sh $RPM_BUILD_ROOT%{_bindir}/0ad
59 cp -a binaries/system/pyrogenesis $RPM_BUILD_ROOT%{_bindir}
62 cp -a binaries/system/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
65 cp -a build/resources/0ad.desktop $RPM_BUILD_ROOT%{_desktopdir}
66 cp -a build/resources/0ad.png $RPM_BUILD_ROOT%{_pixmapsdir}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_bindir}/0ad
75 %attr(755,root,root) %{_bindir}/pyrogenesis
78 %{_desktopdir}/0ad.desktop
79 %{_pixmapsdir}/0ad.png