%global srcname api_object_schema %global pkgname api-object-schema Name: python3-%{pkgname} Version: 2.0.0 Release: 1%{?dist} Summary: API Object Schema License: BSD URL: https://github.com/Infinidat/%{srcname} Source: %{pypi_source} BuildArch: noarch BuildRequires: curl BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-sentinels %description API Object Schema is a library of utilities for defining schemas of Pythonic objects interacting with external APIs. %prep %autosetup -n %{srcname}-%{version} rm -rf %{srcname}.egg-info for src in LICENSE README.md; do curl -fsSLO https://raw.githubusercontent.com/Infinidat/%{srcname}/%{version}/$src done %build %py3_build %install %py3_install %files %license LICENSE %doc README.md %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %changelog * Mon Apr 04 2022 Alexander Deiter - 2.0.0-1 - Initial RPM release