File realityboy.spec of Package realityboy
#
# spec file for package realityboy
#
# Copyright (c) 2017 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/
#
%define version_short 84
Name: realityboy
Version: 0.%{version_short}
Release: 0
Summary: Nintendo Virtual Boy Emulator
License: COPYRIGHT
Group: System/Emulators/Other
URL: http://www.goliathindustries.com/vb/
Source: http://www.goliathindustries.com/vb/download/emu/rboy_0%{version_short}_src.zip#/%{name}-%{version}.zip
Patch0: stupidcasts.patch
BuildRequires: allegro-devel
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: unzip
%description
Nintendo Virtual Boy emulator. Supports 2D black-and-white display
as well as 3D display using colored or shutter glasses.
%prep
%setup -q -c
%patch0 -p1
pushd doc
rm -f readme.{dos,windows}
dos2unix *
popd
%build
cd linux
make %{?_smp_mflags} OFLAGS="%{optflags}"
%install
install -D -m 755 linux/rboy_linux %{buildroot}%{_bindir}/rboy
%files
%doc doc/*
%{_bindir}/rboy
%changelog