- use nanorc.sample as base of /etc/nanorc

This commit is contained in:
Kamil Dudka 2009-10-15 17:10:24 +00:00
parent afa065e1bb
commit 61f7bd616f
2 changed files with 19 additions and 9 deletions

View File

@ -1,7 +1,7 @@
Summary: A small text editor
Name: nano
Version: 2.0.9
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2+
Group: Applications/Editors
URL: http://www.nano-editor.org
@ -9,7 +9,11 @@ Source: http://www.nano-editor.org/dist/v1.3/%{name}-%{version}.tar.gz
Source2: nanorc
Patch1: nano-2.0.9-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, autoconf, gettext-devel, groff
BuildRequires: autoconf
BuildRequires: gettext-devel
BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: sed
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
@ -36,8 +40,12 @@ rm -f %{buildroot}%{_infodir}/dir
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
ln -s ../../bin/nano ${RPM_BUILD_ROOT}%{_bindir}/nano
ln -s ../../bin/rnano ${RPM_BUILD_ROOT}%{_bindir}/rnano
cp %{SOURCE2} ./nanorc
# disable line wrapping by default
sed 's/# set nowrap/set nowrap/' doc/nanorc.sample >> ./nanorc
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/nanorc
install -m 644 ./nanorc $RPM_BUILD_ROOT%{_sysconfdir}/nanorc
%find_lang %{name}
@ -72,6 +80,9 @@ rm -rf %{buildroot}
%{_datadir}/nano
%changelog
* Thu Oct 15 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-6
- use nanorc.sample as base of /etc/nanorc
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-5
- fix build failure of the last build

11
nanorc
View File

@ -1,7 +1,6 @@
# This is a system-wide configuration file for the nano editor. Each user can
# save his own configuration to ~/.nanorc
#
# See the nanorc(5) man page for details.
## This is a system-wide configuration file for the nano editor.
##
## Each user can save his own configuration to ~/.nanorc
##
## See the nanorc(5) man page for details.
# disable line wrapping by default
set nowrap