# Generated by build_rpm.py from packaging/py-abbr.spec.in; edit that file instead. Name: py-abbr Version: 4.7.0 Release: 1%{?dist} Summary: Abbreviation expander for Linux: a window of its own and a KRunner plugin License: GPL-3.0-or-later URL: https://github.com/nivaca/py-abbr Source0: %{name}-%{version}.tar.gz BuildArch: noarch # para las pruebas de %check BuildRequires: python3 >= 3.14 BuildRequires: python3-dbus BuildRequires: python3-gobject # krunner-abbr was its name until 3.0.0: an upgrade replaces it Obsoletes: krunner-abbr < 4.0.0 Provides: krunner-abbr = %{version}-%{release} Requires: python3 >= 3.14 Requires: python3-dbus Requires: python3-gobject Requires: hicolor-icon-theme # Plasma is not required: without KRunner the plugin files are only unused, and # the window ("py-abbr app") works on any desktop. KDE extras only with Plasma. Recommends: (python3-pyqt6 or python3-pyside6) Recommends: wl-clipboard Recommends: (kdialog if plasma-workspace) Recommends: python3-pyyaml # los nombres y palabras clave de los emojis («emoji star»), de CLDR Recommends: cldr-emoji-annotation Recommends: (fcitx5-lua if fcitx5) Suggests: ydotool # only for [ai] backend = "api"; the claude command needs nothing Suggests: python3-anthropic %description Type a keyword and an abbreviation in KRunner and get the expansion on the clipboard, or pasted in the window you were using: dates in any format and language, clipboard transformations, small forms, links that open in the browser, Latin and Spanish helpers, and more. The same abbreviations work without KRunner too, in a small window of their own ("py-abbr app"). %prep %autosetup %build # nothing to build: plain Python %check # every test file in a process of its own, all at once (the Qt ones skip without Qt) python3 tools/test.py %install install -d %{buildroot}%{_datadir}/%{name} install -m 644 py_abbr*.py py_abbr_fcitx.lua abbreviations.toml %{buildroot}%{_datadir}/%{name}/ # the shortcut scheme: System Settings, Shortcuts, Import, lists it by its name install -Dm 644 packaging/py-abbr.kksrc %{buildroot}%{_datadir}/kcmkeys/py-abbr.kksrc install -Dm 755 packaging/py-abbr %{buildroot}%{_bindir}/%{name} install -Dm 644 packaging/krunner-abbr.desktop \ %{buildroot}%{_datadir}/krunner/dbusplugins/krunner-abbr.desktop sed -i 's/__VERSION__/%{version}/' %{buildroot}%{_datadir}/krunner/dbusplugins/krunner-abbr.desktop install -Dm 644 packaging/io.github.nivaca.AbbrKRunner.service \ %{buildroot}%{_datadir}/dbus-1/services/io.github.nivaca.AbbrKRunner.service install -Dm 644 packaging/io.github.nivaca.AbbrApp.desktop \ %{buildroot}%{_datadir}/applications/io.github.nivaca.AbbrApp.desktop install -Dm 644 packaging/io.github.nivaca.AbbrApp.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.github.nivaca.AbbrApp.svg %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/%{name}/ # sin Plasma nadie más crea estas carpetas %dir %{_datadir}/krunner %dir %{_datadir}/krunner/dbusplugins %{_datadir}/krunner/dbusplugins/krunner-abbr.desktop %{_datadir}/dbus-1/services/io.github.nivaca.AbbrKRunner.service %{_datadir}/applications/io.github.nivaca.AbbrApp.desktop %{_datadir}/icons/hicolor/scalable/apps/io.github.nivaca.AbbrApp.svg %dir %{_datadir}/kcmkeys %{_datadir}/kcmkeys/py-abbr.kksrc %changelog * Wed Dec 02 2026 Nicolas Vaughan - 4.7.0-1 - Build from the git working tree