## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname hid Name: python-%{srcname} Version: 1.0.6 Release: %autorelease Summary: Python ctypes bindings for hidapi License: MIT URL: https://github.com/apmorton/pyhidapi Source: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: hidapi BuildRequires: python3-devel %global _description %{expand: This package provides Python bindings for hidapi using ctypes.} %description %_description %package -n python3-%{srcname} Summary: %{summary} Requires: hidapi %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcname} %check %pyproject_check_import %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Wed May 01 2024 Davide Cavalca - 1.0.6-1 - Initial import; Fixes: RHBZ#2263654 ## END: Generated by rpmautospec