Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 3746eacfd303f5e29a5b39625ad37a41 > files > 4

nestopia-1.40h-2.src.rpm

Name:			nestopia
Version:		1.40h
%define sversion 	%(sed -e "s/[a-z.]//g"<<<%{version})
%define oversion 	%(sed -e "s/[0-9.]//g"<<<%{version})
Release:		%mkrel 2

Summary:	A portable Nintendo Entertainment System emulator
License:	GPLv2+
Group:		Emulators
URL:		http://rbelmont.mameworld.info/?page_id=200
# and http://nestopia.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/nestopia/Nestopia%{sversion}src.zip
Source1:	http://rbelmont.mameworld.info/nst%{sversion}_lnx_release_%{oversion}.zip
Source2:	nestopia-wrapper
Source3:	nestopia-48.png

BuildRequires:	gtk2-devel
BuildRequires:	SDL-devel
BuildRequires:	alsa-lib-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
NEStopia is a portable Nintendo Entertainment System emulator written in C++ 
by Martin Freij and ported to Linux by R. Belmont.

NEStopia strives for the most accurate emulation possible at the 
pixel-by-pixel and sample-by-sample level, and it has excellent mapper 
and UNIF board support as well.

A few features:
- Supports .nes, .unf/.unif, and XML format ROMs, including Vs. and 
 Playchoice 10 games
- Supports .fds discs (a file named diskrom.sys is needed for this feature)
- Supports .nsf music rips
- All supported files can be extracted from zip or 7zip containers (an 
 archive browser is not yet included - this assumes the common GoodSet case 
 of one zip or 7zip per game)
- Supports save states
- Supports movie recordings
- Supports the “rewinder” - if you make a bad jump and screw up your 
 game, press Backspace and the game will run in reverse. Press \ to take over 
 again and try to fix your mistake.
- Friendly GUI configuration
- Autodetection of PAL and NTSC format games
- Supports drag and drop of compatible games and music rips from modern Linux 
 file managers, including KDE’s Konqueror and GNOME’s Nautilus.

%prep
%setup -c -q -a1

%build

%install
rm -rf %{buildroot}
make

# binary
install -d -m 755 %{buildroot}/%{_bindir}
install -m 755 nst %{buildroot}/%{_bindir}/

# wrapper
install -m 755 %{_sourcedir}/nestopia-wrapper %{buildroot}/%{_bindir}/nestopia

# data files
install -d -m 755 %{buildroot}/%{_datadir}/nestopia
install -m 644 NstDatabase.xml %{buildroot}/%{_datadir}/nestopia/
install -m 644 nstcontrols %{buildroot}/%{_datadir}/nestopia/

# icon
install -d -m 755 %{buildroot}/%{_iconsdir}
install -m 644 %{_sourcedir}/nestopia-48.png %{buildroot}/%{_iconsdir}/nestopia.png

# xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-nestopia.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=NEStopia
Comment=%{summary}
Exec=%{_bindir}/nestopia
Icon=nestopia
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
EOF

%files
%defattr(-,root,root)
%doc README.Linux
%{_bindir}/nestopia
%{_bindir}/nst
%{_datadir}/nestopia
%{_iconsdir}/nestopia.png
%{_datadir}/applications/mandriva-nestopia.desktop

%clean
rm -rf %{buildroot}



%changelog
* Fri Jul 29 2011 Andrey Bondrov <abondrov@mandriva.org> 1.40h-2mdv2012.0
+ Revision: 692227
- imported package nestopia


* Thu Jul 21 2011 Andrey Bondrov <bondrov@math.dvgu.ru> 1.40h-1mdv2011.0
- Import from PLF
- Remove PLF reference

* Fri Oct 24 2008 Guillaume Bedot <littletux@zarb.org> 1.40h-1plf2009.1
- 1.40h

* Fri Aug 15 2008 Guillaume Bedot <littletux@zarb.org> 1.40g-1plf2009.0
- First package of NEStopia for PLF.