Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37568131
en ru br
ALT Linux repositórios
S:2.6.0-alt1
5.0: 2.1.9-alt1
4.1: 2.1.4-alt1
4.0: 2.1.3-alt1
3.0: 2.0.6-alt1

Outros repositórios
Upstream:2.1.3

Group :: Jogos/Estratégia
RPM: freeciv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: freeciv
Version: 2.0.6
#%%define beta_ver 5
Release: alt1%{?beta_ver:.b%beta_ver}

Summary: The Freeciv multi-player strategy game
License: GPL
Group: Games/Strategy
Url: http://www.freeciv.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

%define srcname %name-%version%{?beta_ver:-beta%beta_ver}
Source0: ftp://ftp.freeciv.org/pub/freeciv/%{?beta_ver:beta}%{!?beta_ver:stable}/%srcname.tar.bz2
Source1: ftp://ftp.freeciv.org/pub/freeciv/contrib/sounds/sets/stdsounds3.tar.gz
Source2: ftp://ftp.freeciv.org/freeciv/contrib/manual/manual-1.13.0-2.tar.bz2
Source3: manual-skel.tar.bz2
Source4: %name-wrapper
Source5: %name-client.menu
Source6: %name-server.menu
Source11: %name-client.16.png
Source12: %name-client.32.png
Source13: %name-client.48.png
Source21: %name-server.16.png
Source22: %name-server.32.png
Source23: %name-server.48.png

Patch1: %name-1.14.0-alt-aifill.patch
Patch2: %name-2.0.0-alt-revolt.patch
Patch3: %name-2.0.0-alt-reveal.patch
Patch4: %name-2.0.0-alt-po-ru.patch

Requires: %name-client = %version-%release
Requires: %name-server = %version-%release

# Automatically added by buildreq on Fri Mar 14 2003

BuildRequires: esound-devel glib2-devel libSDL-devel libSDL_mixer-devel libalternatives-devel libaudiofile-devel libgtk+2-devel libreadline-devel libtinfo-devel xorg-x11-devel zlib-devel

%package common
Summary: The Freeciv multi-player strategy game common files
Group: Games/Strategy

%package manual
Summary: The Freeciv multi-player strategy game manual
Group: Games/Strategy
Requires: %name-common = %version-%release

%package server
Summary: The Freeciv multi-player strategy game server
Group: Games/Strategy
Requires: %name-common = %version-%release

%package client
Summary: The Freeciv multi-player strategy game client
Group: Games/Strategy
Requires: %name-common = %version-%release
Provides: %name-client-gui = %version-%release
Provides: %name-client-gtk2 = %version-%release
Provides: %name-client-xaw3d = %version-%release
Obsoletes: %name-client-gtk2, %name-client-xaw3d

%description
Freeciv is a turn-based, multi-player, X based strategy game.  Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R).  In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

%description common
Freeciv is a turn-based, multi-player, X based strategy game.  Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R).  In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

This package contains files common for client ans server.

%description manual
Freeciv is a turn-based, multi-player, X based strategy game.  Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R).  In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

This package contains the Freeciv manual.

%description server
Freeciv is a turn-based, multi-player, X based strategy game.  Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R).  In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

This package contains the Freeciv server.

%description client
Freeciv is a turn-based, multi-player, X based strategy game.  Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R).  In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

This package contains the Freeciv client.

%prep
%setup -q -n %srcname -a1 -a2 -a3
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
find -type f -name \*.orig -delete -print

%build
rm -f configure.in config.cache aclocal.m4
cp m4/x.252 m4/x.m4
cat m4/*.m4 >acinclude.m4
autoreconf -fisv

%configure --enable-server --enable-client=gtk2
%make_build MSUBDIRS=

%install
%makeinstall MSUBDIRS=

# wrapper

%__install -pD -m755 %SOURCE4 %buildroot%_libdir/%name/wrapper
%__mv %buildroot%_bindir/civserver %buildroot%_libdir/%name/
%__ln_s ../lib/%name/wrapper %buildroot%_bindir/civserver

# sounds.

%__cp -a data/stdsounds* %buildroot%_datadir/%name/

# menus/icons.

%__install -pD -m644 %SOURCE5 %buildroot%_menudir/%name-client
%__install -pD -m644 %SOURCE6 %buildroot%_menudir/%name-server
%__install -pD -m644 %SOURCE11 %buildroot%_miconsdir/%name-client.png
%__install -pD -m644 %SOURCE12 %buildroot%_iconsdir/%name-client.png
%__install -pD -m644 %SOURCE13 %buildroot%_liconsdir/%name-client.png
%__install -pD -m644 %SOURCE21 %buildroot%_miconsdir/%name-server.png
%__install -pD -m644 %SOURCE22 %buildroot%_iconsdir/%name-server.png
%__install -pD -m644 %SOURCE23 %buildroot%_liconsdir/%name-server.png

# docs.

%define docdir %_docdir/%name-%version
%__mkdir_p %buildroot%docdir
install -p -m644 AUTHORS NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO} \
%buildroot%docdir/
%__cp -a manual %buildroot%docdir/

%find_lang %name

%pre common
[ -f "%_altdir/%name" ] || exit 0
%unregister_alternatives_always %name ||:

%post server
%update_menus

%postun server
%clean_menus

%post client
%update_menus

%postun client
%clean_menus

%files

%files common -f %name.lang
%dir %_libdir/%name
%_libdir/%name/wrapper
%dir %docdir
%docdir/[A-Z]*

%files manual
%dir %docdir
%docdir/manual

%files server
%_bindir/civserver
%_libdir/%name
%_menudir/%name-server
%_iconsdir/%name-server.png
%_miconsdir/%name-server.png
%_liconsdir/%name-server.png
%_man6dir/civserver.*
%dir %_datadir/%name
%_datadir/%name/civ*
%_datadir/%name/default
%_datadir/%name/history*
%_datadir/%name/nation
%_datadir/%name/scenario

%files client
%_bindir/civclient
%_menudir/%name-client
%_iconsdir/%name-client.png
%_miconsdir/%name-client.png
%_liconsdir/%name-client.png
%_man6dir/civclient.*
%dir %_datadir/%name
%_datadir/%name/flags
%_datadir/%name/freeciv.rc*
%_datadir/%name/helpdata.txt
%_datadir/%name/*isophex*
%_datadir/%name/*trident*
%_datadir/%name/*stdsounds*
%_datadir/%name/misc

%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