## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 openapi-spec-validator %global modname openapi_spec_validator Name: python-%{srcname} Version: 0.5.5 Release: %autorelease Summary: Python library for OpenAPI specs validation License: Apache-2.0 URL: https://github.com/p1c2u/%{srcname} # The GitHub archive has the tests; the PyPI sdist does not. Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: OpenAPI Spec Validator is a Python library that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification. The validator aims to check for full compliance with the Specification.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i '/^--cov[-=]/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %pytest -m 'not network' %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/%{srcname} %changelog * Tue Feb 07 2023 Benjamin A. Beasley 0.5.5-1 - Update to 0.5.5 (close RHBZ#2167272) * Thu Feb 02 2023 Benjamin A. Beasley 0.5.4-1 - Update to 0.5.4 * Wed Feb 01 2023 Benjamin A. Beasley 0.5.3-1 - Update to 0.5.3 (close RHBZ#2166248) * Fri Jan 20 2023 Fedora Release Engineering 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 16 2023 Benjamin A. Beasley 0.5.2-1 - Update to 0.5.2 (close RHBZ#2161144, fix RHBZ#2160913) - Switch to GitHub source and run the (offline) tests * Wed Dec 21 2022 Mattia Verga 0.5.1-1 - Initial import (fedora#2154236)