File enemy-teritorry.spec of Package enemy-territory
# norootforbuild
Name: enemy-territory
BuildRequires: curl-devel nasm unzip scons
BuildRequires: gcc-c++
%if 0%{?fedora_version}
BuildRequires: libXxf86vm-devel libXxf86dga-devel
%endif
%if 0%{?mandriva_version}
BuildRequires: mesagl-devel mesaglu-devel libstdc++-devel
BuildRequires: libxxf86dga-devel libxxf86dga-devel
%else
BuildRequires: Mesa-devel
%endif
License: GPLv3
Url: http://icculus.org/quake3/
Group: Amusements/Games/3D/Shoot
# don't forget to change the version in the win32 spec file as well!
Version: 2.60d
Release: 1
Summary: Enemy Terriory
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ET-GPL.zip
Patch0: 0001-don-t-link-X-libs-statically.diff
Patch1: 0002-disable-buffered-output-hack.-doesn-t-seem-to-work-wi.diff
Patch2: 0003-enable-64bit-build.diff
Patch4: 0005-build-with-system-curl.diff
Patch5: 0006-use-libsupc-instead-of-hack-for-static-libstdc.diff
Patch6: 0007-prepare-for-64bit-support.diff
Patch7: 0008-set-version-string-for-x86_64.diff
Prefix: %{_prefix}/lib/%name
%description
Enemy Territory first person shooter. This package only includes the binary
files, you still need the data files
Authors:
--------
Id Software, Inc.
%prep
%setup -q -n ET-GPL
%patch0 -p1
%patch1 -p1
%patch2 -p1
rm -rf src/curl-7.12.2
#patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
cat > dobuild <<'EOF'
#!/bin/sh
cd src
scons %{?jobs:JOBS=%jobs} \
BUILD=release \
"$@"
EOF
chmod 755 dobuild
#
./dobuild
#
%install
cd src
arch=`uname -m`
case $arch in
i?86) arch=x86 ;;
esac
q3dir=%{buildroot}%{_prefix}/lib/%name
install -d -m 755 $q3dir
install -d -m 755 $q3dir/etmain/vm
install -m 755 et.$arch $q3dir/
install -m 755 etded.$arch $q3dir/
install -m 644 *.so $q3dir/etmain
%clean
rm -rf %{buildroot}
%post
echo 'copy or symlink pak[0-2].pk3 to %prefix/etmain'
%files
%defattr(-,root,root)
%doc COPYING.txt README.txt
%{_prefix}/lib/%name
%changelog