Files
python-sphinxcontrib-httpdo…/python-sphinxcontrib-httpdomain.spec
Tomáš Chvátal 0050138d97 Accepting request 697213 from home:mcalabkova:branches:devel:languages:python
- update to version 1.7.0
  * Implemented :autoquickref: option that use available 
    informations to build a quickref.
  * Remove references to the sphinx.util.compat module which was 
    deprecated in Sphinx 1.6 and removed in 1.7.
  * Made :mod:`sphinxcontrib.autohttp.tornado` compatible with 
    Tornado 4.5 and newer.
  * Minimum compatible version of Sphinx became changed to 1.5.
  * Use HTTPS for :rfc: generated links.
- Dropped obsolete patch newer-sphinx.patch
- Take upstream release tarball because of tests

OBS-URL: https://build.opensuse.org/request/show/697213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-httpdomain?expand=0&rev=25
2019-04-24 08:45:21 +00:00

81 lines
2.5 KiB
RPMSpec

#
# spec file for package python-sphinxcontrib-httpdomain
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-sphinxcontrib-httpdomain
Version: 1.7.0
Release: 0
Summary: Sphinx domain for HTTP APIs
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://bitbucket.org/birkenfeld/sphinx-contrib
Source: https://github.com/sphinx-contrib/httpdomain/archive/%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.5
Requires: python-six
Requires: python-tornado >= 4.5
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Flask >= 0.11}
BuildRequires: %{python_module Sphinx >= 1.5}
BuildRequires: %{python_module bottle >= 0.11.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
BuildRequires: %{python_module tornado >= 4.5}
%endif
%python_subpackages
%description
This contrib extension, sphinxcontrib.httpdomain provides a Sphinx
domain for describing RESTful HTTP APIs.
You can find the documentation from the following URL:
http://packages.python.org/sphinxcontrib-httpdomain/
%prep
%setup -q -n httpdomain-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
PYTHONPATH=.
%python_exec -m pytest test
%endif
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/sphinxcontrib/autohttp/
%{python_sitelib}/sphinxcontrib/httpdomain.py*
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__
%{python_sitelib}/sphinxcontrib_httpdomain-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_httpdomain-%{version}-py*.egg-info
%changelog