File MellowPlayer.spec of Package MellowPlayer

#
# spec file for package MellowPlayer
#
# 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 https://bugs.opensuse.org/
#


Name:           MellowPlayer
Version:        3.5.4
Release:        0
Summary:        Cloud music integration for your desktop
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Players
URL:            https://colinduquesnoy.gitlab.io/MellowPlayer/
Source0:        https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/%{version}/MellowPlayer-%{version}.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libqt5-linguist-devel
BuildRequires:  pkgconfig
BuildRequires:  qbs
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Location)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5QuickControls2)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5WebChannel)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(spdlog) >= 1.2.0

%description
MellowPlayer is a free, open source and cross-platform desktop
application that integrates online music services with your desktop.

%prep
%setup -q
qbs-setup-toolchains --detect
qbs-setup-qt /usr/bin/qmake-qt5 qt5
qbs-config defaultProfile qt5

# use system library
rm -rf 3rdparty/spdlog*

%build
qbs build --no-install -d build config:release qbs.installRoot:/usr

%install
qbs install -d build --no-build -v --install-root %{buildroot}%{_prefix} config:release
sed -i '1d' %{buildroot}%{_datadir}/applications/mellowplayer.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mellowplayer.desktop
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/mellowplayer.desktop AudioVideo Player

%files
%license LICENSE
%doc CHANGELOG.md README:md
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%dir %{_datadir}/mellowplayer
%{_bindir}/MellowPlayer
%{_datadir}/applications/mellowplayer.desktop
%{_datadir}/icons/hicolor/scalable/apps/mellowplayer.svg
%{_datadir}/mellowplayer/plugins
%{_datadir}/metainfo/mellowplayer.appdata.xml

%changelog
openSUSE Build Service is sponsored by