3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Threading and multiprocessing eye-candy
8 Summary(pl.UTF-8): Miłe dla oka wątli i wieloprocesowość
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pebble/
15 Source0: https://files.pythonhosted.org/packages/source/p/pebble/Pebble-%{version}.tar.gz
16 # Source0-md5: c8c06548a13af018bfa247ae1ecdd844
17 URL: https://pypi.org/project/Pebble/
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python-modules >= 1:2.5
22 BuildRequires: python-setuptools
24 BuildRequires: python-futures
28 BuildRequires: python3-modules >= 1:3.2
29 BuildRequires: python3-setuptools
31 Requires: python-modules >= 1:2.5
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Pebble provides a neat API to manage threads and processes within an
39 %description -l pl.UTF-8
40 Pebble udostępnia schludne API do zarządzania wątkami i procesami
43 %package -n python3-pebble
44 Summary: Threading and multiprocessing eye-candy
45 Summary(pl.UTF-8): Miłe dla oka wątli i wieloprocesowość
46 Group: Libraries/Python
47 Requires: python3-modules >= 1:3.2
49 %description -n python3-pebble
50 Pebble provides a neat API to manage threads and processes within an
53 %description -n python3-pebble -l pl.UTF-8
54 Pebble udostępnia schludne API do zarządzania wątkami i procesami
58 %setup -q -n Pebble-%{version}
65 %{__python} -m unittest discover -s test
73 %{__python3} -m unittest discover -s test
78 rm -rf $RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
97 %{py_sitescriptdir}/pebble
98 %{py_sitescriptdir}/Pebble-%{version}-py*.egg-info
102 %files -n python3-pebble
103 %defattr(644,root,root,755)
105 %{py3_sitescriptdir}/pebble
106 %{py3_sitescriptdir}/Pebble-%{version}-py*.egg-info