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