Accepting request 867995 from Cloud:OpenStack:Factory
OBS-URL: https://build.opensuse.org/request/show/867995 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=13
This commit is contained in:
parent
1a600290ef
commit
bbd64c7695
11
allow_old_sphinx.patch
Normal file
11
allow_old_sphinx.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/docs/source/conf.py
|
||||
+++ b/docs/source/conf.py
|
||||
@@ -19,7 +19,7 @@ import sys, os
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
-needs_sphinx = '2.0'
|
||||
+# needs_sphinx = '2.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 28 21:19:07 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add allow_old_sphinx.patch allowing building of documentation
|
||||
on Leap 15 (bsc#1181270).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 9 14:03:46 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ncclient
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -25,6 +25,9 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://ncclient.org
|
||||
Source: https://github.com/ncclient/ncclient/archive/v%{version}.tar.gz#/ncclient-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE allow_old_sphinx.patch mcepl@suse.com
|
||||
# Allow build with old Sphinx (< 2.0) on Leap
|
||||
Patch0: allow_old_sphinx.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -62,6 +65,10 @@ This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n ncclient-%{version}
|
||||
%if 0%{?suse_version} < 1550
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
find examples/ -name "*.py" -exec sed -i 's|#!/usr/bin/env python$|#!/usr/bin/python|g' {} \;
|
||||
# drop shebang
|
||||
find ncclient/operations/third_party/ -name "*.py" -exec sed -i '/^#!\//, 1d' {} \;
|
||||
|
Loading…
x
Reference in New Issue
Block a user