[packages/python3-click-spinner] - rel 4, bundled versioneer is broken and system package is only for python3
baggins
baggins at pld-linux.org
Wed Jun 4 01:59:38 CEST 2025
commit 5899793ddaeb0d6d72431af78f46a875015d09dc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Jun 4 02:04:56 2025 +0200
- rel 4, bundled versioneer is broken and system package is only for python3
python3-click-spinner.spec | 65 +++++-----------------------------------------
1 file changed, 6 insertions(+), 59 deletions(-)
---
diff --git a/python3-click-spinner.spec b/python3-click-spinner.spec
index afa6a75..309b106 100644
--- a/python3-click-spinner.spec
+++ b/python3-click-spinner.spec
@@ -1,39 +1,29 @@
#
# Conditional build:
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Spinner for Click
Summary(pl.UTF-8): Kręciołek dla Clicka
Name: python3-click-spinner
Version: 0.1.10
-Release: 3
+Release: 4
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/click-spinner/
Source0: https://files.pythonhosted.org/packages/source/c/click-spinner/click-spinner-%{version}.tar.gz
# Source0-md5: ab68ed404401421819c81cc6c0677a87
URL: https://pypi.org/project/click-spinner/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
+BuildRequires: python3-versioneer
%if %{with tests}
+BuildRequires: python3-click
BuildRequires: python3-pytest
BuildRequires: python3-six
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -47,72 +37,29 @@ Czasami przydałoby się pokazać użytkownikowi jakiś postęp, ale pasek
postępu się nie nadaje, ponieważ nie wiemy, jak długo to jeszcze
potrwa. W takich przypadkach chcielibyśmy wyświetlić prosty kręciołek.
-%package -n python3-click-spinner
-Summary: Spinner for Click
-Summary(pl.UTF-8): Kręciołek dla Clicka
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-click-spinner
-Sometimes you would just like to show the user some progress, but a
-progress bar is not suitable because you don't know how much longer it
-would take. In these cases you might want to display a simple spinner.
-
-%description -n python3-click-spinner -l pl.UTF-8
-Czasami przydałoby się pokazać użytkownikowi jakiś postęp, ale pasek
-postępu się nie nadaje, ponieważ nie wiemy, jak długo to jeszcze
-potrwa. W takich przypadkach chcielibyśmy wyświetlić prosty kręciołek.
-
%prep
%setup -q -n click-spinner-%{version}
-%build
-%if %{with python2}
-%py_build
+%{__rm} versioneer.py
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
+%build
%py3_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest tests
%endif
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc README.md
-%{py_sitescriptdir}/click_spinner
-%{py_sitescriptdir}/click_spinner-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-click-spinner
-%defattr(644,root,root,755)
-%doc README.md
%{py3_sitescriptdir}/click_spinner
%{py3_sitescriptdir}/click_spinner-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-click-spinner.git/commitdiff/5899793ddaeb0d6d72431af78f46a875015d09dc
More information about the pld-cvs-commit
mailing list