diff --git a/.gitignore b/.gitignore index e2d4bba..3866fd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /pykka-0.15.tar.gz /pykka-1.1.0.tar.gz /pykka-1.2.1.tar.gz +/pykka-9c22e020876383683b32e08aa5bb45eade6201f8.tar.gz diff --git a/pykka.spec b/pykka.spec index 0730345..8a15673 100644 --- a/pykka.spec +++ b/pykka.spec @@ -1,54 +1,55 @@ +%global modname Pykka +%global srcurl https://github.com/jodal/%{name} + +%global commit0 9c22e020876383683b32e08aa5bb45eade6201f8 +%global date0 20181208 + Name: pykka -Version: 1.2.1 -Release: 13%{?dist} +Version: 1.3 +Release: 0.1.%{date0}git%{?dist} Summary: Python library that provides concurrency using actor model -Group: Development/Libraries License: ASL 2.0 -URL: http://www.pykka.org/ -Source0: https://github.com/jodal/pykka/tarball/v%{version}/pykka-%{version}.tar.gz +URL: http://www.%{name}.org/ +%if 0%{?date0} +Source0: %{srcurl}/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz +%else +Source0: %{srcurl}/tarball/v%{version}/%{name}-%{version}.tar.gz +%endif BuildRequires: python3-devel BuildRequires: python3-sphinx BuildArch: noarch -%description -The goal of Pykka is to provide easy to use concurrency abstractions for Python -by using the actor model. - -Pykka provides an actor API with two different implementations: - - * ThreadingActor is built on the Python Standard Library’s threading and Queue - modules, and has no dependencies outside Python itself. It plays well - together with non-actor threads. - * GeventActor is built on the gevent library. gevent is a coroutine-based - Python networking library that uses greenlet to provide a high-level - synchronous API on top of libevent event loop. It is generally faster, but - doesn't like playing with other threads. +%global _description \ +The goal of %{modname} is to provide easy to use concurrency abstractions for Python\ +by using the actor model.\ +\ +%{modname} provides an actor API with two different implementations:\ +\ + * ThreadingActor is built on the Python Standard Library’s threading and Queue\ + modules, and has no dependencies outside Python itself. It plays well\ + together with non-actor threads.\ + * GeventActor is built on the gevent library. gevent is a coroutine-based\ + Python networking library that uses greenlet to provide a high-level\ + synchronous API on top of libevent event loop. It is generally faster, but\ + doesn't like playing with other threads.\ +\ +Much of the naming in %{modname} is inspired by the Akka project which implements\ +actors on the JVM. Though, %{modname} does not aim to be a Python port of Akka. -Much of the naming in Pykka is inspired by the Akka project which implements -actors on the JVM. Though, Pykka does not aim to be a Python port of Akka. +%description +%_description -%package -n python3-pykka +%package -n python3-%{modname} Summary: Python library that provides concurrency using actor model -%{?python_provide:%python_provide python3-pykka} +%{?python_provide:%python_provide python3-%{modname}} -%description -n python3-pykka -The goal of Pykka is to provide easy to use concurrency abstractions for Python -by using the actor model. +%description -n python3-%{modname} +%_description -Pykka for Python 3 provides an actor API with one implementation: - - * ThreadingActor is built on the Python Standard Library’s threading and Queue - modules, and has no dependencies outside Python itself. It plays well - together with non-actor threads. - -Much of the naming in Pykka is inspired by the Akka project which implements -actors on the JVM. Though, Pykka does not aim to be a Python port of Akka. - -This package provides Pykka's Python 3 libraries +This package provides %{modname}'s Python 3 libraries %package docs Summary: Documentation for %{name} -Group: Documentation BuildArch: noarch Requires: devhelp @@ -58,33 +59,35 @@ devhelp docs, and examples. %prep -%setup -q -c -DIR=`ls -d jodal-pykka-*` -mv $DIR/* ./ -mv $DIR/.[a-zA-Z0-9]* ./ -rmdir $DIR +%setup -q -n%{name}-%{commit0} %build %py3_build -cd docs -SPHINXBUILD=sphinx-build-3 make devhelp +pushd docs +SPHINXBUILD='sphinx-build-3 %{_smp_mflags}' make %{_smp_mflags} devhelp %install %py3_install -mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka -cp -rp docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka +mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname} +cp -rp docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/%{modname} -%files -n python3-pykka + +%files -n python3-%{modname} %doc LICENSE README.rst -%{python3_sitelib}/Pykka* -%{python3_sitelib}/pykka +%{python3_sitelib}/%{modname}* +%{python3_sitelib}/%{name}/ %files docs +%doc LICENSE %doc examples/ -%{_datarootdir}/devhelp/Pykka +%{_datarootdir}/devhelp/%{modname} %changelog +* Thu Dec 13 2018 Raphael Groner - 1.3-0.1.20181208git +- provide new snapshot from latest github (25%) +- modernize + * Sun Oct 07 2018 My Karlsson - 1.2.1-13 - Remove python2 subpackage (rhbz#1627414) diff --git a/sources b/sources index e9cf15b..af22d31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2e9cc598b34ec7555f734859ca4c6d05 pykka-1.2.1.tar.gz +SHA512 (pykka-9c22e020876383683b32e08aa5bb45eade6201f8.tar.gz) = 95ca013f4857bc2466c09e37ef00bf65a9ffa523e734fdfc2f642a2fd032feb5e754c18f8923065154e1892305a1b15362358859e6ad5c31b4e3455b1630a6d2