File python3-ewmh.spec of Package python3-ewmh
# Created by pyp2rpm-3.3.2
%global pypi_name ewmh
Name: python-%{pypi_name}
Version: 0.1.6
Release: 1%{?dist}
Summary: python implementation of Extended Window Manager Hints, based on Xlib
License: LGPL
URL: https://github.com/parkouss/pyewmh
Source0: ewmh-0.2.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-Sphinx
%description
Description An implementation of EWMH (Extended Window Manager Hints) for
python 2 and 3, based on Xlib. It allows EWMH-compliant window managers (most
modern WMs) to be queried and controlled.pyewmh is distributed under the GNU
Lesser General Public License, version 3, or, at your option, any later
version. See LICENSE.txt for more information.Installation Simply run:.. code-
block:: shell pip...
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-xlib
%description -n python3-%{pypi_name}
Description An implementation of EWMH (Extended Window Manager Hints) for
python 2 and 3, based on Xlib. It allows EWMH-compliant window managers (most
modern WMs) to be queried and controlled.pyewmh is distributed under the GNU
Lesser General Public License, version 3, or, at your option, any later
version. See LICENSE.txt for more information.Installation Simply run:.. code-
block:: shell pip...
%package -n python-%{pypi_name}-doc
Summary: ewmh documentation
%description -n python-ewmh-doc
Documentation for ewmh
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
%files -n python3-ewmh
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.*.egg-info
%files -n python-ewmh-doc
#doc html
%license LICENSE.txt