Fix bug when build using rpmbuild

This commit is contained in:
misaka00251 2023-05-15 18:49:07 +08:00
parent 4f93695ef7
commit cc65974deb
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26

View File

@ -1,6 +1,6 @@
Name: nano Name: nano
Version: 7.2 Version: 7.2
Release: 1 Release: 2
Summary: Nano is a tiny GNU editor Summary: Nano is a tiny GNU editor
License: GPLv3+ License: GPLv3+
URL: https://www.nano-editor.org URL: https://www.nano-editor.org
@ -28,6 +28,7 @@ cd build
sed -e 's/# set nowrap/set nowrap/' \ sed -e 's/# set nowrap/set nowrap/' \
-e 's/^#.*set speller.*$/set speller "hunspell"/' \ -e 's/^#.*set speller.*$/set speller "hunspell"/' \
-e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \ -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \
doc/sample.nanorc >> ./nanorc
%install %install
cd build cd build
@ -36,6 +37,7 @@ rm -rf %{buildroot}%{_infodir}/dir
rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html
install -d %{buildroot}%{_sysconfdir} install -d %{buildroot}%{_sysconfdir}
install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
%find_lang %{name} %find_lang %{name}
@ -45,6 +47,7 @@ install -d %{buildroot}%{_sysconfdir}
%license COPYING %license COPYING
%{_bindir}/* %{_bindir}/*
%config(noreplace) %{_sysconfdir}/nanorc
%{_datadir}/nano %{_datadir}/nano
%{_infodir}/nano.info* %{_infodir}/nano.info*
@ -57,6 +60,9 @@ install -d %{buildroot}%{_sysconfdir}
%{_defaultdocdir}/nano/faq.html %{_defaultdocdir}/nano/faq.html
%changelog %changelog
* Mon May 15 2023 misaka00251 <liuxin@iscas.ac.cn> - 7.2-2
- Fix bug when build using rpmbuild
* Wed Apr 19 2023 xu_ping <707078654@qq.com> - 7.2-1 * Wed Apr 19 2023 xu_ping <707078654@qq.com> - 7.2-1
- Upgrade package to 7.2 version - Upgrade package to 7.2 version