Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > d598d1fd6b80e42e3b2a46dffce749b4 > files > 2

zsnes-1.42-1mdk.src.rpm

%define name zsnes
%define version 1.42
%define release 1mdk
%define fversion %(echo %version|sed s/\\\\\.//)
%define dversion %(echo %version|sed s/\\\\\./_/)

Summary: Nintendo Super NES / Super Famicom Emulator
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://prdownloads.sourceforge.net/zsnes/%{name}%{fversion}src.tar.bz2
Source1: %{name}-icons.tar.bz2
License: GPL
Group: Emulators
BuildRoot: %{_tmppath}/%{name}-buildroot
URL: http://zsnes.sourceforge.net
BuildRequires: nasm
BuildRequires: libpng-devel
BuildRequires: libSDL-devel >= 1.2 
Exclusivearch: %{ix86}
Epoch: 1

%description
This is an emulator for Nintendo's 16 bit console, called Super Nintendo 
Entertainment System or Super Famicom. It features a pretty accurate emulation
of that system's graphic and sound capabilities.
The GUI enables the user to select games, change options, enable cheat codes 
and to save the game state, even network play is possible.


%prep

%setup -q -n %{name}_%dversion
cd src
./autogen.sh

%build
cd src
%configure --x-includes=/usr/X11R6/include 
make

%install
rm -rf %buildroot
mkdir -p %buildroot%{_bindir}
install -c -m 0755 src/zsnes %buildroot%{_bindir}

mkdir -p %buildroot%{_mandir}/man1/
install -c -m 0644 src/linux/zsnes.1 %buildroot%{_mandir}/man1

mkdir -p %buildroot/%{_menudir}
cat << EOF > %buildroot/%{_menudir}/%{name}
?package(%{name}):\
needs="x11"\
section="More Applications/Emulators"\
title="Zsnes"\
longtitle="Super NES / Super Famicom Emulator"\
command="zsnes"\
icon="%{name}.png"
EOF

# install icons
install -m 755 -d %buildroot{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
tar xOjf %SOURCE1 %{name}-16x16.png > %buildroot%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-32x32.png > %buildroot%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-48x48.png > %buildroot%{_liconsdir}/%{name}.png

%clean
rm -rf %buildroot

%post
%{update_menus}

%postun
%{clean_menus}

%files
%defattr(-,root,root)
%doc docs/*
%{_bindir}/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_menudir}/%{name}
%{_mandir}/man1/%name.1*

%changelog
* Thu Jan 20 2005 Götz Waschk <waschk@linux-mandrake.com> 1.42-1mdk
- new version

* Mon Dec 27 2004 Götz Waschk <waschk@linux-mandrake.com> 1.40-1mdk
- spec fixes
- New release 1.40

* Sat Jun 05 2004 Michael Scherer <misc@mandrake.org> 1.36-4mdk 
- rebuild
- change menu

* Wed Jun  4 2003 Götz Waschk <waschk@linux-mandrake.com> 1.36-3mdk
- build fix

* Tue Oct 22 2002 Götz Waschk <waschk@linux-mandrake.com> 1.36-2mdk
- add an epoch, there where problems upgrading from 1.337

* Tue Jul 16 2002 Götz Waschk <waschk@linux-mandrake.com> 1.36-1mdk
- new version

* Mon Jun 24 2002 Götz Waschk <waschk@linux-mandrake.com> 1.35-1mdk
- 1.35
- build with new nasm
- fix man page install

* Tue May  7 2002 Götz Waschk <waschk@linux-mandrake.com> 1.337-5mdk
- build with old nasm
- remove obsolete  BuildRequires
- rebuild with new alsa

* Wed Jan 30 2002 Götz Waschk <waschk@linux-mandrake.com> 1.337-4mdk
- requires libpng-devel, zlib-devel
- move configure to %%build
- png icons
- remove zero-length files
- conflicts with older nasm

* Thu Oct 11 2001 Etienne Faure <etienne@mandrakesoft.com> 1.337-3mdk
- Requires libpng2 ->libpng3

* Wed Oct 03 2001 HA Quôc-Viêt <viet@mandrakesoft.com> 1.337-2mdk
- transparent icon to make rpmlint happy, full credits to Götz Waschk :o)

* Tue Oct 02 2001 HA Quôc-Viêt <viet@mandrakesoft.com> 1.337-1mdk
- new source revision.
- some cosmetic spec modifications.
- uses %%configure, %%make, and installs the manpage in man6

* Fri Sep 07 2001 Etienne Faure <etienne@mandrakesoft.com> 1.31b-1mdk
- Update from Götz Waschk <waschk@linux-mandrake.com>:
	- updated %%doc section
	- updated to 1.31b

* Thu Aug 23 2001 Etienne Faure <etienne@mandrakesoft.com> 1.29-2mdk
- rebuilt for contrib
- large icon

* Sat Jun  2 2001 Götz Waschk <waschk@linux-mandrake.com> 1.29-1mdk
- 1.29

* Thu May 31 2001 Götz Waschk <waschk@linux-mandrake.com> 1.28-1mdk
- 1.28

* Fri May 18 2001 Götz Waschk <waschk@linux-mandrake.com> 1.26-1mdk
- 1.26


* Thu May 17 2001 Götz Waschk <waschk@linux-mandrake.com> 1.25-1mdk
- 1.25
- exclusive arch: x86

* Thu May  3 2001 Götz Waschk <waschk@linux-mandrake.com> 1.20-1mdk
- initial package


# end of file