3 %bcond_with doc # don't build doc
4 %bcond_with tests # do not perform "make test"
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
10 Summary: Python library that provides concurrency using actor model
11 Name: python-%{module}
15 Group: Libraries/Python
16 Source0: https://github.com/jodal/pykka/archive/v%{version}/%{module}-%{version}.tar.gz
17 # Source0-md5: 0148bd046e0c265b834ffd7c454761e4
18 URL: http://www.pykka.org/
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
22 BuildRequires: python-modules
23 BuildRequires: python-setuptools
25 BuildRequires: python-gevent
29 BuildRequires: python3-modules
30 BuildRequires: python3-setuptools
33 BuildRequires: sphinx-pdg
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 The goal of Pykka is to provide easy to use concurrency abstractions
40 for Python by using the actor model.
42 Pykka provides an actor API with two different implementations:
44 - ThreadingActor is built on the Python Standard Library's threading
45 and Queue modules, and has no dependencies outside Python itself. It
46 plays well together with non-actor threads.
47 - GeventActor is built on the gevent library. gevent is a
48 coroutine-based Python networking library that uses greenlet to
49 provide a high-level synchronous API on top of libevent event loop. It
50 is generally faster, but doesn't like playing with other threads.
52 Much of the naming in Pykka is inspired by the Akka project which
53 implements actors on the JVM. Though, Pykka does not aim to be a
56 This package provides Pykka's Python 2 libraries.
58 %package -n python3-pykka
59 Summary: Python library that provides concurrency using actor model
60 Group: Libraries/Python
62 %description -n python3-%{module}
63 The goal of Pykka is to provide easy to use concurrency abstractions
64 for Python by using the actor model.
66 Pykka for Python 3 provides an actor API with one implementation:
68 - ThreadingActor is built on the Python Standard Library's threading
69 and Queue modules, and has no dependencies outside Python itself. It
70 plays well together with non-actor threads.
72 Much of the naming in Pykka is inspired by the Akka project which
73 implements actors on the JVM. Though, Pykka does not aim to be a
76 This package provides Pykka's Python 3 libraries.
79 Summary: Documentation for %{name}
84 This package provides the documentation for %{name}, e.g. the API as
85 devhelp docs, and examples.
88 %setup -q -n %{module}-%{version}
92 %py_build %{?with_tests:test}
96 %py3_build %{?with_tests:test}
100 %{__make} -C docs devhelp
104 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka
116 cp -a docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka
120 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
126 %{py_sitescriptdir}/%{module}
127 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
131 %files -n python3-%{module}
132 %defattr(644,root,root,755)
134 %{py3_sitescriptdir}/%{module}
135 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
140 %defattr(644,root,root,755)
142 %{_datarootdir}/devhelp/Pykka