- use nanorc.sample as base of /etc/nanorc
This commit is contained in:
parent
afa065e1bb
commit
61f7bd616f
17
nano.spec
17
nano.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A small text editor
|
Summary: A small text editor
|
||||||
Name: nano
|
Name: nano
|
||||||
Version: 2.0.9
|
Version: 2.0.9
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
URL: http://www.nano-editor.org
|
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
|
Source2: nanorc
|
||||||
Patch1: nano-2.0.9-warnings.patch
|
Patch1: nano-2.0.9-warnings.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
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(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
@ -36,8 +40,12 @@ rm -f %{buildroot}%{_infodir}/dir
|
|||||||
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
||||||
ln -s ../../bin/nano ${RPM_BUILD_ROOT}%{_bindir}/nano
|
ln -s ../../bin/nano ${RPM_BUILD_ROOT}%{_bindir}/nano
|
||||||
ln -s ../../bin/rnano ${RPM_BUILD_ROOT}%{_bindir}/rnano
|
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}
|
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}
|
%find_lang %{name}
|
||||||
|
|
||||||
@ -72,6 +80,9 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/nano
|
%{_datadir}/nano
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-5
|
||||||
- fix build failure of the last build
|
- fix build failure of the last build
|
||||||
|
|
||||||
|
11
nanorc
11
nanorc
@ -1,7 +1,6 @@
|
|||||||
# This is a system-wide configuration file for the nano editor. Each user can
|
## This is a system-wide configuration file for the nano editor.
|
||||||
# save his own configuration to ~/.nanorc
|
##
|
||||||
#
|
## Each user can save his own configuration to ~/.nanorc
|
||||||
# See the nanorc(5) man page for details.
|
##
|
||||||
|
## See the nanorc(5) man page for details.
|
||||||
|
|
||||||
# disable line wrapping by default
|
|
||||||
set nowrap
|
|
||||||
|
Loading…
Reference in New Issue
Block a user