File pegasus-frontend.spec of Package pegasus-frontend

#
# spec file for package pegasus-frontend
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define realname pegasus-frontend
%define realver  continuous
%define srcext   tar.xz

Name:           pegasus-frontend
Version:        %{realver}
Release:        0
Summary:        A frontend for launching emulators and managing your game collection
License:        GPL-3.0-only
Group:          System/GUI/Other
BuildArch:      noarch
URL:            https://github.com/mmatyas/pegasus-frontend
Source0:         https://github.com/mmatyas/pegasus-frontend/archive/refs/tags/%{realver}.%{srcext}#/%{realname}-%{realver}.%{srcext}
Source1: gameOS-master.tar.gz
Source2: gameOS-fire-sKye-master.tar.gz
Source3: EasyLaunch-main.tar.gz
BuildRequires:  git-core
BuildRequires:  libtool
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  SDL2-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       gstreamer-plugins-libav
Requires:       gstreamer-plugin-openh264
Recommends:     polkit

%description
A cross platform, customizable graphical frontend for launching emulators and managing your game collection.

%prep
%setup -q %{realname}-%{realver}.%{srcext}
tar -xf %{SOURCE1} -C src/themes/
tar -xf %{SOURCE2} -C src/themes/
tar -xf %{SOURCE3} -C src/themes/

%check

%build
git init
%qmake5 \
        USE_SDL_GAMEPAD=1 \
        INSTALL_BINDIR=/usr/bin \
        INSTALL_DOCDIR=/usr/share//%{realname}/doc \
        INSTALL_ICONDIR=/usr/share/%{realname}/pixmaps \
        INSTALL_DESKTOPDIR=/usr/share/applications \
        INSTALL_APPSTREAMDIR=/usr/share/metainfo
%make_jobs

%install
%qmake5_install

%files
%dir %{_bindir}/
%{_bindir}/pegasus-fe
%{_datadir}/%{realname}
%{_datadir}/applications/org.pegasus_frontend.Pegasus.desktop
%{_datadir}/metainfo/org.pegasus_frontend.Pegasus.metainfo.xml
%{_datadir}/%{realname}/doc/
%{_datadir}/%{realname}/pixmaps/16x16/apps/org.pegasus_frontend.Pegasus.png
%{_datadir}/%{realname}/pixmaps/32x32/apps/org.pegasus_frontend.Pegasus.png
%{_datadir}/%{realname}/pixmaps/48x48/apps/org.pegasus_frontend.Pegasus.png
%{_datadir}/%{realname}/pixmaps/64x64/apps/org.pegasus_frontend.Pegasus.png
%{_datadir}/%{realname}/pixmaps/128x128/apps/org.pegasus_frontend.Pegasus.png

%changelog

openSUSE Build Service is sponsored by