## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 ndeflib Name: python-ndeflib Version: 0.3.3 Release: %autorelease Summary: Python package for parsing and generating NFC Data Exchange Format messages License: ISC URL: https://github.com/nfcpy/%{srcname} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # For tests BuildRequires: %{py3_dist pytest} %global _description %{expand: The ndeflib is an ISC-licensed Python package for parsing and generating NFC Data Exchange Format (NDEF) messages. NDEF (NFC Data Exchange Format), specified by the NFC Forum, is a binary message format used to encapsulate application-defined payloads exchanged between NFC Devices and Tags. Each payload is encoded as an NDEF Record with fields that specify the payload size, payload type, an optional payload identifier, and flags for indicating the first and last record of an NDEF Message or tagging record chunks. An NDEF Message is simply a sequence of one or more NDEF Records where the first and last record are marked by the Message Begin and End flags.} %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 ndef %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 * Sat Aug 31 2024 Matthieu Saulnier - 0.3.3-2 - Fix typo in summary * Sun Aug 25 2024 Matthieu Saulnier - 0.3.3-1 - Initial import (fedora#2307257). ## END: Generated by rpmautospec