commit c8f99ba1da62b6b1b244324fc908fad6789587f9 Author: tigro Date: Sat Sep 28 10:19:54 2024 +0300 import python-jaraco-test-5.5.1-2.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c05da3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jaraco_test-5.5.1.tar.gz diff --git a/.python-jaraco-test.metadata b/.python-jaraco-test.metadata new file mode 100644 index 0000000..1b813a2 --- /dev/null +++ b/.python-jaraco-test.metadata @@ -0,0 +1 @@ +067e05d6effb2d862b38bf6be4680c43a5872696 SOURCES/jaraco_test-5.5.1.tar.gz diff --git a/SPECS/python-jaraco-test.spec b/SPECS/python-jaraco-test.spec new file mode 100644 index 0000000..82cf982 --- /dev/null +++ b/SPECS/python-jaraco-test.spec @@ -0,0 +1,102 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 + +%if 0%{?epel} == 9 +# pytest fails to import test.support on epel9 +%bcond_with test +%else +%bcond_without test +%endif + +Name: python-jaraco-test +Version: 5.5.1 +Release: %autorelease +Summary: Testing support by jaraco +License: MIT +URL: https://github.com/jaraco/jaraco.test +Source: %{pypi_source jaraco_test} + +BuildArch: noarch +BuildRequires: python3-devel +# needs test module which is part of python stdlib +BuildRequires: python3-test +%if 0%{?epel} == 9 +# Change the build backend in EPEL9 because `setuptools>=61.2` is needed for PEP621 +BuildRequires: tomcli +%endif + +%global _description %{expand: +Testing support by jaraco.} + +%description %_description + +%package -n python3-jaraco-test +Summary: %{summary} +Requires: python3-test + +%description -n python3-jaraco-test %_description + + +%prep +%autosetup -p1 -n jaraco_test-%{version} +%if 0%{?epel} == 9 +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 +%pyproject_buildrequires -x test + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l jaraco + + +%check +%pyproject_check_import +%if %{with test} +%{py3_test_envvars} %{python3} -m pytest -v +%endif + + +%files -n python3-jaraco-test -f %{pyproject_files} +%doc README.rst + +%changelog +* Sat Sep 28 2024 Arkady L. Shane - 5.5.1-2 +- Rebuilt for MSVSphere 9.4 + +## START: Generated by rpmautospec +* Fri Sep 20 2024 Cristian Le - 5.5.1-2 +- Make package buildable for epel>=9 + +* Fri Sep 20 2024 Cristian Le - 5.5.1-1 +- Update to 5.5.1 + +* Mon Aug 12 2024 Lumir Balhar - 5.4.0-4 +- Fix compatibility with pytest 8 (rhbz#2279864) + +* Fri Jul 19 2024 Fedora Release Engineering - 5.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 5.4.0-2 +- Rebuilt for Python 3.13 + +* Wed Apr 03 2024 Lumir Balhar - 5.4.0-1 +- Initial import (fedora#2270683). +## END: Generated by rpmautospec