2010-07-22 11:28:09 +02:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: 0ad
|
|
|
|
Version: r7732
|
|
|
|
Release: 1.0
|
|
|
|
License: GNU GPL v2 or later
|
|
|
|
Group: Amusements/Games/Strategy/Real Time
|
|
|
|
Url: http://wildfiregames.com/0ad/
|
|
|
|
Source: 0ad-%{version}.tar.gz
|
2010-08-08 22:33:19 +02:00
|
|
|
Source1: 0ad.desktop
|
|
|
|
Source2: 0ad.png
|
|
|
|
Source3: 0ad.sh
|
2010-07-22 11:28:09 +02:00
|
|
|
Patch0: 0ad-cs7755.patch
|
|
|
|
Patch1: 0ad-cs7757.patch
|
|
|
|
Patch2: 0ad-cs7758.patch
|
|
|
|
Patch3: 0ad-cs7759.patch
|
2010-07-24 17:53:25 +02:00
|
|
|
Patch4: 0ad-cs7791.patch
|
|
|
|
Patch5: 0ad-cs7793.patch
|
|
|
|
Patch6: 0ad-cs7795.patch
|
|
|
|
Patch7: 0ad-cs7796.patch
|
|
|
|
Patch8: 0ad-DllLoader.patch
|
2010-07-24 22:00:53 +02:00
|
|
|
Patch9: 0ad-apicids.patch
|
|
|
|
Patch10: 0ad-traceparse.patch
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: binutils-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: DevIL-devel
|
|
|
|
BuildRequires: fam-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: nasm
|
2010-07-24 08:21:54 +02:00
|
|
|
BuildRequires: python
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: subversion
|
|
|
|
BuildRequires: zip
|
2010-08-08 22:33:19 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: libenet-devel
|
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: wxGTK-devel
|
|
|
|
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: enet-devel
|
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: wxGTK-devel
|
|
|
|
|
|
|
|
%if 0%{?fedora_version} == 13
|
|
|
|
BuildRequires: binutils-static
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
BuildRequires: libenet-devel
|
|
|
|
BuildRequires: libwxgtku2.8-devel
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version} < 201000
|
|
|
|
BuildRequires: libopenal-devel
|
|
|
|
%else:
|
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
%endif
|
|
|
|
|
2010-07-23 01:19:19 +02:00
|
|
|
%if 0%{?mandriva_version} == 201000
|
|
|
|
BuildRequires: libopenal1-soft
|
|
|
|
%endif
|
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: 0ad-data
|
|
|
|
Summary: Free, Open-Source, Cross-Platform RTS Game of Ancient Warfare
|
|
|
|
|
|
|
|
%description
|
|
|
|
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
|
|
|
|
strategy (RTS) game of ancient warfare. In short, it is a historically-based
|
|
|
|
war/economy game that allows players to relive or rewrite the history of Western
|
|
|
|
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
|
|
|
|
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
|
|
|
|
and a flexible and powerful custom-built game engine.
|
|
|
|
|
|
|
|
The game has been in development by Wildfire Games (WFG), a group of volunteer,
|
|
|
|
hobbyist game developers, since 2001. The code and data are available under the GPL
|
|
|
|
license, and the art, sound and documentation are available under CC-BY-SA. In short,
|
|
|
|
we consider 0 A.D. an an educational celebration of game development and ancient
|
|
|
|
history.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2010-07-24 08:21:54 +02:00
|
|
|
%patch4
|
2010-07-24 16:04:04 +02:00
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
2010-07-24 17:53:25 +02:00
|
|
|
%patch8
|
2010-07-24 22:00:53 +02:00
|
|
|
%patch9
|
|
|
|
%patch10
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CPPFLAGS="%{optflags}"
|
2010-08-08 22:33:19 +02:00
|
|
|
build/workspaces/update-workspaces.sh --verbose --bindir %{_bindir} --datadir %{_datadir}/%{name} --libdir %{_libdir}/%{name}
|
2010-07-22 11:28:09 +02:00
|
|
|
pushd build/workspaces/gcc
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
#__make check
|
2010-07-24 16:04:04 +02:00
|
|
|
LD_LIBRARY_PATH=binaries/system binaries/system/test_dbg -libdir binaries/system
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
#makeinstall
|
|
|
|
%__install -Dm 0755 binaries/system/pyrogenesis_dbg %{buildroot}%{_bindir}/pyrogenesis_dbg
|
2010-08-08 22:33:19 +02:00
|
|
|
%__install -Dm 0755 binaries/system/libCollada_dbg.so %{buildroot}%{_libdir}/%{name}/libCollada_dbg.so
|
|
|
|
%__install -Dm 0755 binaries/system/libAtlasUI_dbg.so %{buildroot}%{_libdir}/%{name}/libAtlasUI_dbg.so
|
|
|
|
%__install -Dm 0755 binaries/system/libmozjs-ps-debug.so %{buildroot}%{_libdir}/%{name}/libmozjs-ps-debug.so
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
#__install -Dm 0755 binaries/system/ActorEditor_dbg %{buildroot}/%{_libexecdir}/%{name}/bin/ActorEditor_dbg
|
|
|
|
#__install -Dm 0755 binaries/system/ColourTester_dbg %{buildroot}/%{_libexecdir}/%{name}/bin/ColourTester_dbg
|
|
|
|
|
2010-08-08 22:33:19 +02:00
|
|
|
%__install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%__install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2010-07-24 08:21:54 +02:00
|
|
|
|
2010-08-08 22:33:19 +02:00
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
|
|
|
|
%__install -Dm 0755 %{SOURCE3} %{buildroot}%{_bindir}/0ad
|
|
|
|
|
|
|
|
%__mkdir_p %{buildroot}%{_libdir}/%{name}
|
2010-07-22 11:28:09 +02:00
|
|
|
%__mkdir_p %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.txt
|
2010-07-24 08:21:54 +02:00
|
|
|
%{_bindir}/0ad
|
2010-07-22 11:28:09 +02:00
|
|
|
%{_bindir}/pyrogenesis_dbg
|
2010-08-08 22:33:19 +02:00
|
|
|
%{_libdir}/%{name}/libCollada_dbg.so
|
|
|
|
%{_libdir}/%{name}/libAtlasUI_dbg.so
|
|
|
|
%{_libdir}/%{name}/libmozjs-ps-debug.so
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-07-24 08:21:54 +02:00
|
|
|
%dir %{_datadir}/%{name}
|