File python-autokey.spec of Package python-autokey

#
# spec file for package python-autokey
#
# Copyright (c) 2026 SUSE LLC and Contributors
#
# 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 pythons python3

Name:           python-autokey
Version:        0.96.0
Release:        0
Summary:        Keyboard and GUI automation on Linux (X11)
License:        GPL-3.0-only
URL:            https://github.com/autokey/autokey
Source:         https://files.pythonhosted.org/packages/source/a/autokey/autokey-%{version}.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  humanity-icon-theme
BuildRequires:  ubuntu-mono-icon-theme
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module PyHamcrest}
BuildRequires:  %{python_module packaging}
BuildRequires:  %{python_module pyinotify}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module python-xlib}
# /SECTION
BuildRequires:  fdupes
Requires:       python-packaging
Requires:       python-pyinotify
Requires:       python-python-xlib
Requires:       python-qscintilla-qt5
Requires:       python-standard-imghdr
Requires:       xautomation
BuildArch:      noarch
%python_subpackages

%description
Keyboard and GUI automation on Linux (X11)

%prep
%autosetup -p1 -n autokey-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%fdupes %{buildroot}%{python_sitelib}

%check
#%%pytest

%files %{python_files}
%doc README.rst
%license LICENSE
%{_bindir}/autokey-run
%{_bindir}/autokey-shell
%{_bindir}/autokey-gtk
%{_bindir}/autokey-qt
%{python_sitelib}/autokey
%{python_sitelib}/autokey-%{version}.dist-info
%dir %{_datadir}/applications
%{_datadir}/applications/autokey-qt.desktop
%{_datadir}/applications/autokey-gtk.desktop
%dir %{_datadir}/icons/Humanity
%dir %{_datadir}/icons/Humanity/scalable
%dir %{_datadir}/icons/Humanity/scalable/apps
%{_datadir}/icons/Humanity/scalable/apps/autokey-status.svg
%{_datadir}/icons/Humanity/scalable/apps/autokey-status-error.svg
%dir %{_datadir}/icons/hicolor/96x96/apps
%{_datadir}/icons/hicolor/96x96/apps/autokey.png
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/autokey.svg
%{_datadir}/icons/hicolor/scalable/apps/autokey-status.svg
%{_datadir}/icons/hicolor/scalable/apps/autokey-status-dark.svg
%{_datadir}/icons/hicolor/scalable/apps/autokey-status-error.svg
%dir %{_datadir}/icons/ubuntu-mono-dark/apps/48
%{_datadir}/icons/ubuntu-mono-dark/apps/48/autokey-status.svg
%{_datadir}/icons/ubuntu-mono-dark/apps/48/autokey-status-error.svg
%dir %{_datadir}/icons/ubuntu-mono-light/apps/48
%{_datadir}/icons/ubuntu-mono-light/apps/48/autokey-status.svg
%{_datadir}/icons/ubuntu-mono-light/apps/48/autokey-status-error.svg
%dir %doc %{_mandir}/man1/
%doc %{_mandir}/man1/autokey-qt.1%{?ext_man}
%doc %{_mandir}/man1/autokey-gtk.1%{?ext_man}
%doc %{_mandir}/man1/autokey-run.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by