!13 Fix bug when build using rpmbuild
From: @misaka00251 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
64d86c1344
@ -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 <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
|
||||
- Upgrade package to 7.2 version
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user