File pipecontrol.spec of Package pipecontrol
# spec file for package pipecontrol
#
# Copyright (c) 2021 Fabio Pesari
#
# 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 http://bugs.opensuse.org/
Name: pipecontrol
Version: 0.2.10
Release: 0
Summary: Pipewire control GUI program in Qt
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://codeberg.org/portaloffreedom/pipecontrol
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gcc-c++
BuildRequires: cmake extra-cmake-modules
BuildRequires: pipewire-devel >= 0.3.38
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Linguist)
BuildRequires: cmake(Qt6QuickControls2)
BuildRequires: cmake(KF6Kirigami)
BuildRequires: cmake(KF6I18n)
BuildRequires: cmake(KF6CoreAddons)
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: kf6-kcoreaddons
Requires: kf6-kirigami
Requires: kirigami2
Requires: pipewire >= 0.3.38
%description
Pipecontrol is a GUI program for controlling Pipewire.
%prep
%autosetup -p1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
%if 0%{?suse_version}
%suse_update_desktop_file -i -r %{buildroot}/%{_datadir}/applications/PipeControl.desktop AudioVideo Audio Settings HardwareSettings Mixer Qt GeekosDaw
# suse_update_desktop_file does not support GeekosDaw category, so we add it manually
sed -i -e 's/\(Categories=.*\)/\1GeekosDaw;/' "%{buildroot}/%{_datadir}/applications/PipeControl.desktop"
%endif
%files
%doc README.md
%license LICENSE
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*
%{_bindir}/pipecontrol