0ad/0ad.spec

150 lines
4.1 KiB
RPMSpec
Raw Normal View History

# 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
Patch0: 0ad-cs7755.patch
Patch1: 0ad-cs7757.patch
Patch2: 0ad-cs7758.patch
Patch3: 0ad-cs7759.patch
Patch4: 0ad-cs7791.patch
Patch5: 0ad-cs7793.patch
Patch6: 0ad-cs7795.patch
Patch7: 0ad-cs7796.patch
Patch8: 0ad-DllLoader.patch
Patch9: 0ad-apicids.patch
Patch10: 0ad-traceparse.patch
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
BuildRequires: python
BuildRequires: subversion
BuildRequires: zip
%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
%if 0%{?mandriva_version} == 201000
BuildRequires: libopenal1-soft
%endif
%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
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
%build
export CFLAGS="%{optflags}"
export CPPFLAGS="%{optflags}"
build/workspaces/update-workspaces.sh --verbose --bindir %{_bindir} --datadir %{_datadir}/%{name} --libdir %{_libdir}
pushd build/workspaces/gcc
%__make %{?_smp_mflags}
popd
%check
#__make check
LD_LIBRARY_PATH=binaries/system binaries/system/test_dbg -libdir binaries/system
%install
#makeinstall
%__install -Dm 0755 binaries/system/pyrogenesis_dbg %{buildroot}%{_bindir}/pyrogenesis_dbg
%__install -Dm 0755 binaries/system/libCollada_dbg.so %{buildroot}%{_libdir}/libCollada_dbg.so
%__install -Dm 0755 binaries/system/libAtlasUI_dbg.so %{buildroot}%{_libdir}/libAtlasUI_dbg.so
%__install -Dm 0755 binaries/system/libmozjs-ps-debug.so %{buildroot}%{_libdir}/libmozjs-ps-debug.so
#__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
%__ln_s %{_bindir}/pyrogenesis_dbg %{buildroot}%{_bindir}/0ad
%__mkdir_p %{buildroot}%{_datadir}/%{name}
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.txt
%{_bindir}/0ad
%{_bindir}/pyrogenesis_dbg
%{_libdir}/libCollada_dbg.so
%{_libdir}/libAtlasUI_dbg.so
%{_libdir}/libmozjs-ps-debug.so
%dir %{_datadir}/%{name}