Group :: Jogos/Estratégia
RPM: freeciv
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: freeciv
Version: 2.1.9
Release: alt1
Summary: Turn-based strategy game inspired by the history of human civilization
License: GPLv2+
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}
# ftp://ftp.freeciv.org/pub/freeciv/%{?beta_ver:beta}%{!?beta_ver:stable}/%srcname.tar.bz2
Source0: %name-%version.tar
Source1: freeciv-wrapper
Patch: freeciv-%version-%release.patch
Requires: %name-client = %version-%release
Requires: %name-server = %version-%release
BuildRequires: desktop-file-utils libSDL-devel libSDL_mixer-devel libgtk+2-devel libreadline-devel xorg-proto-devel
%package common
Summary: The Freeciv multi-player strategy game common files
Group: Games/Strategy
BuildArch: noarch
Provides: /usr/lib/freeciv/wrapper
Obsoletes: %name-manual < %version
%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 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 -n %srcname
%patch -p1
%build
cat m4/*.m4 >acinclude.m4
autoreconf -fisv
%configure --enable-server --enable-client=gtk2
%make_build MSUBDIRS=
%install
rln()
{
local target=$1 && shift
local source=$1 && shift
target=`relative "$target" "$source"`
ln -s -nf "$target" "%buildroot$source"
}
%make_install DESTDIR=%buildroot MSUBDIRS= install
install -pD -m755 %_sourcedir/freeciv-wrapper \
%buildroot%_libexecdir/%name/wrapper
sed -i 's, at LIBEXECDIR at ,%_libexecdir,g' \
%buildroot%_libexecdir/%name/wrapper
mv %buildroot%_bindir/civserver %buildroot%_libexecdir/%name/
rln %_libexecdir/%name/wrapper %_bindir/civserver
# docs.
%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
install -p -m644 AUTHORS NEWS doc/{BUGS,FAQ,HOWTOPLAY,README*,TODO} \
%buildroot%docdir/
%find_lang %name
%files
%files common -f %name.lang
%dir %_libexecdir/%name
%_libexecdir/%name/wrapper
%dir %_datadir/%name
%dir %docdir
%docdir/[A-Z]*
%files server
%_bindir/civserver
%dir %_libexecdir/%name
%_libexecdir/%name/civserver
%_desktopdir/%name-server.desktop
%_iconsdir/hicolor/*/apps/%name-server.png
%_man6dir/civserver.*
%_datadir/%name/civ*
%_datadir/%name/default*
%_datadir/%name/nation
%_datadir/%name/scenario
%files client
%_bindir/civclient
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name-client.png
%_man6dir/civclient.*
%_datadir/%name/amplio*
%_datadir/%name/buildings*
%_datadir/%name/flags
%_datadir/%name/freeciv.rc*
%_datadir/%name/helpdata.txt
%_datadir/%name/hex2t*
%_datadir/%name/isophex*
%_datadir/%name/misc
%_datadir/%name/stdsounds*
%_datadir/%name/themes
%_datadir/%name/*trident*
%_datadir/%name/wonders*
%changelog
…
Todas as alterações você pod ver aqui
Version: 2.1.9
Release: alt1
Summary: Turn-based strategy game inspired by the history of human civilization
License: GPLv2+
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}
# ftp://ftp.freeciv.org/pub/freeciv/%{?beta_ver:beta}%{!?beta_ver:stable}/%srcname.tar.bz2
Source0: %name-%version.tar
Source1: freeciv-wrapper
Patch: freeciv-%version-%release.patch
Requires: %name-client = %version-%release
Requires: %name-server = %version-%release
BuildRequires: desktop-file-utils libSDL-devel libSDL_mixer-devel libgtk+2-devel libreadline-devel xorg-proto-devel
%package common
Summary: The Freeciv multi-player strategy game common files
Group: Games/Strategy
BuildArch: noarch
Provides: /usr/lib/freeciv/wrapper
Obsoletes: %name-manual < %version
%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 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 -n %srcname
%patch -p1
%build
cat m4/*.m4 >acinclude.m4
autoreconf -fisv
%configure --enable-server --enable-client=gtk2
%make_build MSUBDIRS=
%install
rln()
{
local target=$1 && shift
local source=$1 && shift
target=`relative "$target" "$source"`
ln -s -nf "$target" "%buildroot$source"
}
%make_install DESTDIR=%buildroot MSUBDIRS= install
install -pD -m755 %_sourcedir/freeciv-wrapper \
%buildroot%_libexecdir/%name/wrapper
sed -i 's, at LIBEXECDIR at ,%_libexecdir,g' \
%buildroot%_libexecdir/%name/wrapper
mv %buildroot%_bindir/civserver %buildroot%_libexecdir/%name/
rln %_libexecdir/%name/wrapper %_bindir/civserver
# docs.
%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
install -p -m644 AUTHORS NEWS doc/{BUGS,FAQ,HOWTOPLAY,README*,TODO} \
%buildroot%docdir/
%find_lang %name
%files
%files common -f %name.lang
%dir %_libexecdir/%name
%_libexecdir/%name/wrapper
%dir %_datadir/%name
%dir %docdir
%docdir/[A-Z]*
%files server
%_bindir/civserver
%dir %_libexecdir/%name
%_libexecdir/%name/civserver
%_desktopdir/%name-server.desktop
%_iconsdir/hicolor/*/apps/%name-server.png
%_man6dir/civserver.*
%_datadir/%name/civ*
%_datadir/%name/default*
%_datadir/%name/nation
%_datadir/%name/scenario
%files client
%_bindir/civclient
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name-client.png
%_man6dir/civclient.*
%_datadir/%name/amplio*
%_datadir/%name/buildings*
%_datadir/%name/flags
%_datadir/%name/freeciv.rc*
%_datadir/%name/helpdata.txt
%_datadir/%name/hex2t*
%_datadir/%name/isophex*
%_datadir/%name/misc
%_datadir/%name/stdsounds*
%_datadir/%name/themes
%_datadir/%name/*trident*
%_datadir/%name/wonders*
%changelog
…
Todas as alterações você pod ver aqui