diff --git a/nano.spec b/nano.spec index 271506f909f097e6a85664f9f07d094e981db721..fece050d33ae01651923278e4178ddc0fdf3ee4d 100644 --- a/nano.spec +++ b/nano.spec @@ -1,6 +1,6 @@ Name: nano Version: 7.2 -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 +* Mon May 15 2023 misaka00251 - 7.2-2 +- Fix bug when build using rpmbuild + * Wed Apr 19 2023 xu_ping <707078654@qq.com> - 7.2-1 - Upgrade package to 7.2 version