Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37832694
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 rcN rc4
Name: sdl-ball
Version: 0.13
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
#Source1: %name.png
#Source2: %name.desktop
Patch: %name.as-needed.patch
Packager: Fr. Br. George <george at altlinux.ru>

# Automatically added by buildreq on Wed Nov 12 2008

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 editora 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
#patch

%build
%make DATADIR=%_gamesdatadir/%name/
( cd leveleditor/gimp-leveleditor; gimptool --build gimp-sdlball.c )

%install
mkdir -p %buildroot%_gamesdatadir %buildroot%_gamesbindir
mkdir -p %buildroot%_libdir/gimp/2.0/plug-ins
install -s %name %buildroot%_gamesbindir
install -s leveleditor/gimp-leveleditor/gimp-sdlball %buildroot%_libdir/gimp/2.0/plug-ins
cp -a themes %buildroot%_gamesdatadir/%name

## TODO: level editor


# below is the desktop file and icon stuff.

##mkdir -p $RPM_BUILD_ROOT%_desktopdir
##desktop-file-install --vendor "" \
##  --dir $RPM_BUILD_ROOT%_desktopdir \
##  #SOURCE2
##mkdir -p $RPM_BUILD_ROOT%_niconsdir
##install -p -m 644 #SOURCE1 \
##  $RPM_BUILD_ROOT%_niconsdir

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

%files leveleditor
%doc leveleditor leveleditor/gimp-leveleditor/readme
%_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