File mpz.spec of Package mpz
#
# spec file for package mpz
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2023 Oleg Antonyan <oleg.b.antonyan@gmail.com>
#
# 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: mpz
Version: 1.0.23
Release: 0
Summary: Music player for the large local collections
License: GPL-3.0-or-later
URL: https://mpz-player.org/
Source0: %{name}-%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: yaml-cpp-devel
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(Qt6Concurrent)
BuildRequires: pkgconfig(Qt6Multimedia)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6Widgets)
%else
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5X11Extras)
%endif
BuildRequires: pkgconfig(taglib)
%description
Music player for big local collections. Treats your folders with music as a library.
Features 3-column UI: directory tree viewer, playlists list and tracks from current playlist.
Similar to "album list" in Foobar2000.
%prep
%autosetup -p1
%build
%if 0%{?suse_version} > 1500
%qmake6 DEFINES+="USE_SYSTEM_TAGLIB USE_SYSTEM_YAMLCPP"
%else
%qmake5 DEFINES+="USE_SYSTEM_TAGLIB USE_SYSTEM_YAMLCPP"
%endif
%make_jobs
%install
%if 0%{?suse_version} > 1500
%qmake6_install
%else
%qmake5_install
%endif
%files
%license license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog