Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37661760
en ru br
ALT Linux repositórios
5.0: 5.6.3-alt1
4.1: 5.6.3-alt1
4.0: 5.6.3-alt1
3.0: 5.6.2-alt1

Group :: Jogos/Arcade
RPM: liquidwar

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: liquidwar
Version: 5.6.3
Release: alt1

Group: Games/Arcade
Summary: Liquid War is a unique multiplayer wargame
License: GPL
Url: http://www.ufoot.org/liquidwar/v5

Requires: %{get_dep liballegro}

Source: http://www.ufoot.org/archive/%name-%version.tar.gz
Source2: %name.16.xpm
Source3: %name.32.xpm
Source4: %name.48.xpm

# Automatically added by buildreq on Sun Sep 03 2006 (-bi)


BuildRequires: liballegro-devel linux-libc-headers packages-info-i18n-common
BuildRequires: python-modules python-modules-email python-modules-encodings python-modules-xml

# tetex-dvips tetex-latex


%description
Liquid War is a wargame. But it is different from common wargames.

When playing Liquid War, one has to eat one's opponent. There can be from
2 to 6 players. There are no weapons, the only thing you have to do is to
move a cursor in a 2-D battlefield. This cursor is followed by your army,
which is composed by a great many little fighters. Fighters are represented
by small colored squares. All the fighters who have the same color belong
to the same team. One very often controls several thousands fighters at the
same time. And when fighters from different teams meet, they eat each
other, it is as simple as that.

%prep
%setup -q

%build
autoconf
#export LD_LIBRARY_PATH=
#%%configure --datadir=%_gamesdatadir

%configure --datadir=%_datadir \
   --disable-doc-txt \
   --disable-doc-html \
   --disable-doc-info \
   --disable-doc-ps \
   --disable-doc-pdf

%make_build -C doc
#%%make_build datadir=%_datadir/games 'CONFIG_OPTIONS = -DCONFIG_UNIX_CFG=\".liquidwarrc\" -DCONFIG_UNIX_DAT=\"%_datadir/%name/liquidwar.dat\" -DCONFIG_UNIX_MAP=\"%_datadir/%name/map/\" -DCONFIG_UNIX_TEX=\"%_datadir/%name/texture/\"'
#%%add_optflags -DCONFIG_UNIX_CFG=\".liquidwarrc\" -DCONFIG_UNIX_DAT=\"%_datadir/%name/liquidwar.dat\" -DCONFIG_UNIX_MAP=\"%_datadir/%name/map/\" -DCONFIG_UNIX_TEX=\"%_datadir/%name/texture/\"
#%make_build datadir=%_gamesdatadir ALCFLAGS="-I/usr/liclude -DCONFIG_UNIX_CFG=\".liquidwarrc\" -DCONFIG_UNIX_DAT=\"%_datadir/%name/liquidwar.dat\" -DCONFIG_UNIX_MAP=\"%_datadir/%name/map/\" -DCONFIG_UNIX_TEX=\"%_datadir/%name/texture/\""
%make_build \
DATADIR=%_gamesdatadir/%name \
ALCFLAGS="-I/usr/liclude \
-DCONFIG_UNIX_CFG=\".liquidwarrc\" \
-DCONFIG_UNIX_DAT=\"%_gamesdatadir/%name/liquidwar.dat\" \
-DCONFIG_UNIX_MAP=\"%_gamesdatadir/%name/map/\" \
-DCONFIG_UNIX_TEX=\"%_gamesdatadir/%name/texture/\""

%install
perl -pi -e 's#install_custom_texture install_icon install_gpl#install_custom_texture #' Makefile
%makeinstall gamedir=%buildroot/%_gamesbindir datadir=%buildroot/%_datadir docdir=%buildroot/%_docdir/%name-%version

rm -rf %buildroot/%_bindir

mkdir -p -m755 %buildroot/%_mandir/man6
cp doc/man/%{name}.man %buildroot/%_mandir/man6/%name.6
ln -s %name.6 %buildroot/%_mandir/man6/%name-server.6

mkdir -p %buildroot/%_menudir
cat <<EOF >%buildroot/%_menudir/%name
?package(%name):command="soundwrapper %name" \
 icon=%name.xpm \
 needs="x11" \
 section="Amusement/Arcade" \
 title="Liquid War"\
 longtitle="An unique multiplayer wargame"
EOF
cat <<EOF >%buildroot/%_menudir/%name-server
?package(%name):command="%name-server" \
 icon=%name.xpm \
 needs="text" \
 section="Amusement/Arcade" \
 title="Liquid War - server"\
 longtitle="Liquid War - server"
EOF

mkdir -p %buildroot/%_iconsdir %buildroot/%_miconsdir %buildroot/%_liconsdir
install -m 644 %SOURCE2 %buildroot/%_miconsdir/%name.xpm
install -m 644 %SOURCE3 %buildroot/%_iconsdir/%name.xpm
install -m 644 %SOURCE4 %buildroot/%_liconsdir/%name.xpm

%post
%update_menus
%postun
%clean_menus

%files
%_gamesbindir/*
%doc README*
%_gamesdatadir/%name
%_menudir/*
%_mandir/man6/*
%_datadir/applications/%name.desktop
%_datadir/pixmaps/%name.xpm
%_iconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009