commit 9eb370338920f3fdb0d378bc55d6c7cff677c62a
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Sat Apr 20 07:24:56 2024 +0200

    - new

 python-click-spinner.spec | 118 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 118 insertions(+)
---
diff --git a/python-click-spinner.spec b/python-click-spinner.spec
new file mode 100644
index 0000000..f07f5da
--- /dev/null
+++ b/python-click-spinner.spec
@@ -0,0 +1,118 @@
+#
+# 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:          python-click-spinner
+Version:       0.1.10
+Release:       1
+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
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-six
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-modules >= 1:2.7
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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 -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.
+
+%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
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
+%endif
+
+%if %{with python3}
+%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/python-click-spinner.git/commitdiff/9eb370338920f3fdb0d378bc55d6c7cff677c62a

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to