From aaa045551a5edf66e6e73d88a2b3110c53fef393 Mon Sep 17 00:00:00 2001 From: xieyanlong Date: Fri, 18 Aug 2023 08:00:16 +0000 Subject: [PATCH] update nano.spec. Signed-off-by: xieyanlong --- nano.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nano.spec b/nano.spec index 092716b..198796b 100644 --- a/nano.spec +++ b/nano.spec @@ -1,6 +1,6 @@ Name: nano Version: 4.9.3 -Release: 1 +Release: 2 Summary: Nano is a tiny GNU editor License: GPLv3+ URL: https://www.nano-editor.org @@ -28,6 +28,7 @@ cd build sed -e 's/# set nowrap/set nowrap/' \ -e 's/^#.*set speller.*$/set speller "hunspell"/' \ -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \ + doc/sample.nanorc >> ./nanorc %install cd build @@ -36,6 +37,7 @@ rm -rf %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html install -d %{buildroot}%{_sysconfdir} +install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc %find_lang %{name} @@ -45,6 +47,7 @@ install -d %{buildroot}%{_sysconfdir} %license COPYING %{_bindir}/* +%config(noreplace) %{_sysconfdir}/nanorc %{_datadir}/nano %{_infodir}/nano.info* @@ -57,6 +60,9 @@ install -d %{buildroot}%{_sysconfdir} %{_defaultdocdir}/nano/faq.html %changelog +* Fri Aug 18 2023 xieyanlong - 4.9.3-2 +- Fix bug when build using sed and add /etc/nanorc config file + * Thu Sep 10 2020 baizhonggui - 4.9.3-1 - Modify source0 -- Gitee