Группа :: Игры/Аркады
Пакет: bzflag
Главная Изменения Спек Патчи Загрузить Bugs and FR
%undefine cvs
%def_disable plugins
%def_enable menufile
Name: bzflag
Version: 2.0.8
Release: alt0.M24.1
Summary: A multiplayer 3D tank battle game
License: GPL
Group: Games/Arcade
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Url: http://www.bzflag.org
Source: %name-%version.tar
Source10: %name.16.png
Source11: %name.32.png
Source12: %name.48.png
Source13: %name.menu
Source14: bzfs.init
Patch1: bzflag-2.0.8-service-alt.patch
Summary(ru_RU.KOI8-R): Трехмерная сетевая игра - битва на танках
Summary(uk_UA.KOI8-U): Тривим╕рна мережева гра на танках
Requires: %name-server
# Automatically added by buildreq on Sun Jun 18 2006
BuildRequires: XFree86-devel XFree86-libs bc esound gcc-c++ libGLU-devel libSDL-devel libSDL_image-devel libcurl-devel libglew-devel libncurses-devel libssl-devel libstdc++-devel libtinfo-devel zlib-devel
%description
BZFlag is a multiplayer 3D tank battle game. It's one of the most popular games
ever on Silicon Graphics systems.
%description -l ru_RU.KOI8-R
BZFlag - многопользовательская танковая битва. Одна из игр всех времен и народов
на Silicon Graphics.
%description -l uk_UA.KOI8-U
BZFlag - багатокористувацька танкова гра. Одна з ╕гор ус╕х час╕в та народ╕в
на Silicon Graphics.
%package admin
Summary: BZFlag administration utility.
Group: Games/Arcade
%description admin
This package contains BZFlag game server administration utility.
%package server
Summary: BZFlag BZFS standalone server.
Group: Games/Arcade
%description server
This package contains BZFlags standalone game server.
%prep
%ifdef cvs
%setup -q -n %name
%else
%setup -q
%endif
%patch1 -p1
%build
%ifdef cvs
%__rm -f missing
%__libtoolize --copy --force
%__aclocal -I m4
%__autoheader
%__automake -a -c --gnu
%__autoconf
%endif
%configure \
--bindir=%_gamesbindir \
--datadir=%_gamesdatadir \
--with-x \
--enable-threads \
%{subst_enable plugins} \
--without-regex \
--enable-robots
%make_build
cd misc
make
cd ..
%install
%make_install DESTDIR="%buildroot" install
%__install -pD -m644 %SOURCE10 %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE11 %buildroot%_iconsdir/%name.png
%__install -pD -m644 %SOURCE12 %buildroot%_liconsdir/%name.png
%if_enabled menufile
%__install -pD -m644 %SOURCE13 %buildroot%_menudir/%name
%else
mkdir -p %buildroot%_datadir/applications
%__install -pD -m644 misc/bzflag.desktop %buildroot%_datadir/applications
%endif
%__install -pD -m755 %SOURCE14 %buildroot%_initdir/bzfs
%__mkdir_p %buildroot/var/run/%name
%pre
%_sbindir/groupadd -r -f %name &>/dev/null
%_sbindir/useradd -r -g %name -d %_localstatedir/%name -s /dev/null \
-c "BZFlag Game Server" -M -n %name &>/dev/null ||:
%post
%update_menus
%post_service bzfs
%postun
%clean_menus
%preun
%preun_service bzfs
%files
%exclude %_gamesbindir/bzadmin
%exclude %_man6dir/bzadmin.6.gz
%exclude %_gamesbindir/bzfs
%exclude %_man6dir/bzfs.6.bz2
%attr(755, %name, %name) /var/run/%name
%doc README RELNOTES BUGS misc/bzfs_conf.html misc/bzfs.conf misc/groups.conf
%_man6dir/*
%_man5dir/*
%_gamesbindir/*
%_gamesdatadir/%name
%if_enabled menufile
%_menudir/%name
%else
%_datadir/applications/*
%endif
%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png
%files admin
%_gamesbindir/bzadmin
%_man6dir/bzadmin.6.gz
%files server
%_gamesbindir/bzfs
%_man6dir/bzfs.6.bz2
%_initdir/bzfs
%changelog
…
Полный changelog можно просмотреть здесь
%def_disable plugins
%def_enable menufile
Name: bzflag
Version: 2.0.8
Release: alt0.M24.1
Summary: A multiplayer 3D tank battle game
License: GPL
Group: Games/Arcade
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Url: http://www.bzflag.org
Source: %name-%version.tar
Source10: %name.16.png
Source11: %name.32.png
Source12: %name.48.png
Source13: %name.menu
Source14: bzfs.init
Patch1: bzflag-2.0.8-service-alt.patch
Summary(ru_RU.KOI8-R): Трехмерная сетевая игра - битва на танках
Summary(uk_UA.KOI8-U): Тривим╕рна мережева гра на танках
Requires: %name-server
# Automatically added by buildreq on Sun Jun 18 2006
BuildRequires: XFree86-devel XFree86-libs bc esound gcc-c++ libGLU-devel libSDL-devel libSDL_image-devel libcurl-devel libglew-devel libncurses-devel libssl-devel libstdc++-devel libtinfo-devel zlib-devel
%description
BZFlag is a multiplayer 3D tank battle game. It's one of the most popular games
ever on Silicon Graphics systems.
%description -l ru_RU.KOI8-R
BZFlag - многопользовательская танковая битва. Одна из игр всех времен и народов
на Silicon Graphics.
%description -l uk_UA.KOI8-U
BZFlag - багатокористувацька танкова гра. Одна з ╕гор ус╕х час╕в та народ╕в
на Silicon Graphics.
%package admin
Summary: BZFlag administration utility.
Group: Games/Arcade
%description admin
This package contains BZFlag game server administration utility.
%package server
Summary: BZFlag BZFS standalone server.
Group: Games/Arcade
%description server
This package contains BZFlags standalone game server.
%prep
%ifdef cvs
%setup -q -n %name
%else
%setup -q
%endif
%patch1 -p1
%build
%ifdef cvs
%__rm -f missing
%__libtoolize --copy --force
%__aclocal -I m4
%__autoheader
%__automake -a -c --gnu
%__autoconf
%endif
%configure \
--bindir=%_gamesbindir \
--datadir=%_gamesdatadir \
--with-x \
--enable-threads \
%{subst_enable plugins} \
--without-regex \
--enable-robots
%make_build
cd misc
make
cd ..
%install
%make_install DESTDIR="%buildroot" install
%__install -pD -m644 %SOURCE10 %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE11 %buildroot%_iconsdir/%name.png
%__install -pD -m644 %SOURCE12 %buildroot%_liconsdir/%name.png
%if_enabled menufile
%__install -pD -m644 %SOURCE13 %buildroot%_menudir/%name
%else
mkdir -p %buildroot%_datadir/applications
%__install -pD -m644 misc/bzflag.desktop %buildroot%_datadir/applications
%endif
%__install -pD -m755 %SOURCE14 %buildroot%_initdir/bzfs
%__mkdir_p %buildroot/var/run/%name
%pre
%_sbindir/groupadd -r -f %name &>/dev/null
%_sbindir/useradd -r -g %name -d %_localstatedir/%name -s /dev/null \
-c "BZFlag Game Server" -M -n %name &>/dev/null ||:
%post
%update_menus
%post_service bzfs
%postun
%clean_menus
%preun
%preun_service bzfs
%files
%exclude %_gamesbindir/bzadmin
%exclude %_man6dir/bzadmin.6.gz
%exclude %_gamesbindir/bzfs
%exclude %_man6dir/bzfs.6.bz2
%attr(755, %name, %name) /var/run/%name
%doc README RELNOTES BUGS misc/bzfs_conf.html misc/bzfs.conf misc/groups.conf
%_man6dir/*
%_man5dir/*
%_gamesbindir/*
%_gamesdatadir/%name
%if_enabled menufile
%_menudir/%name
%else
%_datadir/applications/*
%endif
%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png
%files admin
%_gamesbindir/bzadmin
%_man6dir/bzadmin.6.gz
%files server
%_gamesbindir/bzfs
%_man6dir/bzfs.6.bz2
%_initdir/bzfs
%changelog
…
Полный changelog можно просмотреть здесь