[packages/python-icecream] - initial

qboosh qboosh at pld-linux.org
Sat Dec 6 18:13:36 CET 2025


commit 6dd74dcff88ecac597b451a736a64bba3a80cef0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 6 18:13:41 2025 +0100

    - initial

 python-icecream.spec | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 121 insertions(+)
---
diff --git a/python-icecream.spec b/python-icecream.spec
new file mode 100644
index 0000000..78f9646
--- /dev/null
+++ b/python-icecream.spec
@@ -0,0 +1,121 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-icecream.spec)
+
+Summary:	IceCream - never use print() to debug again
+Summary(pl.UTF-8):	IceCream - nigdy już nie używaj print() do debugowania
+Name:		python-icecream
+# keep 2.1.3 here for python2 support
+Version:	2.1.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/icecream/
+Source0:	https://files.pythonhosted.org/packages/source/i/icecream/icecream-%{version}.tar.gz
+# Source0-md5:	acc49d1303b886314577ff059d66a0e3
+URL:		https://pypi.org/project/icecream/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-asttokens >= 2.0.1
+BuildRequires:	python-colorama >= 0.3.9
+BuildRequires:	python-executing >= 0.3.1
+BuildRequires:	python-pygments >= 2.2.0
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-asttokens >= 2.0.1
+BuildRequires:	python3-colorama >= 0.3.9
+BuildRequires:	python3-executing >= 0.3.1
+BuildRequires:	python3-pygments >= 2.2.0
+%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
+Do you ever use "print()" or "log()" to debug your code? Of course you
+do. IceCream, or "ic" for short, makes print debugging a little
+sweeter.
+
+%description -l pl.UTF-8
+Czy kiedykolwiek używałeś "print()" lub "log()" przy szukaniu błędów w
+kodzie? Na pewno. IceCream, w skrócie "ic" czyni poszukiwanie błędów
+przez wypisywanie nieco przyjemniejszym.
+
+%package -n python3-icecream
+Summary:	IceCream - never use print() to debug again
+Summary(pl.UTF-8):	IceCream - nigdy już nie używaj print() do debugowania
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.5
+
+%description -n python3-icecream
+Do you ever use "print()" or "log()" to debug your code? Of course you
+do. IceCream, or "ic" for short, makes print debugging a little
+sweeter.
+
+%description -n python3-icecream -l pl.UTF-8
+Czy kiedykolwiek używałeś "print()" lub "log()" przy szukaniu błędów w
+kodzie? Na pewno. IceCream, w skrócie "ic" czyni poszukiwanie błędów
+przez wypisywanie nieco przyjemniejszym.
+
+%prep
+%setup -q -n icecream-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+%{__python} -m unittest discover -s tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s 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 LICENSE.txt README.md
+%{py_sitescriptdir}/icecream
+%{py_sitescriptdir}/icecream-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-icecream
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%{py3_sitescriptdir}/icecream
+%{py3_sitescriptdir}/icecream-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-icecream.git/commitdiff/6dd74dcff88ecac597b451a736a64bba3a80cef0



More information about the pld-cvs-commit mailing list