diff --git a/nano.spec b/nano.spec index 092716b66dc8bbcdb17c6f41c00bb8f4f2cbfbc4..198796b1c9772fb3b85143d93a341c9c89fd7585 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