File mednafen.spec of Package mednafen

# Copyright (c) 2008 SuSE Linux Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

Name:           mednafen
License:        GPL-2.0+
Group:          System/Emulators/Other
Version:        0.9.38.7
Release:        1
Summary:        Multiple video game console emulator
Source0:        http://mednafen.fobby.net/releases/files/%{name}-%{version}.tar.bz2
BuildRequires:  SDL-devel xorg-x11-Mesa-devel zlib-devel gcc-c++ libcdio-devel
BuildRequires:  jack-devel libsndfile-devel SDL_net-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
URL:            http://mednafen.fobby.net

%description
Nintendo Entertainment System (Famicom), Nintendo Game Boy, Game Boy Color, Game Boy Advance,
Sega Master System, Game Gear, SNK Neo Geo Pocket, Neo Geo Pocket Color, Bandai Wonderswan,
Wonderswan Color, Atari Lynx, NEC PC Engine (TurboGrafx-16), SuperGrafx, PC-FX, Sony PlayStation
emulator

%prep
%setup -q -n %name

%build
# If you encounter a bug in mednafen, first reenable some of these :-/
#disabled_warnings="-fno-strict-aliasing -Wno-sign-compare -Wno-inline -Wno-shadow -Wno-unused -Wno-unused-result"
#export CFLAGS="$RPM_OPT_FLAGS $disabled_warnings"
#export CXXFLAGS="$RPM_OPT_FLAGS $disabled_warnings -fpermissive "
#%if 0%{?suse_version} >= 1310
#export LIBS=-ldl
#%endif
%configure
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS ChangeLog COPYING README TODO Documentation/*
%{_bindir}/%{name}
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by