From 8a7d2e4731784d805523b9d904a16d54f43d62fa Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 12 Oct 2015 14:04:44 +0200 Subject: [PATCH] Resolves: #1270712 - enable syntax highlighting by default --- nano.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nano.spec b/nano.spec index 0b14051..4065a84 100644 --- a/nano.spec +++ b/nano.spec @@ -1,7 +1,7 @@ Summary: A small text editor Name: nano Version: 2.4.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: Applications/Editors URL: http://www.nano-editor.org @@ -54,9 +54,13 @@ make DESTDIR="%{buildroot}" install rm -f %{buildroot}%{_infodir}/dir cp %{SOURCE2} ./nanorc -# disable line wrapping by default and set hunspell as the default spell-checker +# downstream changes to /etc/nanorc +# - disable line wrapping by default +# - set hunspell as the default spell-checker +# - enable syntax highlighting by default (#1270712) sed -e 's/# set nowrap/set nowrap/' \ -e 's/^#.*set speller.*$/set speller "hunspell"/' \ + -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \ doc/nanorc.sample >> ./nanorc mkdir -p %{buildroot}%{_sysconfdir} install -m 644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc @@ -89,6 +93,9 @@ exit 0 %{_datadir}/nano %changelog +* Mon Oct 12 2015 Kamil Dudka - 2.4.2-2 +- enable syntax highlighting by default (#1270712) + * Tue Jul 07 2015 Kamil Dudka - 2.4.2-1 - new upstream release