Репозиторий Sisyphus
Последнее обновление: 7 февраля 2023 | Пакетов: 18179 | Посещений: 26675649
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: biloba

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Group: Games/Other
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install imake libSDL-devel libX11-devel libXt-devel xorg-cf-files
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           biloba
Version:        0.9.3
Release:        alt2_20
Summary:        A tactical board game

License:        GPLv2+
URL:            http://biloba.sourceforge.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        biloba.desktop

BuildRequires:  gcc autoconf automake
BuildRequires:  desktop-file-utils ImageMagick-tools libSDL_image-devel libSDL_mixer-devel
Requires:       icon-theme-hicolor
Source44: import.info

Biloba is a very innovative tactical board game. It can be played
by 2, 3 or 4 players and against the computer (AI).
You will be able to play on the same computer or online against
your opponents.

%setup -q

autoreconf -if
CFLAGS="-fcommon -g"
export CFLAGS
./configure --prefix=%{_prefix}

iconv -f iso-8859-1 -t utf-8 ChangeLog -o ChangeLog.char
mv ChangeLog.char ChangeLog

make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{64x64,32x32,16x16}/apps
cp -p biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/biloba.png
convert -scale 32x32 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/biloba.png
convert -scale 16x16 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/biloba.png

# Register as an application to be visible in the software center

# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
EmailAddress: colin at colino.net
SentUpstream: 2014-09-17
 <id type="desktop">biloba.desktop</id>
 <summary>Strategic board game</summary>
     Biloba is a board game for 2 to 4 players that involves moving pawns around on
     an octagonal board with square cells. The goal of bilboa is to remove all of your
     opponent's pawns. Bilboa can be played both against AI and real opponents.
 <url type="homepage">http://biloba.sourceforge.net/</url>
   <screenshot type="default">http://biloba.sourceforge.net/2p.png</screenshot>
 <!-- FIXME: change this to an upstream email address for spec updates
 <updatecontact>someone_who_cares at upstream_project.org</updatecontact>

desktop-file-install                    \
 --dir=$RPM_BUILD_ROOT%{_datadir}/applications         \



Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin