File quasi88.spec of Package quasi88
#
# spec file for package quasi88
#
# 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: quasi88
Version: 0.6.4
Release: 0
Summary: NEC PC-8801 Emulator
License: SUSE-Permissive
Url: http://www.eonet.ne.jp/~showtime/quasi88
Group: System/Emulators/Other
Source0: http://www.eonet.ne.jp/~showtime/quasi88/release/%{name}-%{version}.tgz
Source1: %{name}-copyright
Patch0: %{name}-0.6.4-Makefile.patch
Patch1: %{name}-rpmlint.patch
BuildRequires: SDL-devel
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Needs ROM images in ~/.quasi88/rom. You can use the corresponding MESS rom set (pc88srl.zip).
%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp %{SOURCE1} COPYRIGHT.txt
%build
# parallel build jobs create race condition
CFLAGS="%{optflags}" \
make -j1 \
%ifarch %{ix86} x86_64 ia64 %{arm}
LSB_FIRST=1
%endif
%install
install -D -m 755 quasi88.sdl %{buildroot}%{_bindir}/quasi88
%files
%defattr(-,root,root)
%doc COPYRIGHT.txt document/* *.rc
%{_bindir}/quasi88
%changelog