File uosnes.spec of Package uosnes

#
# spec file for package uosnes
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           uosnes
Version:        20100825
Release:        0
Summary:        Nintendo Super Famicom Emulator
License:        GPL-2.0 and LGPL-2.1 and ClArtistic
Group:          System/Emulators/Other
Url:            http://toriniku.sourceforge.net
Source:         https://sourceforge.net/projects/toriniku/files/%{name}-%{version}.tar.bz2
Patch1:         %{name}-rpmlint.patch
Patch2:         %{name}-ffmpeg2.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
%if 0%{?sle_version} == 120100
BuildRequires:  ffmpeg-devel
%else
BuildRequires:  ffmpeg2-devel
%endif
BuildRequires:  libpng12-devel
BuildRequires:  libpng12-compat-devel
BuildRequires:  libtool
BuildRequires:  nasm
BuildRequires:  xorg-x11-devel
BuildRequires:  zlib-devel
ExclusiveArch:  %{ix86} x86_64
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Variant of snes9x with debugger and Bandai Sufami Turbo emulation.

%prep
%setup -q
%patch1
%patch2 -p1
rm -fr ffmpeg
dos2unix README TODO

%build
autoreconf -fi
%configure --enable-snes-debugger \
	--x-includes=%{_includedir} --x-libraries=%{_libdir}

make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -name *.a -delete

%files
%defattr(-,root,root)
%doc ChangeLog license/LICENSE.sneese license/license.snes9x license/license.zsnes README TODO 
%{_bindir}/uosnes

%changelog
openSUSE Build Service is sponsored by