## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %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 %{?!python3_pkgversion:%global python3_pkgversion 3} %global modname oras %global srcname %{modname} %global pypi_name oras-py %global forgeurl https://github.com/oras-project/%{pypi_name} %global version0 0.2.22 %forgemeta %global desc OCI Registery as Storage Name: python-%{srcname} Version: %{version0} Release: %{autorelease} Summary: %{desc} License: Apache-2.0 URL: %{forgeurl} Source0: %{pypi_source} # Patches go here BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %{?python_enable_dependency_generator} %description %{desc} OCI Registry as Storage enables libraries to push OCI Artifacts to OCI Conformant registries. This is a Python SDK for Python developers to empower them to do this in their applications. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %if %{undefined python_enable_dependency_generator} && %{undefined python_disable_dependency_generator} # Put manual requires here: %endif %description -n python%{python3_pkgversion}-%{srcname} %{desc} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %pyproject_check_import -t %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.md %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Thu Nov 07 2024 Stephen Smoogen - 0.2.22-1 - Initial package build - Get initial review done - Upload packages to src.fedoraproject.org - Attempt to build. ## END: Generated by rpmautospec