diff --git a/nano.changes b/nano.changes index e0d0197..1a9e371 100644 --- a/nano.changes +++ b/nano.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 25 09:03:56 UTC 2022 - Maurizio Galli + +- Added obs-channel-and-patchinfo-syntax.patch to support syntax + highlighting for _channel and _patchinfo files used by OBS + ------------------------------------------------------------------- Fri Apr 29 07:09:44 UTC 2022 - Martin Pluskal diff --git a/nano.spec b/nano.spec index 9633682..8739436 100644 --- a/nano.spec +++ b/nano.spec @@ -28,6 +28,8 @@ Source0: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar Source1: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz.asc Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring Source3: nanorc +# PATCH-FIX-OPENSUSE obs-channel-and-patchinfo-syntax.patch maurizio.galli@suse.com -- enable syntax for _channel and _patchinfo files used by OBS +Patch0: obs-channel-and-patchinfo-syntax.patch BuildRequires: file-devel BuildRequires: groff-full BuildRequires: makeinfo @@ -42,7 +44,7 @@ the Pico text editor while also offering a few enhancements. %lang_package %prep -%setup -q +%autosetup -p1 %build %configure \ diff --git a/obs-channel-and-patchinfo-syntax.patch b/obs-channel-and-patchinfo-syntax.patch new file mode 100644 index 0000000..e9e37af --- /dev/null +++ b/obs-channel-and-patchinfo-syntax.patch @@ -0,0 +1,11 @@ +diff -rub a/syntax/xml.nanorc b/syntax/xml.nanorc +--- a/syntax/xml.nanorc 2022-04-08 17:13:15.000000000 +0800 ++++ b/syntax/xml.nanorc 2022-07-25 16:59:05.041959714 +0800 +@@ -1,6 +1,6 @@ + ## Syntax highlighting for XML files. + +-syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$" ++syntax xml "(\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$|_patchinfo|_channel)" + header "<\?xml.*version=.*\?>" + magic "(XML|SGML) (sub)?document" + comment ""