From 2b4dab13ced169f9d93510ae038ec9da0b986e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Wed, 31 Jan 2024 10:12:22 +0100 Subject: [PATCH] python-xkbregistry v0.3 --- .gitignore | 1 + python-xkbregistry.spec | 56 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+) create mode 100644 .gitignore create mode 100644 python-xkbregistry.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd410e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xkbregistry-*.tar.gz diff --git a/python-xkbregistry.spec b/python-xkbregistry.spec new file mode 100644 index 0000000..4ac528f --- /dev/null +++ b/python-xkbregistry.spec @@ -0,0 +1,56 @@ +Name: python-xkbregistry +Version: 0.3 +Release: %autorelease +Summary: Bindings for libxkbregistry using cffi + +License: MIT +URL: https://github.com/sde1000/python-xkbregistry +Source: %{pypi_source xkbregistry} + +BuildRequires: python3-devel +BuildRequires: gcc +BuildRequires: libxkbcommon-devel + +Requires: libxkbcommon + + +%global _description %{expand: +Python bindings for libxkbregistry using cffi.} + + +%description %_description + +%package -n python3-xkbregistry +Summary: %{summary} + +%description -n python3-xkbregistry %_description + + +%prep +%autosetup -n xkbregistry-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel +%python3 xkbregistry/ffi_build.py + + +%install +%pyproject_install +%pyproject_save_files xkbregistry + + +%check +%pyproject_check_import -t +%{py3_test_envvars} %{python3} -m unittest + + +%files -n python3-xkbregistry -f %{pyproject_files} +%license LICENSE +%doc README.rst + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a7da43d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (xkbregistry-0.3.tar.gz) = 536f656fef221acf80037564f019a674f7d9f35ae4a9a6a8532f07d7528cc921f088365835290f8a2222322b082c78bcbb7ad7d3af80ede042eaea251805c2f3