Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 93f93702150b8a4f6f0344d70ca462f4 > files > 5

mirrormagic-2.0.2-2mdk.src.rpm

%define	name	mirrormagic
%define	version	2.0.2
%define release	2mdk
%define	Summary	A puzzle game with mirrors and ray of lights

Name:		%{name}
Summary:	%{Summary}
Version:	%{version}
Release:	%{release}
Source0:	http://www.artsoft.org/RELEASES/unix/mirrormagic/%{name}-%{version}.tar.bz2
Source1:	%{name}-16x16.png
Source2:	%{name}-32x32.png
Source3:	%{name}-48x48.png
#Patch0:	mirrormagic-fix-va_arg.patch.bz2
URL:		http://www.artsoft.org/mirrormagic/
License:	GPL
Group:		Games/Puzzles
BuildRequires:	SDL_image-devel SDL_mixer-devel XFree86-devel alsa-lib-devel esound-devel
Packager:	Guillaume Cottenceau <gc@mandrakesoft.com>
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This game was first released as "Mindbender" in the year 1989 on the Amiga
(with ports on other computer systems) and is in fact a clone of the C64
game "Deflektor".

%prep
%setup -q
#%patch0 -p0
#perl -pi -e "s/^OPTIONS.*/OPTIONS = $RPM_OPT_FLAGS/" src/Makefile

%build
%{__make} OPTIONS="$RPM_OPT_FLAGS -O3" sdl

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__install} -m755 %{name} -D $RPM_BUILD_ROOT%{_gamesbindir}/%{name}.wrapped
%{__install} -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
%{__cp} -a graphics levels scores sounds music $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
%{__chmod} 644 $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}/music/mod.enter_our_world

%{__cat} << EOF > $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
#!/bin/sh
pushd %{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}.wrapped
popd
EOF

%{__install} -d $RPM_BUILD_ROOT%{_menudir}
%{__cat} <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		icon=%{name}.png \
		needs="x11" \
		section="Amusement/Puzzles" \
		title="Mirror Magic"\
		longtitle="%{Summary}"
EOF

%{__install} %{SOURCE1} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
%{__install} %{SOURCE2} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
%{__install} %{SOURCE3} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%post
%update_menus

%postun
%clean_menus

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}*
%defattr(644,root,root,755)
%doc README
%{_gamesdatadir}/%{name}
%{_menudir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%changelog
* Fri Nov 19 2004 Olivier Blin <blino@mandrake.org> 2.0.2-2mdk
- birthday rebuild

* Wed Oct 15 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.0.2-1mdk
- 2.0.2
- drop P0, fixed upstream
- change summary macro to avoid possible conflicts if we were to build debug package
- macroize
- cosmetics
- added menu item and icons
- override OPTIONS variable in stead of modifying makefile

* Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 2.0.1-4mdk
- rebuild

* Sun Jul 21 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.0.1-3mdk
- recompile against new vorbis stuff
- fix non-standard-group
- fix non-readable

* Mon Apr 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.0.1-2mdk
- rebuild for new alsa

* Tue Apr  9 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.0.1-1mdk
- first mdk package