diff --git a/groff-restore-hyphen-minus.patch b/groff-restore-hyphen-minus.patch new file mode 100644 index 0000000..a390bb0 --- /dev/null +++ b/groff-restore-hyphen-minus.patch @@ -0,0 +1,42 @@ +Index: b/tmac/man.local +=================================================================== +--- a/tmac/man.local ++++ b/tmac/man.local +@@ -2,6 +2,16 @@ + .\" + .\" Put local modifications to groff_man(7)'s behavior here. + .\" ++.\" With groff 1.23.0 some characters are mapped to non-Basic Latin code points ++.\" in output. Restore old behavior in order to keep character search and copy-paste ++.\" working. ++.if '\*[.T]'utf8' \{\ ++. char ' \[aq] ++. char - \- ++. char ^ \[ha] ++. char ` \[ga] ++. char ~ \[ti] ++.\} + .\" Change "0" to "1" to enable OSC 8 links on SGR-capable grotty(1) + .\" output devices. + .if !'\*[.T]'html' \ +Index: b/tmac/mdoc.local +=================================================================== +--- a/tmac/mdoc.local ++++ b/tmac/mdoc.local +@@ -2,6 +2,16 @@ + .\" + .\" Put local modifications to groff_mdoc(7)'s behavior here. + .\" ++.\" With groff 1.23.0 some characters are mapped to non-Basic Latin code points ++.\" in output. Restore old behavior in order to keep character search and copy-paste ++.\" working. ++.if '\*[.T]'utf8' \{\ ++. char ' \[aq] ++. char - \- ++. char ^ \[ha] ++. char ` \[ga] ++. char ~ \[ti] ++.\} + .\" "CW" is not a portable font name, but some man pages use it anyway. + .\" Uncomment this to suppress warnings produced by such pages. This + .\" test remaps the font to roman ("R") on nroff (terminal) devices. You diff --git a/groff.changes b/groff.changes index e80c55e..d6c2f34 100644 --- a/groff.changes +++ b/groff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 13 15:15:09 UTC 2024 - Antonio Teixeira + +- Add groff-restore-hyphen-minus.patch (bsc#1226153) + ------------------------------------------------------------------- Wed Oct 4 23:01:54 UTC 2023 - Luciano Santos diff --git a/groff.spec b/groff.spec index dae8e08..b3538cf 100644 --- a/groff.spec +++ b/groff.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package groff # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -49,6 +49,8 @@ Patch5: 0002-documentation-for-the-locale-keyword.patch # it can be supressed by /etc/papersize if needed Patch6: groff-force-locale-usage.patch Patch7: 0004-don-t-use-usr-bin-env-in-shebang.patch +# PATCH-FIX-OPENSUSE groff-restore-hyphen-minus.patch bsc#1226153 +Patch8: groff-restore-hyphen-minus.patch # Patches from debian Patch100: https://salsa.debian.org/debian/groff/raw/master/debian/patches/bash-scripts.patch Patch101: https://salsa.debian.org/debian/groff/raw/master/debian/patches/nroff-map-CW-to-R.patch @@ -89,7 +91,7 @@ Obsoletes: groff-devx <= 1.21 # alternatives BuildRequires: update-alternatives Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %endif %description diff --git a/nroff-map-CW-to-R.patch b/nroff-map-CW-to-R.patch index 73b689f..4a04c57 100644 --- a/nroff-map-CW-to-R.patch +++ b/nroff-map-CW-to-R.patch @@ -1,4 +1,4 @@ -From 742dfac36f1fd23e17d27dbf83e3793d3f3a063d Mon Sep 17 00:00:00 2001 +From 107cd6d6e837d9b6201e071f9488fa5e32e6aa64 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 14 Jul 2023 12:42:26 +0100 Subject: Map CW to R for nroff