Группа :: Игры/Аркады
Пакет: quake2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_without arts
%def_without alsa
%def_with aa
%def_without qmax
%def_with retex
%def_without asm
%if_with asm
%set_verify_elf_method textrel=relaxed
%endif
Name: quake2
Version: r0.16.1
Release: alt0.1
Summary: Quake II from ID Software, icculus version
License: GPL
Group: Games/Arcade
Url: http://icculus.org/quake2/
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source0: %name-%version.tar.bz2
Source1: quake2
Source2: q2ded
Source3: sdlquake2
Patch0: quake2-vid_so.patch
Patch1: quake2-r0.16.1-link-fixes.patch
Patch2: quake2-r0.16.1-alt-optional-asm.patch
Patch3: quake2-r0.16.1-alt-use-cflags.patch
BuildPreReq: aalib-devel libmesa-devel libSDL-devel libXxf86dga-devel libXxf86vm-devel linux-libc-headers
%description
Quake II, sources from icculus.org.
%prep
#%%define _optlevel 6
#%%add_optflags %optflags_kernel %optflags_notraceback %optflags_fastmath
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p2
%patch3 -p1
%build
%make_build \
CFLAGS="%optflags" \
BUILD_DEDICATED=YES \
%if_with arts
BUILD_ARTS=YES \
%endif
%if_with arts
BUILD_ALSA=YES \
%endif
%if_with aa
BUILD_AA=YES \
%endif
%if_with qmax
BUILD_QMAX=YES \
%endif
%if_with retex
BUILD_RETEXTURE=YES \
%endif
%if_with asm
BUILD_ASM=YES \
%endif
build_release
%install
mkdir -p %buildroot%_libdir/games/quake2/baseq2
mkdir -p %buildroot%_libdir/games/quake2/ctf
mkdir -p %buildroot%prefix/games
cd releasei386
strip --remove-section .comment quake2 *.so
install -m 755 quake2 %buildroot%_libdir/games/quake2/quake2.x86
install -m 755 sdlquake2 %buildroot%_libdir/games/quake2/sdlquake2.x86
install -m 755 q2ded %buildroot%_libdir/games/quake2/q2ded.x86
install -m 755 %SOURCE1 %buildroot%_gamesbindir
install -m 755 %SOURCE2 %buildroot%_gamesbindir
install -m 755 %SOURCE3 %buildroot%_gamesbindir
install -m 755 ctf/gamei386.so %buildroot%_libdir/games/quake2/ctf
install -m 755 gamei386.so %buildroot%_libdir/games/quake2/baseq2
install -m 755 ref_*.so %buildroot%_libdir/games/quake2
%files
%_gamesbindir/*
%_libdir/games/quake2
%doc README TODO *.txt src/docs/
%changelog
…
Полный changelog можно просмотреть здесь
%def_without alsa
%def_with aa
%def_without qmax
%def_with retex
%def_without asm
%if_with asm
%set_verify_elf_method textrel=relaxed
%endif
Name: quake2
Version: r0.16.1
Release: alt0.1
Summary: Quake II from ID Software, icculus version
License: GPL
Group: Games/Arcade
Url: http://icculus.org/quake2/
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source0: %name-%version.tar.bz2
Source1: quake2
Source2: q2ded
Source3: sdlquake2
Patch0: quake2-vid_so.patch
Patch1: quake2-r0.16.1-link-fixes.patch
Patch2: quake2-r0.16.1-alt-optional-asm.patch
Patch3: quake2-r0.16.1-alt-use-cflags.patch
BuildPreReq: aalib-devel libmesa-devel libSDL-devel libXxf86dga-devel libXxf86vm-devel linux-libc-headers
%description
Quake II, sources from icculus.org.
%prep
#%%define _optlevel 6
#%%add_optflags %optflags_kernel %optflags_notraceback %optflags_fastmath
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p2
%patch3 -p1
%build
%make_build \
CFLAGS="%optflags" \
BUILD_DEDICATED=YES \
%if_with arts
BUILD_ARTS=YES \
%endif
%if_with arts
BUILD_ALSA=YES \
%endif
%if_with aa
BUILD_AA=YES \
%endif
%if_with qmax
BUILD_QMAX=YES \
%endif
%if_with retex
BUILD_RETEXTURE=YES \
%endif
%if_with asm
BUILD_ASM=YES \
%endif
build_release
%install
mkdir -p %buildroot%_libdir/games/quake2/baseq2
mkdir -p %buildroot%_libdir/games/quake2/ctf
mkdir -p %buildroot%prefix/games
cd releasei386
strip --remove-section .comment quake2 *.so
install -m 755 quake2 %buildroot%_libdir/games/quake2/quake2.x86
install -m 755 sdlquake2 %buildroot%_libdir/games/quake2/sdlquake2.x86
install -m 755 q2ded %buildroot%_libdir/games/quake2/q2ded.x86
install -m 755 %SOURCE1 %buildroot%_gamesbindir
install -m 755 %SOURCE2 %buildroot%_gamesbindir
install -m 755 %SOURCE3 %buildroot%_gamesbindir
install -m 755 ctf/gamei386.so %buildroot%_libdir/games/quake2/ctf
install -m 755 gamei386.so %buildroot%_libdir/games/quake2/baseq2
install -m 755 ref_*.so %buildroot%_libdir/games/quake2
%files
%_gamesbindir/*
%_libdir/games/quake2
%doc README TODO *.txt src/docs/
%changelog
…
Полный changelog можно просмотреть здесь