File mpz.spec of Package mpz
#
# spec file for package mpz
#
# Copyright (c) 2025 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/
#
Name: mpz
Version: @SERVICE@
Release: 0
Summary: Music player for big local collections
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Players
URL: https://github.com/olegantonyan/mpz
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Svg)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: pkgconfig(taglib)
BuildRequires: pkgconfig(yaml-cpp)
%requires_eq libQt6Svg6
Provides: bundled(libqhotkey)
Provides: bundled(libqtwaitingspinner)
%description
Directory tree is your music library. Features 3 columns UI: directory tree
(aka library), playlists and tracks from selected playlist. Middle-click on
folder or track in the directory view and it will become a playlist an its
content will be loaded into tracks view. Create multiple playlists from
folders in your library and switch between them quickly. Similar to "Album
list" in Foobar2000.
%prep
%autosetup
%build
%cmake_qt6 \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DUSE_SYSTEM_TAGLIB=ON \
-DUSE_SYSTEM_YAMLCPP=ON
%qt6_build
%install
%qt6_install
%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%license license.txt
%changelog