From ab2b4093ca255f2912da4e34808fb1c58421de19 Mon Sep 17 00:00:00 2001 From: David Date: Jun 05 2021 08:11:42 +0000 Subject: Patch for sphinx 4 --- diff --git a/e340c8574694ab16fbe290c6fb714c1f6c2f5664.patch b/e340c8574694ab16fbe290c6fb714c1f6c2f5664.patch new file mode 100644 index 0000000..0b3a30f --- /dev/null +++ b/e340c8574694ab16fbe290c6fb714c1f6c2f5664.patch @@ -0,0 +1,27 @@ +From e340c8574694ab16fbe290c6fb714c1f6c2f5664 Mon Sep 17 00:00:00 2001 +From: John Marshall +Date: Wed, 2 Jun 2021 22:40:00 +0100 +Subject: [PATCH] Avoid Python 2 ur'string' syntax + +Continue to use u'unicode' strings as elsewhere in conf.py, but these +literals use no backslash escapes anyway so there's no need for r'raw'. +Fixes #1019. +--- + doc/conf.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/doc/conf.py b/doc/conf.py +index 375aa559..53efe293 100644 +--- a/doc/conf.py ++++ b/doc/conf.py +@@ -201,8 +201,8 @@ + # Grouping the document tree into LaTeX files. List of tuples + # (source start file, target name, title, author, documentclass [howto/manual]). + latex_documents = [ +- ('index', 'pysam.tex', ur'pysam documentation', +- ur'Andreas Heger, Kevin Jacobs et al.', 'manual'), ++ ('index', 'pysam.tex', u'pysam documentation', ++ u'Andreas Heger, Kevin Jacobs, et al.', 'manual'), + ] + + # The name of an image file (relative to this directory) to place at the top of diff --git a/python-pysam.spec b/python-pysam.spec index 641959c..7521185 100644 --- a/python-pysam.spec +++ b/python-pysam.spec @@ -3,13 +3,15 @@ Name: python-%{pypi_name} Version: 0.16.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: pysam License: MIT URL: https://github.com/pysam-developers/pysam Source0: %{pypi_source} - + +Patch0: https://github.com/pysam-developers/pysam/commit/e340c8574694ab16fbe290c6fb714c1f6c2f5664.patch + BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) @@ -54,7 +56,7 @@ BuildArch: noarch Documentation for pysam %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p 1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info @@ -89,6 +91,9 @@ rm -rf html/.{doctrees,buildinfo} %doc html %changelog +* Sat Jun 05 2021 David - 0.16.0.1-4 +- Add patch to fix building with sphinx 4 + * Fri Jun 04 2021 Python Maint - 0.16.0.1-3 - Rebuilt for Python 3.10