Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > d58fd7807a0816e0468a5ae9b2f8f12a > files > 6

skobo-0.4-0.pre10.3mdk.src.rpm

Summary:	Kobo Deluxe is an SDL port of Akira Higuchi's game XKobo 
Name:		skobo
Version:	0.4
%define pre	pre10
%define rel     3
%define release %mkrel_fixed 0.%{pre}.%rel
%define mkrel_fixed(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(\\d+)$/;$rel=${1}-1;re;print "$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}
Release:	%{release}
License:	GPL
Group:		Games/Arcade
URL:		http://www.olofson.net/kobodl/
Source0:	http://olofson.net/kobodl/download/KoboDeluxe-%{version}%{pre}.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
Patch0:		skobo-0.4pre10-gcc4.patch.bz2
BuildRequires: SDL_image-devel
BuildRoot: %{_tmppath}/%{name}-root

%description
Kobo Deluxe is an SDL port of Akira Higuchi's game XKobo. It adds sound,
smoother animation, filtered high resolution support, a more intuitive menu
driven user interface, joystick support and other features, and runs on most
of the major operating systems. Kobo Deluxe uses the Free/Open Source
libraries SDL and SDL_image, which can be downloaded (source as well as
binaries for various platforms) from http://www.libsdl.org.

%prep
%setup -q -n KoboDeluxe-%{version}%{pre}
%patch0 -p0 -b .gcc4

%build
%configure2_5x	--bindir=%{_gamesbindir}
%make kobo_scoredir=%{_localstatedir}/games/%{name}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_localstatedir}/games/%{name}
%makeinstall_std kobo_scoredir=%{_localstatedir}/games/%{name}

mkdir -p %buildroot%_menudir
cat > %buildroot%_menudir/%name << EOF
?package(%name):\
	needs="x11"\
	section="Amusement/Arcade"\
	title="Kobo Deluxe"\
	longtitle="Arcade video game"\
	command="%_gamesbindir/kobodl"\
	icon="%name.png"
EOF

install -D -m644 %SOURCE6 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -D -m644 %SOURCE5 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -D -m644 %SOURCE7 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%post 
%{update_menus}

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%doc COPYING* ChangeLog README* TODO
%attr(2755, root, games) %{_gamesbindir}/kobodl
%attr(775, root, games) %{_localstatedir}/games/%{name}
%{_gamesdatadir}/*
%{_mandir}/man6/*
%{_menudir}/*
%{_iconsdir}/*.png
%{_miconsdir}/*
%{_liconsdir}/*

%changelog
* Tue Aug 02 2005 Guillaume Bedot <littletux@mandriva.org> 0.4-0.pre10.3mdk
- Patch0: to build with gcc4
- use mkrel

* Sat Jul 30 2005 Guillaume Bedot <littletux@mandriva.org> 0.4-0.pre10.2mdk
- Fixed previous changelog versions
- Dropped Patch0 (applied upstream, well that was in 1mdk too) 

* Sat Jul 30 2005 Guillaume Bedot <littletux@mandriva.org> 0.4-0.pre10.1mdk
- New version
- Added man page
- Build with gcc3.3

* Fri Jun  4 2004  <lmontel@n2.mandrakesoft.com> 0.4-0.pre8.13mdk
- Rebuild

* Tue Oct 21 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.4-0.8.12mdk
- varargs fixes

* Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4-0.pre8.11mdk
- fix url
- revert patch change from 8mdk, caused a segfault

* Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4-0.pre8.10mdk
- don't remove the .h file, it's needed!!!

* Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4-0.pre8.9mdk
- use the right icon in the menu

* Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4-0.pre8.8mdk
- remove included devel file (for rpmlint)
- always apply the patch (for rpmlint)
- move menu to the spec file
- fix menu entry
- remove empty dir
- don't obsolete xkobo (by request of rrowan@dandy.net)
- configure2_5x macro

* Mon Jul 14 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.4-0.pre8.7mdk
- don't rm -rf $RPM_BUILD_ROOT in %%prep
- use %%{_gamesbindir}

* Wed Oct 30 2002 Stew Benedict <sbenedict@mandrakesoft.com> 0.4-0.pre8.6mdk
- Patch getargs on PPC build (patch0)

* Tue Oct 29 2002 Stefan van der Eijk <stefan@eijk.nu> 0.4-0.pre8.5mdk
- BuildRequires: SDL_image-devel

* Tue Aug 27 2002 David BAUDENS <baudens@mandrakesoft.com> 0.4-0.pre8.4mdk
- Fix icon (menu)

* Fri Aug 16 2002 Pixel <pixel@mandrakesoft.com> 0.4-0.pre8.3mdk
- fix permissions for scores dir (thanks to Goetz Waschk)

* Thu Aug 15 2002 Pixel <pixel@mandrakesoft.com> 0.4-0.pre8.2mdk
- rebuild for new libstdc++

* Wed Aug 14 2002 Pixel <pixel@mandrakesoft.com> 0.4-0.pre8.1mdk
- initial spec