From 37eb51f356e205f7ffdd2d261344c885e0d7777e Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 20 Mar 2019 16:58:40 +0000 Subject: [PATCH] Patch esc.style to avoid using the black color (#1688372) --- source-highlight-3.1.8-no-black.patch | 12 ++++++++++++ source-highlight.spec | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 source-highlight-3.1.8-no-black.patch diff --git a/source-highlight-3.1.8-no-black.patch b/source-highlight-3.1.8-no-black.patch new file mode 100644 index 0000000..b673c2f --- /dev/null +++ b/source-highlight-3.1.8-no-black.patch @@ -0,0 +1,12 @@ +diff -up source-highlight-3.1.8/src/esc.style.no-black source-highlight-3.1.8/src/esc.style +--- source-highlight-3.1.8/src/esc.style.no-black 2019-03-20 16:52:33.053965325 +0000 ++++ source-highlight-3.1.8/src/esc.style 2019-03-20 16:52:42.502965289 +0000 +@@ -7,7 +7,7 @@ comment cyan i ; + number purple ; + preproc darkblue b ; + symbol darkred ; +-function black b; ++function b; + cbracket red; + variable darkgreen ; + diff --git a/source-highlight.spec b/source-highlight.spec index 9681743..37dbe4c 100644 --- a/source-highlight.spec +++ b/source-highlight.spec @@ -1,10 +1,12 @@ Summary: Produces a document with syntax highlighting Name: source-highlight Version: 3.1.8 -Release: 23%{?dist} +Release: 24%{?dist} License: GPLv3+ Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig +# Fix for https://savannah.gnu.org/bugs/index.php?55967 +Patch: source-highlight-3.1.8-no-black.patch URL: http://www.gnu.org/software/src-highlite/ BuildRequires: bison, flex, boost-devel BuildRequires: help2man, ctags, chrpath, pkgconfig(bash-completion) @@ -29,7 +31,7 @@ Requires: boost-devel Development files for source-highlight %prep -%setup -q +%autosetup -p1 %build %configure --disable-static \ @@ -79,6 +81,9 @@ rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d %{_includedir}/srchilite/*.h %changelog +* Wed Mar 20 2019 fedora-toolbox - 3.1.8-24 +- Patch esc.style to avoid using the black color (#1688372) + * Mon Feb 18 2019 Adrian Reber - 3.1.8-23 - Require boost-devel in the source-highlight-devel package (#1638029)