481dc20
Summary:         A small text editor
481dc20
Name:            nano
b16a9fd
Version:         2.2.4
8e49530
Release:         1%{?dist}
ef52da0
License:         GPLv3+
481dc20
Group:           Applications/Editors
481dc20
URL:             http://www.nano-editor.org
8e49530
Source:          http://www.nano-editor.org/dist/v2.2/%{name}-%{version}.tar.gz
481dc20
Source2:         nanorc
b16a9fd
Patch0:          nano-2.2.3-warnings.patch
481dc20
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
61f7bd6
BuildRequires:   autoconf
61f7bd6
BuildRequires:   gettext-devel
61f7bd6
BuildRequires:   groff
61f7bd6
BuildRequires:   ncurses-devel
61f7bd6
BuildRequires:   sed
481dc20
Requires(post):  /sbin/install-info
Florian La Roche da8a696
Requires(preun): /sbin/install-info
cvsdist 9d1eb56
cvsdist 9d1eb56
%description
cvsdist 9d1eb56
GNU nano is a small and friendly text editor.
cvsdist 9d1eb56
cvsdist 9d1eb56
%prep
cvsdist 9d1eb56
%setup -q
b16a9fd
%patch0 -p1
db0440a
614585b
for f in doc/man/fr/{nano.1,nanorc.5,rnano.1} ; do
614585b
  iconv -f iso-8859-1 -t utf-8 -o $f.tmp $f && mv $f.tmp $f
c69a40b
  touch $f.html
614585b
done
cvsdist 9d1eb56
cvsdist 9d1eb56
%build
8e49530
%configure --bindir=/bin
ef52da0
make %{?_smp_mflags}
cvsdist 9d1eb56
cvsdist 9d1eb56
%install
cvsdist 9d1eb56
rm -rf %{buildroot}
3afa100
make DESTDIR="%{buildroot}" install bindir=/bin
cvsdist 9d1eb56
#ln -s nano %{buildroot}%{_bindir}/pico
cvsdist 9d1eb56
rm -f %{buildroot}%{_infodir}/dir
3afa100
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
3afa100
ln -s ../../bin/nano ${RPM_BUILD_ROOT}%{_bindir}/nano
3afa100
ln -s ../../bin/rnano ${RPM_BUILD_ROOT}%{_bindir}/rnano
61f7bd6
cp %{SOURCE2} ./nanorc
61f7bd6
61f7bd6
# disable line wrapping by default
61f7bd6
sed 's/# set nowrap/set nowrap/' doc/nanorc.sample >> ./nanorc
afa065e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
61f7bd6
install -m 644 ./nanorc $RPM_BUILD_ROOT%{_sysconfdir}/nanorc
cvsdist 9d1eb56
cvsdist 9d1eb56
%find_lang %{name}
cvsdist 9d1eb56
cvsdist 9d1eb56
%post
efd98be
if [ -f %{_infodir}/%{name}.info.gz ]; then
efd98be
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
efd98be
fi
Florian La Roche da8a696
exit 0
efd98be
Florian La Roche da8a696
%preun
Florian La Roche da8a696
if [ $1 -eq 0 ]; then
efd98be
  if [ -f %{_infodir}/%{name}.info.gz ]; then
efd98be
    /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
efd98be
  fi
