Accepting request 508260 from home:tbechtold:branches:devel:languages:python

- add newer-sphinx.patch. Needed to make httpdomain working with
  Sphinx >= 1.6 .

- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/508260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-httpdomain?expand=0&rev=15
This commit is contained in:
2017-07-05 09:36:30 +00:00
committed by Git OBS Bridge
parent ebe0620d4e
commit 0a716616fb
3 changed files with 230 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sphinxcontrib-httpdomain
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sphinxcontrib-httpdomain
Version: 1.5.0
Release: 0
@@ -24,16 +25,17 @@ License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://bitbucket.org/birkenfeld/sphinx-contrib
Source: https://pypi.io/packages/source/s/sphinxcontrib-httpdomain/sphinxcontrib-httpdomain-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
# PATCH-FIX-UPSTREAM newer-sphinx.patch -- https://bitbucket.org/birkenfeld/sphinx-contrib/pull-requests/152/fix-182-by-moving-around-initialization/diff
Patch1: newer-sphinx.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-Sphinx
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
This contrib extension, sphinxcontrib.httpdomain provides a Sphinx
@@ -45,14 +47,15 @@ http://packages.python.org/sphinxcontrib-httpdomain/
%prep
%setup -q -n sphinxcontrib-httpdomain-%{version}
%patch1 -p1
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*