File dega.spec of Package dega

#
# spec file for package dega
#
# 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:           dega
Version:        1.12
Release:        0
Summary:        Sega Master System Emulator
License:        SUSE-NonFree
Group:          System/Emulators/Other
Source:         %{name}-%{version}.tar.gz
Patch0:         %{name}-return.patch
Patch1:         %{name}-math.patch
BuildRequires:  SDL-devel
BuildRequires:  gcc-c++
BuildRequires:  nasm
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %{ix86}

%description
Dega is a Sega Master System and Game Gear emulator.

%prep
%setup -q
%patch0
%patch1

%build
make %{?_smp_mflags} OPTFLAGS="%{optflags}"

%install
install -D -m 755 dega %{buildroot}%{_bindir}/dega

%files
%defattr(-,root,root)
%doc dega.txt README ChangeLog
%{_bindir}/dega

%changelog
openSUSE Build Service is sponsored by