From 69274ceae052afef0b8b25d862ceebc9301d1c2a Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Jan 14 2013 07:20:56 +0000 Subject: Add documentation and examples Signed-off-by: Jonathan Dieter --- diff --git a/pykka.spec b/pykka.spec index 0202249..6e2b381 100644 --- a/pykka.spec +++ b/pykka.spec @@ -1,14 +1,14 @@ -Name: pykka -Version: 0.15 -Release: 2%{?dist} -Summary: Python library that provides concurrency using actor model -Group: Development/Libraries -License: ASL 2.0 -URL: http://pykka.readthedocs.org/ -Source0: https://github.com/jodal/pykka/tarball/v%{version}/pykka-%{version}.tar.gz -BuildRequires: python2-devel python-gevent python-sphinx -BuildArch: noarch -Requires: python-gevent +Name: pykka +Version: 0.15 +Release: 3%{?dist} +Summary: Python library that provides concurrency using actor model +Group: Development/Libraries +License: ASL 2.0 +URL: http://pykka.readthedocs.org/ +Source0: https://github.com/jodal/pykka/tarball/v%{version}/pykka-%{version}.tar.gz +BuildRequires: python2-devel python-gevent python-sphinx +BuildArch: noarch +Requires: python-gevent %description The goal of Pykka is to provide easy to use concurrency abstractions for Python @@ -27,6 +27,17 @@ Pykka provides an actor API with two different implementations: 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. +%package docs +Summary: Documentation for %{name} +Group: Documentation +BuildArch: noarch +Requires: devhelp + +%description docs +This package provides the documentation for %{name}, e.g. the API as +devhelp docs, and examples. + + %prep %setup -q -c DIR=`ls -d jodal-pykka-*` @@ -37,20 +48,32 @@ rmdir $DIR %build %{__python} setup.py build cd docs -make man +make man devhelp %install %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 cp -a docs/_build/man/* $RPM_BUILD_ROOT%{_mandir}/man1/ +mkdir -p $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka +cp -rp docs/_build/devhelp $RPM_BUILD_ROOT%{_datarootdir}/devhelp/Pykka + + %files %doc LICENSE README.rst %{python_sitelib}/Pykka* %{python_sitelib}/pykka %{_mandir}/man1/* +%files docs +%doc examples/ +%{_datarootdir}/devhelp/Pykka + + %changelog +* Thu Jan 10 2013 Matěj Cepl - 0.15-3 +- Add documentation and examples. + * Mon Aug 27 2012 Jonathan Dieter - 0.15-2 - Update to latest version - Remove unneeded sections