[packages/python3-libsass] - added sphinx extlinks fix from git

qboosh qboosh at pld-linux.org
Tue Mar 4 21:26:45 CET 2025


commit 59ac95214bb7c6fdaee310f9b5957916516d1e5c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 4 21:20:11 2025 +0100

    - added sphinx extlinks fix from git

 libsass-python-sphinx-extlinks.patch | 29 +++++++++++++++++++++++++++++
 python3-libsass.spec                 |  2 ++
 2 files changed, 31 insertions(+)
---
diff --git a/python3-libsass.spec b/python3-libsass.spec
index 16a6253..651b3c0 100644
--- a/python3-libsass.spec
+++ b/python3-libsass.spec
@@ -13,6 +13,7 @@ Group:		Libraries
 #Source0Download: https://github.com/sass/libsass-python/releases
 Source0:	https://github.com/sass/libsass-python/archive/%{version}/libsass-python-%{version}.tar.gz
 # Source0-md5:	3d628c3b4c1aff475db694b48de1f322
+Patch0:		libsass-python-sphinx-extlinks.patch
 URL:		https://sass-lang.com/libsass-python
 BuildRequires:	libstdc++-devel >= 6:4.7
 BuildRequires:	python3 >= 1:3.8
@@ -49,6 +50,7 @@ Dokumentacja API modułu Pythona sass.
 
 %prep
 %setup -q -n libsass-python-%{version}
+%patch -P0 -p1
 
 %build
 export SYSTEM_SASS=1
diff --git a/libsass-python-sphinx-extlinks.patch b/libsass-python-sphinx-extlinks.patch
new file mode 100644
index 0000000..7ccf577
--- /dev/null
+++ b/libsass-python-sphinx-extlinks.patch
@@ -0,0 +1,29 @@
+From f0dc392782754e0f5632190c2e9940cc282eef53 Mon Sep 17 00:00:00 2001
+From: Anthony Sottile <asottile at umich.edu>
+Date: Sat, 6 Jan 2024 14:09:04 -0500
+Subject: [PATCH] fix sphinx extlinks format
+
+---
+ docs/conf.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index ca7e3906..46964c23 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -267,11 +267,11 @@
+ 
+ 
+ extlinks = {
+-    'issue': ('https://github.com/sass/libsass-python/issues/%s', '#'),
++    'issue': ('https://github.com/sass/libsass-python/issues/%s', '#%s'),
+     'branch': (
+         'https://github.com/sass/libsass-python/compare/main...%s',
+-        '',
++        '%s',
+     ),
+-    'commit': ('https://github.com/sass/libsass-python/commit/%s', ''),
+-    'upcommit': ('https://github.com/sass/libsass/commit/%s', ''),
++    'commit': ('https://github.com/sass/libsass-python/commit/%s', '%s'),
++    'upcommit': ('https://github.com/sass/libsass/commit/%s', '%s'),
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-libsass.git/commitdiff/59ac95214bb7c6fdaee310f9b5957916516d1e5c



More information about the pld-cvs-commit mailing list