From 57ff8ec82e1af2ce3f5618575b29c4396dc6f464 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 16:40:03 +0300 Subject: [PATCH] import python-pep440-0.1.2-8.el10 --- .gitignore | 1 + .python-pep440.metadata | 1 + SPECS/python-pep440.spec | 97 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 .gitignore create mode 100644 .python-pep440.metadata create mode 100644 SPECS/python-pep440.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a476eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pep440-0.1.2.tar.gz diff --git a/.python-pep440.metadata b/.python-pep440.metadata new file mode 100644 index 0000000..991baaf --- /dev/null +++ b/.python-pep440.metadata @@ -0,0 +1 @@ +4ba7b2275364c47b62e6e82283d85b1b33425776 SOURCES/pep440-0.1.2.tar.gz diff --git a/SPECS/python-pep440.spec b/SPECS/python-pep440.spec new file mode 100644 index 0000000..3e590d0 --- /dev/null +++ b/SPECS/python-pep440.spec @@ -0,0 +1,97 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 8; + 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 + +%bcond_without tests + +%global _description %{expand: +A simple package with utils to check whether versions number match PEP 440.} + +Name: python-pep440 +Version: 0.1.2 +Release: %{autorelease} +Summary: A simple package with utils to check whether versions number match Pep 440 + +License: MIT +URL: https://pypi.org/pypi/pep440 +Source0: %{pypi_source pep440} + +BuildArch: noarch + +%description %_description + +%package -n python3-pep440 +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-pytest + +%description -n python3-pep440 %_description + + +%prep +%autosetup -n pep440-%{version} + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files pep440 + + +%check +%if %{with tests} +# skip test_cli test as they depend on pytest-console-scripts, which +# is not yet packaged to Fedora +%{pytest} -svv -k "not test_cli" +%endif + + +%files -n python3-pep440 -f %{pyproject_files} +%doc readme.md +%{_bindir}/pep440 +%license LICENSE + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.1.2-8 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.1.2-7 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 0.1.2-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Oct 02 2022 Maíra Canal - 0.1.2-1 +- Update to 0.1.2 (close RHBZ#2126521) + +* Mon Aug 29 2022 Maíra Canal - 0.1.1-1 +- Initial Fedora package +## END: Generated by rpmautospec