481dc20
Summary:         A small text editor
481dc20
Name:            nano
015956c
Version:         2.3.2
015956c
Release:         1%{?dist}
ef52da0
License:         GPLv3+
481dc20
Group:           Applications/Editors
481dc20
URL:             http://www.nano-editor.org
d4b92ee
Source:          http://www.nano-editor.org/dist/v2.3/%{name}-%{version}.tar.gz
481dc20
Source2:         nanorc
015956c
Patch0:          nano-2.3.2-warnings.patch
a74a07d
a74a07d
# http://lists.gnu.org/archive/html/nano-devel/2010-08/msg00004.html
a74a07d
Patch1:          0001-check-stat-s-result-and-avoid-calling-stat-on-a-NULL.patch
a74a07d
a74a07d
# http://lists.gnu.org/archive/html/nano-devel/2010-08/msg00005.html
a74a07d
Patch2:          0002-use-futimens-if-available-instead-of-utime.patch
a74a07d
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
04f20f6
Conflicts:       filesystem < 3
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
7048abb
%patch0 -p1
a74a07d
%patch1 -p1
a74a07d
%patch2 -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
a74a07d
# do not run autotools, we have already reflected the configure.ac
a74a07d
# changes in configure and config.h.in
a74a07d
touch -c aclocal.m4 config.h.in configure Makefile.in
a74a07d
cvsdist 9d1eb56
%build
04f20f6
%configure
ef52da0
make %{?_smp_mflags}
cvsdist 9d1eb56
cvsdist 9d1eb56
%install
04f20f6
make DESTDIR="%{buildroot}" install
cvsdist 9d1eb56
#ln -s nano %{buildroot}%{_bindir}/pico
cvsdist 9d1eb56
rm -f %{buildroot}%{_infodir}/dir
61f7bd6
cp %{SOURCE2} ./nanorc
61f7bd6
d4b92ee
# disable line wrapping by default and set hunspell as the default spell-checker
d4b92ee
sed -e 's/# set nowrap/set nowrap/' \
d4b92ee
    -e 's/^#.*set speller.*$/set speller "hunspell"/' \
d4b92ee
    doc/nanorc.sample >> ./nanorc
098958d
mkdir -p %{buildroot}%{_sysconfdir}
098958d
install -m 644 ./nanorc %{buildroot}%{_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
%files -f %{name}.lang
efd98be
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO
f14b293
%doc doc/nanorc.sample
f14b293
%doc doc/faq.html
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
015956c
* Tue Mar 26 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.2-1
015956c
- new upstream release
015956c
b249835
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-6
b249835
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b249835
098958d
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 2.3.1-5
098958d
- fix specfile issues reported by the fedora-review script
098958d
d524424
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
d524424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d524424
04f20f6
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.3.1-3
04f20f6
- install everything in /usr
04f20f6
  https://fedoraproject.org/wiki/Features/UsrMove
04f20f6
db4b6dd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
db4b6dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
db4b6dd
71e5b16
* Wed May 11 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.1-1
71e5b16
- new upstream release
71e5b16
d4b92ee
* Thu Mar 03 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.0-1
d4b92ee
- new upstream release (#680736)
d4b92ee
- use hunspell as default spell-checker (#681000)
d4b92ee
- fix for http://thread.gmane.org/gmane.editors.nano.devel/2911
d4b92ee
e524e38
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-3
e524e38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e524e38
b5207be
* Sun Nov 28 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-2
b5207be
- fix bugs introduced by patches added in 2.2.6-1 (#657875)
b5207be
a74a07d
* Mon Nov 22 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-1
a74a07d
- new upstream release (#655978)
a74a07d
- increase code robustness (patches related to CVE-2010-1160, CVE-2010-1161)
a74a07d
9a485db
* Sat Aug 07 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.5-1
9a485db
- new upstream release (#621857)
9a485db
4d86d70
* Thu Apr 15 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.4-1
4d86d70
- new upstream release
4d86d70
- CVE-2010-1160, CVE-2010-1161 (#582739)
4d86d70
7048abb
* Wed Mar 03 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.3-1
7048abb
- new upstream release
7048abb
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