Репозиторий Sisyphus
Последнее обновление: 13 августа 2020 | Пакетов: 17687 | Посещений: 19043051
en ru br
Репозитории ALT

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

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

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-validate /usr/bin/glib-gettextize gcc-c++ imake libXt-devel xorg-cf-files
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%name and %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define name flaw
%define version 1.3.2a
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Name: flaw
Version: 1.3.2a
Release: alt2_18
Summary: Free top-down wizard battle game
Group: Games/Other
License: GPLv3+
URL: http://flaw.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
#patch to build on aarch64, upstream notified to use autoconf 2.69
Patch0: flaw-aarch64.patch

BuildRequires: libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libSDL-devel fonts-ttf-gnu-freefont-serif
BuildRequires: libSDL_gfx-devel desktop-file-utils fonts-ttf-gnu-freefont-sans gettext gettext-tools intltool
BuildRequires: gcc
Requires: fonts-ttf-gnu-freefont-sans fonts-ttf-gnu-freefont-serif
Source44: import.info

FLAW is a free top-down wizard battle game.
It can be played by up to 5 players simultaneously. The goal of the game is to
survive as long as possible while more and more fireballs appear in the arena.
Game play is simple and self-explanatory. It's all about evading the fireballs
and knocking your opponents down. In addition there are collectible magic gems
that provide special abilities.

%setup -q
%patch0 -p1

# Fix spurious executable permissions

chmod 644 src/*.cc
chmod 644 src/*.h

# Remove deprecated tag Enconding from flaw.desktop

sed -i -e '2d' data/flaw.desktop

%configure --docdir=%{_docdir}/%{name}


# 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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
BugReportURL: https://sourceforge.net/p/flaw/feature-requests/3/
SentUpstream: 2014-09-24
 <id type="desktop">flaw.desktop</id>
 <summary>Casual Wizards Battle Game</summary>
     Flaw is a game where you control a wizard and your goal is to survive as
     much as you can.
     In addition to the fireballs that arise increasingly in larger quantities,
     there are other wizards trying to kill you.
     The game has some items that give you special abilities to defend yourself or attack your enemies.
     Flaw can be played on single-player mode or with your friends.
 <url type="homepage">http://flaw.sourceforge.net/</url>
   <screenshot type="default">http://flaw.sourceforge.net/images/ingame1.png</screenshot>

%find_lang %{name}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%files -f %{name}.lang
%exclude %{_docdir}/%{name}/INSTALL
%doc %{_docdir}/%{name}


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

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