## 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.6 Release: %autorelease Summary: Python library for OpenAPI specs validation License: Apache-2.0 URL: https://github.com/python-openapi/%{srcname} Source: %{pypi_source %{modname}} 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 %pyproject_extras_subpkg -n python3-%{srcname} requests %prep %autosetup -p1 -n %{modname}-%{version} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i '/^--cov[-=]/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires -x requests %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 * Fri Mar 17 2023 Benjamin A. Beasley 0.5.6-1 - Update to 0.5.6 (close RHBZ#2179285) - Switch to the PyPI sdist since it now contains tests * Thu Mar 09 2023 Benjamin A. Beasley 0.5.5-4 - Add missing “requests” extra metapackage * Thu Mar 09 2023 Benjamin A. Beasley 0.5.5-3 - Break long lines in the description * Thu Mar 02 2023 Benjamin A. Beasley 0.5.5-2 - Update URL for move to python-openapi GitHub organization * 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)