[packages/python-service_identity] - disable python2 here, fix intersphinx issue; release 6
qboosh
qboosh at pld-linux.org
Wed Jun 25 21:07:34 CEST 2025
commit 4c8627f1befa5ce0979a7dd8236330ad2d23213b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 25 21:08:56 2025 +0200
- disable python2 here, fix intersphinx issue; release 6
python-service_identity.spec | 6 ++++--
service-identity-intersphinx.patch | 13 +++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/python-service_identity.spec b/python-service_identity.spec
index 572bbc8..484ea1e 100644
--- a/python-service_identity.spec
+++ b/python-service_identity.spec
@@ -3,18 +3,19 @@
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests (not included in release tarball)
%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with python3 # CPython 3.x module (built from python3-service_identify.spec)
Summary: Service identity verification for pyOpenSSL & cryptography
Summary(pl.UTF-8): Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
Name: python-service_identity
Version: 21.1.0
-Release: 5
+Release: 6
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/service_identity/
Source0: https://files.pythonhosted.org/packages/source/s/service-identity/service-identity-%{version}.tar.gz
# Source0-md5: 5e5c195d8fcedc72f9068be2ad9b5a13
+Patch0: service-identity-intersphinx.patch
URL: https://pypi.org/project/service_identity/
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
@@ -92,6 +93,7 @@ Dokumentacja API modułu Pythona service_identity.
%prep
%setup -q -n service-identity-%{version}
+%patch -P0 -p1
%build
%if %{with python2}
diff --git a/service-identity-intersphinx.patch b/service-identity-intersphinx.patch
new file mode 100644
index 0000000..6e3437e
--- /dev/null
+++ b/service-identity-intersphinx.patch
@@ -0,0 +1,13 @@
+--- service-identity-21.1.0/docs/conf.py.orig 2021-05-09 14:20:46.000000000 +0200
++++ service-identity-21.1.0/docs/conf.py 2025-06-25 21:00:45.645074575 +0200
+@@ -300,7 +300,7 @@ texinfo_documents = [
+
+ # Example configuration for intersphinx: refer to the Python standard library.
+ intersphinx_mapping = {
+- "https://docs.python.org/3/": None,
+- "https://pyopenssl.readthedocs.io/en/stable": None,
+- "https://cryptography.io/en/stable/": None,
++ "https://docs.python.org/3/": ("python", None),
++ "https://pyopenssl.readthedocs.io/en/stable": ("pyopenssl", None),
++ "https://cryptography.io/en/stable/": ("cryptography", None),
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-service_identity.git/commitdiff/4c8627f1befa5ce0979a7dd8236330ad2d23213b
More information about the pld-cvs-commit
mailing list