From ba155c170565bc995692733bf8ad2bcd880c1d26 Mon Sep 17 00:00:00 2001 From: ebasov Date: Mon, 10 Feb 2025 16:33:20 +0300 Subject: [PATCH] import python-shtab-1.7.1-3.el10 --- .gitignore | 1 + .python-shtab.metadata | 1 + SPECS/python-shtab.spec | 128 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 .gitignore create mode 100644 .python-shtab.metadata create mode 100644 SPECS/python-shtab.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a48666 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/shtab-1.7.1.tar.gz diff --git a/.python-shtab.metadata b/.python-shtab.metadata new file mode 100644 index 0000000..94e740f --- /dev/null +++ b/.python-shtab.metadata @@ -0,0 +1 @@ +2900cfa8593fc80bbfb0d38c02755aea80ffa47c SOURCES/shtab-1.7.1.tar.gz diff --git a/SPECS/python-shtab.spec b/SPECS/python-shtab.spec new file mode 100644 index 0000000..168b9e7 --- /dev/null +++ b/SPECS/python-shtab.spec @@ -0,0 +1,128 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## 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 + +%global pypi_name shtab + +Name: python-shtab +Version: 1.7.1 +Release: %autorelease +Summary: Automagic shell tab completion for Python CLI applications + +License: Apache-2.0 +URL: https://github.com/iterative/shtab +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +BuildRequires: python3dist(pytest) + +%description +Automatically generate shell tab completion scripts for Python CLI apps. + +%package -n python3-shtab +Summary: %{summary} + +%description -n python3-shtab +Automatically generate shell tab completion scripts for Python CLI apps. + +%prep +%autosetup -n shtab-%{version} +# remove coverage test config +sed -i -e 's/addopts =/#addopts =/' pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files shtab + +%check +%pytest + +%files -n python3-shtab -f %{pyproject_files} +%license LICENCE +%doc README.rst +%{_bindir}/shtab + +%changelog +* Mon Feb 10 2025 Eduard Basov - 1.7.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.7.1-2 +- Rebuilt for Python 3.13 + +* Fri Mar 08 2024 Mikel Olasagasti Uranga - 1.7.1-1 +- Update to 1.7.1 - Closes rhbz#2268574 + +* Fri Mar 08 2024 Mikel Olasagasti Uranga - 1.7.0-1 +- Update to 1.7.0 - Closes rhbz#2215438 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.6.1-2 +- Rebuilt for Python 3.12 + +* Thu May 18 2023 Mikel Olasagasti Uranga - 1.6.1-1 +- Update to 1.6.1 - Closes rhbz#2183852 +- migrated to SPDX license + +* Fri Jan 20 2023 Fedora Release Engineering - 1.5.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Nov 19 2022 Mikel Olasagasti Uranga - 1.5.8-1 +- Update to 1.5.8 - Closes rhbz#2139517 + +* Sat Oct 29 2022 Mikel Olasagasti Uranga - 1.5.6-1 +- Update to 1.5.6 - Closes rhbz#2138543 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.5.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 17 2022 Python Maint - 1.5.5-2 +- Rebuilt for Python 3.11 + +* Fri Jun 17 2022 Mikel Olasagasti Uranga - 1.5.5-1 +- Update to 1.5.5 - Closes rhbz#2098173 + +* Mon Jun 13 2022 Python Maint - 1.5.4-2 +- Rebuilt for Python 3.11 + +* Tue Apr 19 2022 Mikel Olasagasti Uranga - 1.5.4-1 +- Update to 1.5.4 - Closes rhbz#2076603 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Jan 02 2022 Mikel Olasagasti Uranga - 1.5.3-1 +- Update to 1.5.3. Closes rhbz#2036487 + +* Fri Dec 03 2021 Mikel Olasagasti Uranga - 1.5.2-1 +- Update to 1.5.2 + +* Thu Nov 18 2021 Mikel Olasagasti Uranga - 1.5.0-1 +- Initial build (BZ#2023009) +## END: Generated by rpmautospec