From c42141f68dcc2330b2d3e89951777a389f9f36fa Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 21:07:45 +0300 Subject: [PATCH] import python-cfgv-3.4.0-8.el10 --- .gitignore | 1 + .python-cfgv.metadata | 1 + SPECS/python-cfgv.spec | 135 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 .gitignore create mode 100644 .python-cfgv.metadata create mode 100644 SPECS/python-cfgv.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9fc08cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cfgv-3.4.0.tar.gz diff --git a/.python-cfgv.metadata b/.python-cfgv.metadata new file mode 100644 index 0000000..472507c --- /dev/null +++ b/.python-cfgv.metadata @@ -0,0 +1 @@ +c57a6c75848ea78342e051744e76e13cedeed552 SOURCES/cfgv-3.4.0.tar.gz diff --git a/SPECS/python-cfgv.spec b/SPECS/python-cfgv.spec new file mode 100644 index 0000000..40d2439 --- /dev/null +++ b/SPECS/python-cfgv.spec @@ -0,0 +1,135 @@ +## 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 + +Name: python-cfgv +Version: 3.4.0 +Release: %autorelease +Summary: Validate configuration and produce human readable error messages + +# SPDX +License: MIT +URL: https://github.com/asottile/cfgv +Source: %{url}/archive/v%{version}/cfgv-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel + +%global common_description %{expand: +%{summary}.} + +%description %{common_description} + + +%package -n python3-cfgv +Summary: %{summary} + +%description -n python3-cfgv %{common_description} + + +%prep +%autosetup -n cfgv-%{version} +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters +sed -r -i 's/^(cov|flake8)/# &/' requirements-dev.txt + + +%generate_buildrequires +%pyproject_buildrequires requirements-dev.txt + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l cfgv + + +%check +%pytest + + +%files -n python3-cfgv -f %{pyproject_files} +%doc README.md + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 3.4.0-8 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 3.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 3.4.0-7 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 17 2023 Benjamin A. Beasley - 3.4.0-2 +- Assert that %%pyproject_files contains a license file + +* Mon Aug 14 2023 Benjamin A. Beasley - 3.4.0-1 +- Update to 3.4.0 (close RHBZ#2231651) + +* Fri Jul 21 2023 Fedora Release Engineering - 3.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 3.3.1-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Oct 15 2022 Benjamin A. Beasley - 3.3.1-1 +- Update to 3.3.1 + +* Sat Oct 15 2022 Benjamin A. Beasley - 2.0.1-15 +- Note that License is SPDX MIT + +* Sat Oct 15 2022 Benjamin A. Beasley - 2.0.1-13 +- Port to pyproject-rpm-macros; remove obsolete macros; general cleanup + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.0.1-11 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.0.1-8 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro HronĨok - 2.0.1-5 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 2.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 24 2019 Artem Polishchuk - 2.0.1-3 +- Initial package + +## END: Generated by rpmautospec