File plasma6-applet-panel-colorizer.spec of Package plasma6-applet-panel-colorizer
#
# spec file for package plasma6-applet-panel-colorizer
#
# Copyright (c) 2020 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 skip_python2 1
%define skip_python36 1
%define skip_python39 1
%define skip_python310 1
%define skip_python311 1
%define skip_python312 1
%define _python_package 313
Name: plasma6-applet-panel-colorizer
Version: 5.x.x
Release: 0
Summary: Latte-Dock and WM status bar customization features for the KDE Plasma panels
License: GPL-3.0-or-later
Group: System/GUI/KDE
URL: https://github.com/luisbocanegra/plasma-panel-colorizer
Source: %{name}-%{version}.tar.xz
BuildRequires: kf6-extra-cmake-modules
BuildRequires: cmake(KF6Package)
BuildRequires: cmake(Plasma)
BuildRequires: fdupes
BuildRequires: cmake(KDecoration2)
BuildRequires: cmake(KF6ConfigWidgets)
BuildRequires: cmake(KF6CoreAddons)
BuildRequires: cmake(KF6Declarative)
BuildRequires: cmake(KF6I18n)
BuildRequires: cmake(KF6KCMUtils)
BuildRequires: cmake(KF6Package)
BuildRequires: cmake(KF6Service)
BuildRequires: cmake(KF6Svg)
BuildRequires: cmake(KF6WindowSystem)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Quick)
BuildRequires: zip
BuildRequires: xz
BuildRequires: git
BuildRequires: python%{_python_package}-devel
Requires: plasma6-desktop
%description
Fully-featured widget to bring Latte-Dock and WM status bar customization features to the default Plasma panel.
%prep
%autosetup -n %{name}-%{version}
%build
%cmake \
-DINSTALL_PLASMOID=ON \
-DBUILD_PLUGIN=ON
%install
%cmake_install
sed -i 's|/usr/bin/env bash|/bin/bash|g' %{buildroot}/%{_datadir}/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/gdbus_get_signal.sh
sed -i 's|/usr/bin/env bash|/bin/bash|g' %{buildroot}/%{_datadir}/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh
sed -i 's|/usr/bin/env python|/usr/bin/python3|g' %{buildroot}/%{_datadir}/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/service.py
%files
%license LICENSE
%doc README.md CHANGELOG.md CONTRIBUTING.md
%{_kf6_plasmadir}/plasmoids/luisbocanegra.panel.colorizer
%dir /usr/lib64/qt6/qml/org/kde/plasma/panelcolorizer
/usr/lib64/qt6/qml/org/kde/plasma/panelcolorizer/libpanelcolorizerplugin.so
/usr/lib64/qt6/qml/org/kde/plasma/panelcolorizer/qmldir
%if 0%{?suse_version} <= 1600
/usr/share/metainfo/luisbocanegra.panel.colorizer.appdata.xml
%endif
%changelog