File python3-ewmh.spec of Package python3-ewmh

#
# spec file for package python3-ewmh
#
# Copyright (c) 2025 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 modulename ewmh

Name:           python3-%{modulename}
Version:        0.1.6
Release:        1
Summary:        An implementation of EWMH for python, based on Xlib
License:        GPL-3.0-only
Group:          Development/Languages/Python
URL:            https://github.com/parkouss/pyewmh
Source:         https://github.com/parkouss/pyewmh/archive/refs/tags/v%{version}.tar.gz#/pyewmh-0.1.6.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  python-rpm-macros
BuildRequires:  python3-xlib

%description
An implementation of EWMH (Extended Window Manager Hints) for python, based on
Xlib. It allows EWMH-compliant window managers (most modern WMs) to be queried
and controlled.

%prep
%autosetup -n pyewmh-%{version}

%build
%py3_build

%install
%py3_install

%check

%files
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/ewmh*
%{python_sitelib}/ewmh-*.egg-info/*

%changelog
openSUSE Build Service is sponsored by