Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37558485
en ru br
ALT Linux repositórios
S:1.03-alt1
5.0: 0.13-alt1

Group :: Jogos/Arcade
RPM: sdl-ball

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define gimpver 2.0
Name: sdl-ball
Version: 1.02
Release: alt1
Summary: Free/OpenSource brick-breaking game with pretty graphics
Group: Games/Arcade
License: GPLv2+
Url: http://sdl-ball.sourceforge.net/
Source0: http://dl.sourceforge.net/sourceforge/%name/%name-%version.tar.bz2
Patch: %name.as-needed.patch

# Automatically added by buildreq on Wed Nov 12

BuildRequires: gcc-c++ libGL-devel libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libgimp-devel

%description
SDL-Ball is a Free/OpenSource brick-breaking game for Linux,BSD and
windows with pretty graphics. It is written in C++ using SDL and OpenGL,
here is the project page on sf.net.

Your mission: To smash your way through a series of progressively harder
and more tricky levels. Your tools: Ultrakinetic titanium balls and your
trusty Gruntmazter-3000-Paddle edition.

%package leveleditor
Group: Games/Arcade
Requires: gimp
Summary: Two level editors for SDL-Ball

%description leveleditor
SDL-Ball is a Free/OpenSource brick-breaking game with pretty graphics.

This package includes two level editors for SDL-Ball, JavaScript-based
(see %_defaultdocdir/%name-%version/index.html) and GIMP plugin. Start
gimp from a terminal in order to record the output from the plugin (you
need that)

%prep
%setup -n %name
# Lame .o in 1.01
rm -f *.o
sed -i '/#include <iostream>/a\
#include <unistd.h>
s/,;/;/g
' main.cpp
# TODO desktop

%build
%make DATADIR=%_gamesdatadir/%name/
gimptool-%gimpver --build leveleditor/gimp-leveleditor/gimp-sdlball.c

%install
mkdir -p %buildroot%_gamesdatadir %buildroot%_gamesbindir
mkdir -p %buildroot%_libdir/gimp/%gimpver/plug-ins
install -Ds %name %buildroot%_gamesbindir
install -Ds gimp-sdlball %buildroot%_libdir/gimp/%gimpver/plug-ins
cp -a themes %buildroot%_gamesdatadir/%name

%files
%doc README changelog.txt leveleditor
%_gamesbindir/%name
%dir %_gamesdatadir/%name
%_gamesdatadir/%name/*

%files leveleditor
%doc leveleditor
%_libdir/gimp/2.0/plug-ins/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009