From 4482fc4f90e5d157a4d716e0f7bbe5cd9935bcf9 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 16 May 2024 08:35:12 +0200 Subject: [PATCH] downgrade to 8.0.3 Signed-off-by: Toshaan Bharvani --- SPECS/python-click.spec | 73 ++++++++--------------------------------- 1 file changed, 14 insertions(+), 59 deletions(-) diff --git a/SPECS/python-click.spec b/SPECS/python-click.spec index 2457326..bede637 100644 --- a/SPECS/python-click.spec +++ b/SPECS/python-click.spec @@ -1,14 +1,14 @@ -Name: python-click -Version: 8.1.7 +%global pypi_name click + +Name: python-%{pypi_name} +Version: 8.0.3 Release: 1%{?dist} Summary: Simple wrapper around optparse for powerful command line utilities -License: BSD-3-Clause -URL: https://github.com/pallets/click -Source0: %{url}/archive/%{version}/click-%{version}.tar.gz - +License: BSD +URL: https://github.com/mitsuhiko/click +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python%{python3_pkgversion}-devel %global _description \ click is a Python package for creating beautiful command line\ @@ -18,82 +18,37 @@ comes with good defaults out of the box. %description %{_description} - -%package -n python%{python3_pkgversion}-click +%package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} -%description -n python%{python3_pkgversion}-click %{_description} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: pyproject-rpm-macros +%description -n python%{python3_pkgversion}-%{pypi_name} %{_description} %prep -%autosetup -n click-%{version} -p1 +%autosetup -n %{pypi_name}-%{version} -p1 # Use test dependencies without version locks sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini - %generate_buildrequires %pyproject_buildrequires -t - %build %pyproject_wheel - %install %pyproject_install -%pyproject_save_files click - +%pyproject_save_files %{pypi_name} %check %tox - -%files -n python%{python3_pkgversion}-click -f %pyproject_files +%files -n python%{python3_pkgversion}-%{pypi_name} -f %pyproject_files %license LICENSE.rst %doc README.rst CHANGES.rst - %changelog -* Wed Aug 23 2023 Charalampos Stratakis - 8.1.7-1 -- Update to 8.1.7 -Resolves: rhbz#2220975 - -* Fri Jul 21 2023 Fedora Release Engineering - 8.1.3-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jun 14 2023 Python Maint - 8.1.3-4 -- Rebuilt for Python 3.12 - -* Wed Apr 12 2023 Miro HronĨok - 8.1.3-3 -- Fix test failures with pytest 7.3.0 - -* Fri Jan 20 2023 Fedora Release Engineering - 8.1.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Aug 06 2022 Charalampos Stratakis - 8.1.3-1 -- Update to 8.1.3 -Resolves: rhbz#2080026 - -* Fri Jul 22 2022 Fedora Release Engineering - 8.1.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 8.1.2-2 -- Rebuilt for Python 3.11 - -* Tue Apr 05 2022 Charalampos Stratakis - 8.1.2-1 -- Update to 8.1.2 -Resolves: rhbz#2069360 - -* Wed Mar 02 2022 Charalampos Stratakis - 8.0.4-2 -- Unpin pytest version - -* Thu Feb 24 2022 Charalampos Stratakis - 8.0.4-1 -- Update to 8.0.4 -Resolves: rhbz#2056119 - -* Fri Jan 21 2022 Fedora Release Engineering - 8.0.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - * Fri Nov 05 2021 Karolina Surma - 8.0.3-1 - Update to 8.0.3 Resolves: rhbz#2012353