## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 * Fri Jul 19 2024 Fedora Release Engineering - 1.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.0.6-2 - Rebuilt for Python 3.13 * Wed May 01 2024 Davide Cavalca - 1.0.6-1 - Initial import; Fixes: RHBZ#2263654 ## END: Generated by rpmautospec