diff options
-rw-r--r-- | cgit.spec | 11 | ||||
-rw-r--r-- | no-anchorlink.patch | 26 |
2 files changed, 36 insertions, 1 deletions
@@ -22,6 +22,8 @@ %global use_perl_interpreter 0 %endif +%{?!gpgverify:%define gpgverify() /bin/true %{**}} + # The highlight package is only available in EL7+ on ppc64le and x86_64 %if 0%{?rhel} >= 7 && ! ( "%{_arch}" == "ppc64le" || "%{_arch}" == "x86_64" ) %bcond_with highlight @@ -31,7 +33,7 @@ Name: cgit Version: 1.2.3 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A fast web interface for git License: GPLv2 @@ -87,6 +89,10 @@ Patch2: cgit-1.2.3-update-to-git-2.34.1.patch # # Make default pages configurable # Patch3: default-pages.patch +# PATCH-FIX-CENTOS no-anchorlink.patch mcepl@suse.com +# Make scripts compatible with ancient python-Markdown +Patch4: no-anchorlink.patch + # Note the bundled git, per the packaging guidelines # https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling Provides: bundled(git) = %gitver @@ -234,6 +240,9 @@ install -Dp -m0644 httpd.conf %{buildroot}%{httpdconfd}/%{name}.conf %changelog +* Sat Feb 04 2024 Matej Cepl <mcepl@suse.com> - 1.2.3-12 +- Add compatibility patch. + * Thu Feb 01 2024 Matej Cepl <mcepl@suse.com> - 1.2.3-11 - Comment out the default-pages.patch for now diff --git a/no-anchorlink.patch b/no-anchorlink.patch new file mode 100644 index 0000000..2db349c --- /dev/null +++ b/no-anchorlink.patch @@ -0,0 +1,26 @@ +From f8358b7a2e3c47410150593e85af342091fe5189 Mon Sep 17 00:00:00 2001 +From: rpm-build <rpm-build> +Date: Sat, 3 Feb 2024 15:11:39 +0100 +Subject: [PATCH] Current version of Markdown Python package changed API. + +Signed-off-by: rpm-build <rpm-build> +--- + filters/html-converters/md2html | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html +index dc20f42..f61f919 100755 +--- a/filters/html-converters/md2html ++++ b/filters/html-converters/md2html +@@ -301,7 +301,7 @@ markdown.markdownFromFile( + "markdown.extensions.fenced_code", + "markdown.extensions.codehilite", + "markdown.extensions.tables", +- TocExtension(anchorlink=True)], ++ TocExtension()], + extension_configs={ + "markdown.extensions.codehilite":{"css_class":"highlight"}}) + sys.stdout.write("</div>") +-- +2.43.0 + |