Sisyphus repository
Last update: 16 january 2021 | SRPMs: 17779 | Visits: 20062095
en ru br
ALT Linux repos
S:0.11.6-alt2
5.0: 0.7.4-alt1

Other repositories
Upstream:0.7.3

Group :: Games/Strategy
RPM: freecol

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: freecol
Version: 0.7.4
Release: alt1
Url: http://freecol.org
Group: Games/Strategy
License: GPL3
Source: %name-%version.tar.gz
Source1: %name.desktop
Source2: %name.xpm
Packager: Mikhail Pokidko <pma at altlinux.ru>
Summary: FreeCol is opensource Colonization clone.
BuildArch: noarch
#BuildRequires: /proc
#BuildRequires: j2se = 1.6.0
#BuildRequires: java-1.6.0-sun-devel java-1.6.0-sun-javaws
#BuildRequires: ant
#BuildRequires: jline
#BuildRequires(pre): rpm-build-java

BuildRequires: desktop-file-utils

Requires: java-1.6.0-sun java-common java-1.6.0-sun-javaws
#Requires: java java-common
#j2se >= 1.6


%description
FreeCol 1.0.0 is an almost exact Colonization clone.
FreeCol 2 go beyond the original Colonization.
See http://freecol.org for details.

%prep
%setup -q -n %name

%build
#ant

%install
mkdir -p %buildroot%_bindir \
%buildroot%_gamesdatadir/%name/jars/ \
%buildroot%_gamesdatadir/%name/data/{audio,fonts,images,maps,strings} \
%buildroot%_gamesdatadir/%name/data/audio/sfx \
%buildroot%_gamesdatadir/%name/data/images/{bonus,colonies,forest,good,indians,misc,monarch,order-buttons,river,terrain,ui,units} \
%buildroot%_gamesdatadir/%name/data/images/order-buttons/{order-buttons00,order-buttons01,order-buttons02,order-buttons03} \
%buildroot%_gamesdatadir/%name/data/images/terrain/{terrain00,terrain01,terrain02,terrain03,terrain04,terrain05,terrain06,terrain07,terrain08,terrain09,terrain10,terrain11,terrain12,terrain13,terrain14,terrain15} \
%buildroot%_desktopdir \
%buildroot%_iconsdir


install -p FreeCol.jar %buildroot%_gamesdatadir/%name/FreeCol.jar
install -p jars/*.jar %buildroot%_gamesdatadir/%name/jars/
cp -pr data/ %buildroot%_gamesdatadir/%name/

cat > %buildroot%_bindir/%name <<EOF
#!/bin/sh
#mkdir \$HOME/freecol
pushd %_gamesdatadir/%name >/dev/null 2>&1
/usr/bin/java -Xmx256M -jar %_gamesdatadir/%name/FreeCol.jar $1 $2 $3 $4 $5 $6 $7 $8 $9
popd >/dev/null 2>&1
EOF


chmod +x %buildroot%_bindir/%name
cp %SOURCE1 %buildroot%_desktopdir/%name.desktop
#cp %%SOURCE2 %buildroot%_iconsdir/%name.xpm
install -p %name.xpm %buildroot%_iconsdir/%name.xpm

%files
%_bindir/%name
%_gamesdatadir/%{name}*
%_desktopdir/%name.desktop
%_iconsdir/%name.xpm

%post
%update_menus
%update_desktopdb

%postun
%clean_menus
%clean_desktopdb

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin