## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 # TODO adjust once this is implemented: # https://bugzilla.redhat.com/show_bug.cgi?id=1935266 %global modname jaraco %global projname %{modname}.context %global pkgname %{modname}-context %global srcname %{modname}_context %bcond_without tests # Change the build backend in EPEL9 because `setuptools>=61.2` # is needed for PEP621 %if 0%{?epel} == 9 %bcond_without hatch %else %bcond_with hatch %endif Name: python-%{pkgname} Version: 6.0.1 Release: %autorelease Summary: Context managers by jaraco License: MIT URL: https://github.com/jaraco/%{projname} Source0: %{pypi_source %{srcname}} Patch: https://github.com/jaraco/%{projname}/commit/ccab4e0bfcf4da77434cc5769b5186d72f55b7c3.diff#/split-deps.diff BuildArch: noarch BuildRequires: python3-devel %if %{with hatch} BuildRequires: tomcli %endif %global _description %{expand: Context managers by jaraco.} %description %_description %package -n python3-%{pkgname} Summary: %{summary} %description -n python3-%{pkgname} %_description %prep %autosetup -n %{srcname}-%{version} %if %{with hatch} tomcli set pyproject.toml lists str "build-system.requires" "hatchling" "hatch-vcs" tomcli set pyproject.toml str "build-system.build-backend" "hatchling.build" tomcli set pyproject.toml str "tool.hatch.version.source" "vcs" tomcli set pyproject.toml lists str "tool.hatch.build.targets.wheel.packages" "jaraco" %endif %generate_buildrequires %if %{with tests} %pyproject_buildrequires -x test %else %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %if %{with tests} %pytest -k "not context.repo_context" %else %pyproject_check_import %endif %files -n python3-%{pkgname} -f %{pyproject_files} %license LICENSE %doc README.rst NEWS.rst %changelog ## START: Generated by rpmautospec * Thu Sep 19 2024 Cristian Le - 6.0.1-3 - Make package buildable for epel>=9 * Thu Sep 19 2024 Ondrej Mosnáček - 6.0.1-2 - Fix and enable tests * Tue Aug 20 2024 Ondrej Mosnáček - 6.0.1-1 - Update to version 6.0.1 (fedora#2306046) * Fri Jul 19 2024 Fedora Release Engineering - 5.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 22 2024 Ondrej Mosnáček - 5.3.0-1 - Update to version 5.3.0 (fedora#2273523) * Fri Jun 07 2024 Python Maint - 4.3.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 4.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Sep 07 2023 Ondrej Mosnáček - 4.3.0-1 - Initial import (fedora#2232628) ## END: Generated by rpmautospec