Репозиторий Sisyphus
Последнее обновление: 16 октября 2019 | Пакетов: 17499 | Посещений: 15274780
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

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

%prep
%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

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

%install
%makeinstall_std

# 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
-->
<application>
 <id type="desktop">flaw.desktop</id>
 <metadata_license>CC0-1.0</metadata_license>
 <summary>Casual Wizards Battle Game</summary>
 <description>
   <p>
     Flaw is a game where you control a wizard and your goal is to survive as
     much as you can.
   </p>
   <p>
     In addition to the fireballs that arise increasingly in larger quantities,
     there are other wizards trying to kill you.
   </p>
   <p>
     The game has some items that give you special abilities to defend yourself or attack your enemies.
   </p>
   <p>
     Flaw can be played on single-player mode or with your friends.
   </p>
 </description>
 <url type="homepage">http://flaw.sourceforge.net/</url>
 <screenshots>
   <screenshot type="default">http://flaw.sourceforge.net/images/ingame1.png</screenshot>
   <screenshot>http://flaw.sourceforge.net/images/ingame3.png</screenshot>
   <screenshot>http://flaw.sourceforge.net/images/ingame2.png</screenshot>
   <screenshot>http://flaw.sourceforge.net/images/menu.png</screenshot>
 </screenshots>
</application>
EOF

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

%files -f %{name}.lang
%{_bindir}/flaw
%{_datadir}/flaw
%{_datadir}/pixmaps/flaw.png
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/flaw.desktop
%exclude %{_docdir}/%{name}/INSTALL
%doc %{_docdir}/%{name}

%changelog

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

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