# RPM spec for ColorBrush — a color picker widget for the KDE Plasma 6 panel. # # The selected Source0 is the GitHub tag archive: # https://github.com/SeaQSoft/ColorBrush/archive/refs/tags/v1.3.1.tar.gz # It unpacks to the top-level directory "ColorBrush-1.3.1". # # The package is pure QML (no compiled code), so it is architecture independent. %global applet_id org.seaq.colorbrush %global applet_name ColorBrush Name: colorbrush Version: 1.3.1 Release: 1%{?dist} Summary: Color picker widget for the KDE Plasma 6 panel # Upstream license: GNU General Public License v2.0 or later. # SPDX-License-Identifier: GPL-2.0-or-later License: GPL-2.0-or-later URL: https://github.com/SeaQSoft/ColorBrush Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch # msgfmt is used to (re)compile the .po catalogs while building. BuildRequires: gettext # The widget is a Plasma 6 applet: it needs the Plasma shell and KWin's color # picker. On Fedora this package is "plasma-workspace"; on openSUSE it is # "plasma6-workspace". Kirigami (org.kde.kirigami), plasma5support # (org.kde.plasma.plasma5support) and glib2 (gdbus) are pulled in transitively. Requires: plasma-workspace %description ColorBrush is a widget for the KDE Plasma 6 panel. Clicking the paint brush starts the KWin screen color picker; the picked color is copied to the clipboard and remembered in a history (up to 30 entries, newest first). The popup shows the current color and the history and lets you switch between HEX and RGB formatting, add a color manually, and clear the history. The widget is written entirely in QML and reads pixels from the screen by asking KWin over D-Bus (org.kde.kwin.ColorPicker). It follows the system language: German, French, Spanish, Italian, Dutch, Polish, Brazilian Portuguese and Turkish translations are included. %prep %autosetup -n %{applet_name}-%{version} %build # Recompile the translations from po/ into the applet's locale directory # (package/contents/locale//LC_MESSAGES/*.mo). bash scripts/compile-translations.sh %install install -d %{buildroot}%{_datadir}/plasma/plasmoids/%{applet_id} cp -a package/. %{buildroot}%{_datadir}/plasma/plasmoids/%{applet_id}/ find %{buildroot}%{_datadir}/plasma/plasmoids/%{applet_id} -name '*.swp' -delete %files %license LICENSE %doc README.md CHANGELOG.md %{_datadir}/plasma/plasmoids/%{applet_id}/ %changelog * Tue Oct 20 2026 KairikiFedora <13278297951@sina.cn> - 1.3.1-1 - Initial RPM package for upstream release v1.3.1