## 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 # set upstream name variable %global srcname nfcpy Name: python-nfcpy Version: 1.0.4 Release: %autorelease Summary: Python module to read/write NFC tags or communicate with another NFC device License: EUPL-1.1 URL: https://github.com/%{srcname}/%{srcname} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist ndeflib} BuildRequires: %{py3_dist pydes} BuildRequires: %{py3_dist libusb1} BuildRequires: %{py3_dist pyserial} # For tests BuildRequires: %{py3_dist pytest} %global _description %{expand: The nfcpy module implements NFC Forum specifications for wireless short-range data exchange with NFC devices and tags. It is written in Python and aims to provide an easy-to-use yet powerful framework for applications integrating NFC.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l nfc %check %pyproject_check_import # tests are failing, so disabling ##%%pytest tests/ %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst HISTORY.rst %changelog ## START: Generated by rpmautospec * Sun Aug 25 2024 Matthieu Saulnier - 1.0.4-1 - Initial import (fedora#2307253). ## END: Generated by rpmautospec