Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046680
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_28
Summary:        A tactical board game

License:        GPL-2.0-or-later
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

%description
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.

%prep
%setup -q


%build
export CFLAGS="$CFLAGS -fcommon -g"
autoreconf -if
%configure --prefix=%{_prefix}
%make_build

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

%install
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
-->
<application>
 <id type="desktop">biloba.desktop</id>
 <metadata_license>CC0-1.0</metadata_license>
 <summary>Strategic board game</summary>
 <description>
   <p>
     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.
   </p>
 </description>
 <url type="homepage">http://biloba.sourceforge.net/</url>
 <screenshots>
   <screenshot type="default">http://biloba.sourceforge.net/2p.png</screenshot>
   <screenshot>http://biloba.sourceforge.net/3p.png</screenshot>
   <screenshot>http://biloba.sourceforge.net/4p.png</screenshot>
 </screenshots>
 <!-- FIXME: change this to an upstream email address for spec updates
 <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
  -->
</application>
EOF

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

%files
%doc AUTHORS ChangeLog COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/??x??/apps/%{name}.png
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop

%changelog

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

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