File python-xkbcommon.spec of Package python-xkbcommon
Name: python-xkbcommon
Version: 0.8
Release: 6%{?dist}
Summary: Bindings for libxkbcommon using cffi
License: MIT
URL: https://github.com/sde1000/python-xkbcommon
Source: https://files.pythonhosted.org/packages/source/x/xkbcommon/xkbcommon-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: gcc
BuildRequires: libxkbcommon-devel
Requires: libxkbcommon
%global _description %{expand:
Python bindings for libxkbcommon using cffi.}
%description %_description
%package -n python3-xkbcommon
Summary: %{summary}
%description -n python3-xkbcommon %_description
%prep
%autosetup -p1 -n xkbcommon-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%python3 xkbcommon/ffi_build.py
%install
%pyproject_install
%pyproject_save_files xkbcommon
%check
%pyproject_check_import -t
%{py3_test_envvars} %{python3} -m unittest
%files -n python3-xkbcommon -f %{pyproject_files}
%license LICENSE
%doc README.rst