Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 28358e4e3b49c291c0689bf62af8cfda > files > 4

kobodeluxe-0.5.1-11.mga5.src.rpm

%define uname	KoboDeluxe

Name:		kobodeluxe
Version:	0.5.1
Release:	%mkrel 11
Summary:	SDL port of Akira Higuchis game XKobo
License:	GPLv2+
Group:		Games/Arcade
URL:		http://www.olofson.net/kobodl/
Source0:	http://olofson.net/kobodl/download/%{uname}-%{version}.tar.bz2
Source1:	skobo-16.png
Source2:	skobo-32.png
Source3:	skobo-48.png
Patch2:		KoboDeluxe-0.4pre10-fix-segfault-in-midi.patch
Patch3:		04_enemies-pipe-decl.patch
Patch4:		skobo-0.5.1-gcc44.patch
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(glu)
Provides:	KoboDeluxe = %{version}
Provides:	skobo = %{version}
Obsoletes:	skobo < 0.5.1-8

%description
Kobo Deluxe is an enhanced version of Akira Higuchi's game XKobo for Un*x
systems with X11. Kobo Deluxe adds sound, smoother animation, high resolution
support, OpenGL acceleration (optional), an intuitive menu driven user
interface, joystick support and other features. Recent versions also add
a number of alternative skill levels with slightly modernized gameplay. Kobo
Deluxe uses SDL for graphics, sound and input, which makes it possible to
build and run the game on pretty much anything.

%prep
%setup -q -n %{uname}-%{version}
%patch2 -p1
%patch3 -p1 -b .debian
%patch4 -p0 -b .gcc44

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

%install
install -d %{buildroot}%{_localstatedir}/games/%{name}
%makeinstall_std kobo_scoredir=%{_localstatedir}/games/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Kobo Deluxe
Comment=Arcade video game
Exec=kobodl
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -D -m644 %SOURCE1 %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %SOURCE2 %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %SOURCE3 %{buildroot}%{_liconsdir}/%{name}.png

%files
%doc COPYING* ChangeLog README* TODO
%attr(2755, root, games) %{_gamesbindir}/kobodl
%config(noreplace) %attr(775, root, games) %{_localstatedir}/games/%{name}
%{_datadir}/kobo-deluxe
%{_mandir}/man6/kobodl.6*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 0.5.1-11.mga5
+ Revision: 745902
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.5.1-10.mga5
+ Revision: 681147
- Mageia 5 Mass Rebuild

* Sun May 18 2014 akien <akien> 0.5.1-9.mga5
+ Revision: 623502
- Fix obsolete for skobo

* Tue Mar 11 2014 akien <akien> 0.5.1-8.mga5
+ Revision: 602482
- Remove obsolete gcc4 patch
- Update description from upstream
- Rename package to kobodeluxe
- Rename skobo to kobodeluxe, as upstream did

* Fri Oct 18 2013 umeabot <umeabot> 0.5.1-7.mga4
+ Revision: 518305
- Mageia 4 Mass Rebuild

* Mon Jan 14 2013 umeabot <umeabot> 0.5.1-6.mga3
+ Revision: 382129
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Apr 26 2011 wally <wally> 0.5.1-5.mga1
+ Revision: 91825
- fix desktop file name (mga#954)
- fix license
- drop buildroot definition

* Thu Mar 17 2011 steletch <steletch> 0.5.1-4.mga1
+ Revision: 73455
- Clean spec file
- imported package skobo