From 61f7bd616fa3831887ccb14243b8de1259eb30ef Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 15 Oct 2009 17:10:24 +0000 Subject: [PATCH] - use nanorc.sample as base of /etc/nanorc --- nano.spec | 17 ++++++++++++++--- nanorc | 11 +++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/nano.spec b/nano.spec index 65cf024..04f72d3 100644 --- a/nano.spec +++ b/nano.spec @@ -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 - 2.0.9-6 +- use nanorc.sample as base of /etc/nanorc + * Tue Oct 13 2009 Kamil Dudka - 2.0.9-5 - fix build failure of the last build diff --git a/nanorc b/nanorc index fcf65a4..1196518 100644 --- a/nanorc +++ b/nanorc @@ -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