Репозиторий Sisyphus
Последнее обновление: 26 марта 2019 | Пакетов: 17629 | Посещений: 13283812
en ru br
Репозитории ALT

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

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

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install /usr/bin/glib-gettextize /usr/bin/rsvg-convert ImageMagick-tools pkgconfig(avahi-client) pkgconfig(gio-2.0) pkgconfig(glib-2.0) pkgconfig(gobject-2.0) pkgconfig(gtk+-3.0) pkgconfig(libnotify)
# END SourceDeps(oneline)
%define fedora 25
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           pioneers
Version:        15.3
Release:        alt1_5
Summary:        Turnbased board strategy game (colonize an island)
Group:          Games/Other
License:        GPLv2+
URL:            http://pio.sourceforge.net/
Source0:        http://downloads.sourceforge.net/pio/%{name}-%{version}.tar.gz
Patch0:         pioneers-15.3-sanitize.patch
BuildRequires:  libgnome-devel gtk-builder-convert gtk-demo libgail-devel libgtk+2-devel libgtk+2-gir-devel gettext gettext-tools librarian intltool
BuildRequires:  perl(XML/Parser.pm) desktop-file-utils
Requires:       icon-theme-hicolor
Requires(post): librarian
Requires(postun): librarian

Pioneers is a computerized version of a well known strategy board game. The
goal of the game is to colonize an island. The players play the first
colonists hence the name pioneers.

Pioneers is a networkbased multiplayer game, this package contains the GUI
client as well as both a GUI and CLI version of the server for local games.

%package editor
Summary:        Pioneers Game Editor
Group:          Games/Other
Requires:       pioneers = %{version}-%{release}

%description editor
Pioneers is a computerized version of a well known strategy board game. The
goal of the game is to colonize an island. The players play the first
colinists hence the name pioneers.

The game editor allows maps and game descriptions to be created and
edited graphically.

%setup -q
%patch0 -p1 -z .sanitize

# pioneers uses some GNU extensions

%find_lang %{name}

# Remove the too much like the original splashscreen

rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}/splash.png

# Reinstall the .desktop files

desktop-file-install --delete-original \
%if 0%{?fedora} && 0%{?fedora} < 19
 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop \
 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-editor.desktop \

# 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 Eduardo Mayorga <e at mayorgalinux.com> -->
BugReportURL: https://sourceforge.net/p/pio/bugs/286/
SentUpstream: 2014-09-25
 <id type="desktop">pioneers.desktop</id>
 <summary>Multiplayer board game inspired by The Settlers of Catan</summary>
     Pioneers is a free videogame implementation of the famous German game Settlers of Catan.
     The goal is to build towns, cities and roads on a board that is different every time, while accumulating various types of cards.
     It can be played online.
 <url type="homepage">http://pio.sourceforge.net/</url>
   <screenshot type="default">http://pio.sourceforge.net/screenshots0.11/client.png</screenshot>

if grep Catan `find $RPM_BUILD_ROOT ! -path "$RPM_BUILD_ROOT/usr/src/debug*"`;
 exit 1

%files -f %{name}.lang
%if 0%{?fedora} && 0%{?fedora} < 19

%files editor


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

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