File bliss.spec of Package bliss

#
# spec file for package bliss
#
# 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:           bliss
Version:        1.9d
Release:        0
Summary:        Intellivision Emulator
License:        SUSE-NonFree
Group:          System/Emulator/Other
Source:         Bliss19dSrc.zip
Source1:        blissx-1.9d.tar.gz
Patch0:         bliss.dif
Patch1:         bliss-makefile.patch
Patch2:         bliss-cpp.patch
BuildRequires:  SDL-devel
BuildRequires:  SDL_image-devel
BuildRequires:  gcc-c++
BuildRequires:  unzip
BuildRequires:  zlib-devel
ExclusiveArch:  %{ix86} x86_64
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Intellivision emulator. Put required ROMs (exec.bin and grom.bin) in
%{_datadir}/bliss. See %{_docdir}/bliss/Readme for more details.

%prep
%setup -q -c -a 1
%patch0
%patch1
%patch2

%build
make %{?_smp_mflags} PLATFORM=UNIX CC="gcc %{optflags} -fno-strict-aliasing" CXX="g++ %{optflags} -fno-strict-aliasing"

%install
install -D -m 755 bliss %{buildroot}%{_bindir}/bliss
install -d -m 755 %{buildroot}%{_datadir}/bliss
cp -a blissx/bin/* %{buildroot}%{_datadir}/bliss/
rm -f %{buildroot}%{_datadir}/bliss/bliss

%files
%defattr(-,root,root)
%doc blissx/docs/Readme
%{_bindir}/bliss
%{_datadir}/bliss

%changelog
openSUSE Build Service is sponsored by