forked from pool/python-sphinxcontrib-asyncio
Accepting request 518695 from home:sebix:branches:devel:languages:python
now with added docs OBS-URL: https://build.opensuse.org/request/show/518695 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-asyncio?expand=0&rev=1
This commit is contained in:
63
python-sphinxcontrib-asyncio.spec
Normal file
63
python-sphinxcontrib-asyncio.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# spec file for package python-sphinxcontrib-asyncio
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-sphinxcontrib-asyncio
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Summary: Sphinx extension to support coroutines in markup
|
||||
Url: https://github.com/aio-libs/sphinxcontrib-asyncio
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python3-Sphinx
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Sphinx extension for adding asyncio-specific markups
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinxcontrib-asyncio-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
pushd docs
|
||||
PYTHONPATH=.. make html
|
||||
rm _build/html/.buildinfo
|
||||
popd
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst docs/_build/html
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user