Florian La Roche da8a696
fi
Florian La Roche da8a696
exit 0
cvsdist 9d1eb56
cvsdist 9d1eb56
%clean
cvsdist 9d1eb56
rm -rf %{buildroot}
cvsdist 9d1eb56
cvsdist 9d1eb56
%files -f %{name}.lang
ef52da0
%defattr(-,root,root,-)
efd98be
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO
f14b293
%doc doc/nanorc.sample
f14b293
%doc doc/faq.html
3afa100
/bin/*
cvsdist 9d1eb56
%{_bindir}/*
481dc20
%config(noreplace) %{_sysconfdir}/nanorc
cvsdist 9d1eb56
%{_mandir}/man*/*
a754351
%lang(fr) %{_mandir}/fr/man*/*
cvsdist 9d1eb56
%{_infodir}/nano.info*
e5566f1
%{_datadir}/nano
cvsdist 9d1eb56
cvsdist 9d1eb56
%changelog
b16a9fd
* Thu Apr 15 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.4-1
b16a9fd
- new upstream release
b16a9fd
- CVE-2010-1160, CVE-2010-1161 (#582739)
b16a9fd
585d51e
* Fri Jan 29 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.2-1
585d51e
- new upstream release
585d51e
2c7dabf
* Sun Dec 27 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.1-1
2c7dabf
- new upstream release
2c7dabf
8e49530
* Tue Dec 01 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.0-1
8e49530
- new upstream release
8e49530
ef52da0
* Wed Nov 25 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-7
ef52da0
- sanitize specfile according to Fedora Packaging Guidelines 
ef52da0
61f7bd6
* Thu Oct 15 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-6
61f7bd6
- use nanorc.sample as base of /etc/nanorc
61f7bd6
afa065e
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-5
afa065e
- fix build failure of the last build
afa065e
481dc20
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-4
481dc20
- ship a system-wide configuration file along with the nano package
481dc20
- disable line wrapping by default (#528359)
481dc20
6e31aec
* Mon Sep 21 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-3
6e31aec
- suppress warnings for __attribute__((warn_unused_result)) (#523951)
6e31aec
3afa100
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-2
3afa100
- install binaries to /bin (#168340)
3afa100
c69a40b
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-1
c69a40b
- new upstream release
c69a40b
- dropped patch no longer needed (possible change in behavior though negligible)
c69a40b
- fixed broken HTML doc in FR locales (#523951)
c69a40b
efd98be
* Thu Sep 17 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.6-8
efd98be
- do process install-info only without --excludedocs(#515943)
efd98be
b9f279e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-7
b9f279e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b9f279e
367cd9e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-6
367cd9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
367cd9e
a754351
* Fri Apr  4 2008 Ville Skyttä <ville.skytta at iki.fi> - 2.0.6-5
614585b
- Mark localized man pages with %%lang, fix French nanorc(5) (#322271).
a754351
d4fbc09
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6-4
d4fbc09
- Autorebuild for GCC 4.3
d4fbc09
06255d5
* Fri Dec 07 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.0.6-3
06255d5
- Pass rnano.1 through iconv to silence the final rpmlint complaint
06255d5
  and finish up the merge review.
06255d5
69531d2
* Wed Aug 22 2007 David Woodhouse <dwmw2@infradead.org> - 2.0.6-2
69531d2
- Update licence
23d5593
- Fix open(O_CREAT) calls without mode
69531d2
Florian La Roche 8ece566
* Sun Jun 03 2007 Florian La Roche <laroche@redhat.com> - 2.0.6-1
Florian La Roche 8ece566
- update to 2.0.6
Florian La Roche 8ece566
Florian La Roche da8a696
* Mon Feb 05 2007 Florian La Roche <laroche@redhat.com> - 2.0.3-1
Florian La Roche da8a696
- update to 2.0.3
Florian La Roche da8a696
- update spec file syntax, fix scripts rh#220527
Florian La Roche da8a696
8769c71
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.12-1.1
8769c71
- rebuild
8769c71
3c226fe
* Mon Jul 10 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.12-1
3c226fe
- Update to 1.3.12
3c226fe
95c03b0
* Tue May 16 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.11-1
95c03b0
- Update to 1.3.11
95c03b0
- BuildRequires: groff (#191946)
95c03b0
5a8f35b
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2.1
5a8f35b
- bump again for double-long bug on ppc(64)
5a8f35b
77bca57
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2
77bca57
- rebuilt for new gcc4.1 snapshot and glibc changes
77bca57
fa8629f
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fa8629f
- rebuilt
fa8629f
6f8904e
* Mon Sep 5 2005 David Woodhouse <dwmw2@redhat.com> 1.3.8-1
55585f6
- 1.3.8
6f8904e
f14b293
* Wed Mar 2 2005 David Woodhouse <dwmw2@redhat.com> 1.3.5-0.20050302
f14b293
- Update to post-1.3.5 CVS tree to get UTF-8 support.
f14b293
cvsdist 54d2ed7
* Wed Aug 04 2004 David Woodhouse <dwmw2@redhat.com> 1.2.4-1
cvsdist 54d2ed7
- 1.2.4
cvsdist 54d2ed7
cvsdist 307785a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 307785a
- rebuilt
cvsdist 307785a
cvsdist 79d7925
* Fri Apr 02 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 79d7925
- 1.2.3
cvsdist 79d7925
cvsdist 03695d1
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 03695d1
- rebuilt
cvsdist 03695d1
cvsdist 03695d1
* Mon Aug 11 2003 Bill Nottingham <notting@redhat.com> 1.2.1-4
cvsdist 03695d1
- build in different environment
cvsdist 03695d1
cvsdist 9d1eb56
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9d1eb56
- rebuilt
cvsdist 9d1eb56
cvsdist 9d1eb56
* Tue May  6 2003 Bill Nottingham <notting@redhat.com> 1.2.1-2
cvsdist 9d1eb56
- description tweaks
cvsdist 9d1eb56
cvsdist 9d1eb56
* Mon May  5 2003 Bill Nottingham <notting@redhat.com> 1.2.1-1
cvsdist 9d1eb56
- initial build, tweak upstream spec file