## 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 jsonschema-spec %global modname jsonschema_spec Name: python-%{srcname} Version: 0.1.3 Release: %autorelease Summary: JSONSchema Spec with object-oriented paths 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: A python library which provides traverse JSON resources like paths and access resources on demand with separate accessor layer.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -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 %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Fri Feb 03 2023 Mattia Verga 0.1.3-1 - Update to 0.1.3 (fedora#2166182) * Wed Jan 25 2023 Benjamin A. Beasley 0.1.2-3 - Switch to GitHub source and run the tests * Fri Jan 20 2023 Fedora Release Engineering 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 21 2022 Mattia Verga 0.1.2-1 - Initial import (fedora#2154188)