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

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

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

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-validate
# END SourceDeps(oneline)
%define fedora 25
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: fbg2
Version: 0.4
Release: alt3_18
Summary: A falling block stacking game
Group: Games/Other
# Code is GPLv2+, music and graphics are CC-BY-SA
License: GPLv2+ and CC-BY-SA
URL: http://sourceforge.net/projects/fbg/
# Cannot use this source as is. Need to remove
# fbg2-0.4/Data/Music/FallingBlockGameSndTrk.ogg
# because it is a sound trademark associated with a popular
# falling blocks game.
# rm -rf fbg2-0.4/Data/Music/FallingBlockGameSndTrk.ogg
# Source0: http://downloads.sourceforge.net/project/fbg/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}-clean.tar.gz
# http://www.jamendo.com/en/track/165311/russian
Source1: RudySeb_-_russian.ogg
Source2: README.music
# 64 x 64 public domain image for logo
Source3: fbg2.png
Patch0: fbg2-0.4-desktop-fix.patch
BuildRequires: radius-engine-devel >= 0.7, desktop-file-utils, zip
# rhbz#949506, also see rhbz#949167
%if 0%{?fedora} >= 19
Obsoletes: fbg < 0.9.1-13
Provides: fbg = 0.9.1-13
%endif
Source44: import.info

%description
Falling Block Game is a free, open source block stacking game. The object of
the game is to move and rotate pieces in order to fill in complete rows. The
more rows you clear at once, the more points you score!

%prep
%setup -q
%patch0 -p1 -b .fix
cp %{SOURCE1} Data/Music/FallingBlockGameSndTrk.ogg
cp %{SOURCE2} .
mv fbg2.png fbg2-small.png
cp %{SOURCE3} .

chmod -x License.txt ChangeLog *.c

%build
%configure
%make_build

%install
make install DESTDIR=%{buildroot}

# 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> -->
<!--
BugReportURL: https://sourceforge.net/p/fbg/feature-requests/12/
SentUpstream: 2014-09-24
-->
<application>
 <id type="desktop">fbg2.desktop</id>
 <metadata_license>CC0-1.0</metadata_license>
 <summary>move the falling blocks to create lines</summary>
 <description>
   <p>
     The Falling Block Game is a game where groups of blocks of certain
     predefined shapes fall from the top of the screen, and the player
     has to rotate and move them to create lines of blocks that then
     disappear when a line is complete.
   </p>
 </description>
 <url type="homepage">http://sourceforge.net/projects/fbg/</url>
 <screenshots>
   <screenshot type="default">http://fbg.sourceforge.net/releases/images/fbg2-v0.4-released/fbgscore2.jpg</screenshot>
 </screenshots>
</application>
EOF

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

%files
%doc License.txt ChangeLog README.music
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog

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

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