File EmulationStation.spec of Package EmulationStation

# spec file for package EmulationStation
# 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

# See also
Name:           EmulationStation
Version:        X
Release:        0
Summary:        A cross-platform graphical front-end for emulators
License:        MIT
Group:          System/Emulators/Other
Source0:        %{name}-%{version}.tar.gz
Source1:        es_icon.png
Source2:        es_systems.cfg
Source3:        README.openSUSE
Source4:        themes.tar.gz
Patch0:         stringcompare.patch
Patch1:         date_time.patch
BuildRequires:  alsa-devel
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  eigen3-devel
BuildRequires:  freeimage-devel
BuildRequires:  freetype2-devel
BuildRequires:  gcc-c++
BuildRequires:  libSDL2-devel
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_locale-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libcurl-devel

A graphical and themeable emulator front-end that allows you to access all your favorite games in one place, even without a keyboard!

%setup -q
%setup -q -T -D -a 4

make %{?_smp_mflags}

cd build
cd ..

install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/es_icon.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/emulationstation/es_systems.cfg
mkdir -p %{buildroot}%{_sysconfdir}/emulationstation/themes/simple
cp -r themes %{buildroot}%{_sysconfdir}/emulationstation/

#Doc files
mkdir -p %{buildroot}%{_docdir}/EmulationStation/
install -D -m 0644 *.md %{buildroot}%{_docdir}/EmulationStation/
install -D -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/EmulationStation/README.openSUSE

#missed desktop file, writing one
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Comment= A cross-platform graphical front-end for emulators
Comment[it]= Un front-end grafico per emulatori cross-platform

%dir %{_sysconfdir}/emulationstation/
%dir %{_sysconfdir}/emulationstation/themes/
%config %{_sysconfdir}/emulationstation/themes/simple/
%config %{_sysconfdir}/emulationstation/es_systems.cfg
%docdir %{_docdir}/EmulationStation/

openSUSE Build Service is sponsored by