2017-09-01 16:36:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-asyncio
|
|
|
|
#
|
2022-01-29 15:15:24 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-09-01 16:36:32 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 15:06:02 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2017-09-01 16:36:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-09-18 22:01:07 +02:00
|
|
|
%bcond_with test
|
2017-09-01 16:36:32 +02:00
|
|
|
Name: python-sphinxcontrib-asyncio
|
2020-08-22 10:40:15 +02:00
|
|
|
Version: 0.3.0
|
2017-09-01 16:36:32 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx extension to support coroutines in markup
|
2018-12-04 15:06:02 +01:00
|
|
|
License: Apache-2.0
|
2017-09-01 16:36:32 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-08-22 10:40:15 +02:00
|
|
|
URL: https://github.com/aio-libs/sphinxcontrib-asyncio
|
2017-09-01 16:36:32 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
|
2018-12-07 21:52:04 +01:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2017-09-01 16:36:32 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2017-09-19 10:27:33 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-01 16:36:32 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
2017-09-18 22:01:07 +02:00
|
|
|
Requires: python-Sphinx
|
2017-09-01 16:36:32 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Sphinx extension for adding asyncio-specific markups
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sphinxcontrib-asyncio-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
2022-01-29 15:15:24 +01:00
|
|
|
#pushd docs
|
|
|
|
#PYTHONPATH=.. make html
|
|
|
|
#rm _build/html/.buildinfo
|
|
|
|
#popd
|
2017-09-01 16:36:32 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2017-09-18 22:01:07 +02:00
|
|
|
# Remove sphinxcontrib namespace package files provided by python-Sphinx
|
|
|
|
%python_expand rm -f %{buildroot}%{$python_sitelib}/sphinxcontrib/__init__.py*
|
|
|
|
%python_expand rm -f %{buildroot}%{$python_sitelib}/sphinxcontrib/__pycache__/__init__*.py*
|
|
|
|
|
2017-09-01 16:36:32 +02:00
|
|
|
%files %{python_files}
|
2022-01-29 15:15:24 +01:00
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
#docs/_build/html
|
2017-09-18 22:01:07 +02:00
|
|
|
%{python_sitelib}/sphinxcontrib/asyncio.py*
|
|
|
|
%pycache_only %dir %{python_sitelib}/sphinxcontrib/__pycache__/
|
|
|
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/asyncio*.py*
|
|
|
|
%{python_sitelib}/sphinxcontrib_asyncio-%{version}-py*.egg-info
|
2017-09-01 16:36:32 +02:00
|
|
|
|
|
|
|
%changelog
|