|
|
|
@ -1,14 +1,16 @@
|
|
|
|
|
%global pypi_name click
|
|
|
|
|
%bcond tests 1
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 8.0.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Name: python-click
|
|
|
|
|
Version: 8.1.7
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Simple wrapper around optparse for powerful command line utilities
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/mitsuhiko/click
|
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/pallets/click
|
|
|
|
|
Source0: %{url}/archive/%{version}/click-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
click is a Python package for creating beautiful command line\
|
|
|
|
@ -18,37 +20,102 @@ comes with good defaults out of the box.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-click
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
%description -n python%{python3_pkgversion}-click %{_description}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
|
# Use test dependencies without version locks
|
|
|
|
|
sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini
|
|
|
|
|
%autosetup -n click-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -t
|
|
|
|
|
%pyproject_buildrequires %{?with_tests:requirements/tests.in}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
|
%pyproject_save_files click
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%tox
|
|
|
|
|
%pyproject_check_import
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%pytest
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name} -f %pyproject_files
|
|
|
|
|
%files -n python%{python3_pkgversion}-click -f %pyproject_files
|
|
|
|
|
%license LICENSE.rst
|
|
|
|
|
%doc README.rst CHANGES.rst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 26 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 8.1.7-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.7-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 8.1.7-5
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Wed Jan 31 2023 Maxwell G <maxwell@gtmx.me> - 8.1.7-4
|
|
|
|
|
- Add test bcond to make click easier to bootstrap
|
|
|
|
|
- Use pytest directly instead of pulling in tox
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Aug 23 2023 Charalampos Stratakis <cstratak@redhat.com> - 8.1.7-1
|
|
|
|
|
- Update to 8.1.7
|
|
|
|
|
Resolves: rhbz#2220975
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 8.1.3-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed Apr 12 2023 Miro Hrončok <mhroncok@redhat.com> - 8.1.3-3
|
|
|
|
|
- Fix test failures with pytest 7.3.0
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Aug 06 2022 Charalampos Stratakis <cstratak@redhat.com> - 8.1.3-1
|
|
|
|
|
- Update to 8.1.3
|
|
|
|
|
Resolves: rhbz#2080026
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 8.1.2-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Tue Apr 05 2022 Charalampos Stratakis <cstratak@redhat.com> - 8.1.2-1
|
|
|
|
|
- Update to 8.1.2
|
|
|
|
|
Resolves: rhbz#2069360
|
|
|
|
|
|
|
|
|
|
* Wed Mar 02 2022 Charalampos Stratakis <cstratak@redhat.com> - 8.0.4-2
|
|
|
|
|
- Unpin pytest version
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Charalampos Stratakis <cstratak@redhat.com> - 8.0.4-1
|
|
|
|
|
- Update to 8.0.4
|
|
|
|
|
Resolves: rhbz#2056119
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 05 2021 Karolina Surma <ksurma@redhat.com> - 8.0.3-1
|
|
|
|
|
- Update to 8.0.3
|
|
|
|
|
Resolves: rhbz#2012353
|