File circuslinux.spec of Package circuslinux

#
# spec file for package circuslinux (Version 1.0.3)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         circuslinux
BuildRequires: SDL_image-devel SDL_mixer-devel update-desktop-files
Summary:      A Clone of the Atari 2600 Game "Circus Atari"
Version:      1.0.3
Release:      1022
License:      GPL
Group:        Amusements/Games/Action/Breakout
Source:       circuslinux-%{version}.tar.bz2
Source1:      %name.desktop
Patch:        circuslinux-%{version}.dif
URL:          http://www.newbreedsoftware.com/circus-linux/
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Prefix:       /usr

%description
The object is to move a teeter-totter back and forth across the screen
to bounce clowns into the air. When they reach the top, they pop rows
of balloons, and then fall back down.



Authors:
--------
    Bill Kendrick <bill@newbreedsoftware.com>

%prep
%setup
%patch

%build
%{?suse_update_config:%{suse_update_config -f }}
aclocal
automake --foreign -a
autoconf
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$CFLAGS" \
  ./configure --prefix=%{prefix} %{_target_cpu}-suse-linux
make

%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT}/%{prefix}/share/circuslinux -type f -exec chmod 644 {} \;
rm -rf $RPM_BUILD_ROOT/%{prefix}/share/doc/circuslinux-*
%suse_update_desktop_file -i %name Game ArcadeGame
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
cp data/images/icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/%name.png

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%{prefix}/bin/*
%{prefix}/share/circuslinux
%doc AUTHORS.txt COPYING.txt INSTALL.txt README.txt CHANGES.txt 
%doc FAQ.txt README-SDL.txt
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.png

%changelog -n circuslinux
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Sep 06 2005 - nadvornik@suse.cz
- installed icon [#113919]
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Sun Aug 10 2003 - sndirsch@suse.de
- added desktop file
* Tue May 27 2003 - ro@suse.de
- remove unpackaged files from buildroot
* Tue Feb 26 2002 - nadvornik@suse.cz
- fixed file permissions in /usr/share/circuslinux
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Tue Jan 22 2002 - ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Wed Nov 07 2001 - nadvornik@suse.cz
- fixed to compile with new automake
- fixed neededforbuild for sound
* Wed Aug 08 2001 - ro@suse.de
- changed neededforbuild <kdelibs kdelibs-devel> to <kdelibs-artsd>
* Wed Aug 08 2001 - ro@suse.de
- changed neededforbuild <sdl> to <SDL>
- changed neededforbuild <sdl-devel> to <SDL-devel>
* Fri Jul 27 2001 - nadvornik@suse.cz
- update to 1.0.3
* Wed Jun 20 2001 - nadvornik@suse.cz
- added kdelibs and kdelibs-devel to neededforbuild
* Mon Mar 26 2001 - ro@suse.de
- changed neededforbuild <sdl> to <sdl sdl-devel>
* Thu Mar 22 2001 - nadvornik@suse.cz
- used suse_update_config
* Fri Mar 09 2001 - ro@suse.de
- neededforbuild sdlmixer -> SDL_mixer
* Wed Feb 21 2001 - nadvornik@suse.cz
- added alsa, alsa-devel to neededforbuild
* Fri Dec 01 2000 - nadvornik@suse.cz
- new packages
openSUSE Build Service is sponsored by