File stella.spec of Package stella

# spec file for package stella
# Copyright (c) 2019 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

Name:           stella
Version:        6.0.2
Release:        0
Summary:        Atari 2600 VCS emulator
License:        GPL-2.0-only
Group:          System/Emulators/Other
BuildRequires:  clang-devel
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  libSDL2-devel
BuildRequires:  libpng16-compat-devel
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel

Stella was originally developed for Linux by Bradford W. Mott, and is currently maintained by Stephen Anthony.
Since its original release several people have joined the development team to port Stella to other
operating systems such as AcornOS, AmigaOS, DOS, FreeBSD, IRIX, Linux, OS/2, MacOS, Unix, and Windows.
The development team is working hard to perfect the emulator and we hope you enjoy our effort.

%setup -q
dos2unix -c ascii README-SDL.txt

# FIXME: you should use the %%configure macro
CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} \
make %{?_smp_mflags}

mkdir -p %{buildroot}%{_docdir}/%{name}
rm %{buildroot}%{_docdir}/%{name}/License.txt
rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
%suse_update_desktop_file -G 'Atari 2600 Emulator' %{name}

%doc %{_docdir}/%{name}
%doc Announce.txt Todo.txt Changes.txt README-SDL.txt Readme.txt
%license License.txt Copyright.txt
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps

openSUSE Build Service is sponsored by