Blame SPECS/nano.spec

6ab22e
Summary:         A small text editor
6ab22e
Name:            nano
6ab22e
Version:         2.3.1
6ab22e
Release:         10%{?dist}
6ab22e
License:         GPLv3+
6ab22e
Group:           Applications/Editors
6ab22e
URL:             http://www.nano-editor.org
6ab22e
Source:          http://www.nano-editor.org/dist/v2.3/%{name}-%{version}.tar.gz
6ab22e
Source2:         nanorc
6ab22e
Patch0:          nano-2.3.0-warnings.patch
6ab22e
6ab22e
# http://lists.gnu.org/archive/html/nano-devel/2010-08/msg00004.html
6ab22e
Patch1:          0001-check-stat-s-result-and-avoid-calling-stat-on-a-NULL.patch
6ab22e
6ab22e
# http://lists.gnu.org/archive/html/nano-devel/2010-08/msg00005.html
6ab22e
Patch2:          0002-use-futimens-if-available-instead-of-utime.patch
6ab22e
6ab22e
# http://thread.gmane.org/gmane.editors.nano.devel/3081
6ab22e
Patch3:          0003-Document-the-poslog-P-option-in-nano.1-man-page.patch
6ab22e
6ab22e
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6ab22e
BuildRequires:   automake
6ab22e
BuildRequires:   gettext-devel
6ab22e
BuildRequires:   groff
6ab22e
BuildRequires:   ncurses-devel
6ab22e
BuildRequires:   sed
6ab22e
Conflicts:       filesystem < 3
6ab22e
Requires(post):  /sbin/install-info
6ab22e
Requires(preun): /sbin/install-info
6ab22e
6ab22e
%description
6ab22e
GNU nano is a small and friendly text editor.
6ab22e
6ab22e
%prep
6ab22e
%setup -q
6ab22e
%patch0 -p1
6ab22e
%patch1 -p1
6ab22e
%patch2 -p1
6ab22e
%patch3 -p1
6ab22e
6ab22e
for f in doc/man/fr/{nano.1,nanorc.5,rnano.1} ; do
6ab22e
  iconv -f iso-8859-1 -t utf-8 -o $f.tmp $f && mv $f.tmp $f
6ab22e
  touch $f.html
6ab22e
done
6ab22e
6ab22e
# needed by 0002-use-futimens-if-available-instead-of-utime.patch and bz #926195
6ab22e
autoreconf -fiv
6ab22e
6ab22e
%build
6ab22e
%configure
6ab22e
make %{?_smp_mflags}
6ab22e
6ab22e
%install
6ab22e
make DESTDIR="%{buildroot}" install
6ab22e
#ln -s nano %{buildroot}%{_bindir}/pico
6ab22e
rm -f %{buildroot}%{_infodir}/dir
6ab22e
cp %{SOURCE2} ./nanorc
6ab22e
6ab22e
# disable line wrapping by default and set hunspell as the default spell-checker
6ab22e
sed -e 's/# set nowrap/set nowrap/' \
6ab22e
    -e 's/^#.*set speller.*$/set speller "hunspell"/' \
6ab22e
    doc/nanorc.sample >> ./nanorc
6ab22e
mkdir -p %{buildroot}%{_sysconfdir}
6ab22e
install -m 644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
6ab22e
6ab22e
%find_lang %{name}
6ab22e
6ab22e
%post
6ab22e
if [ -f %{_infodir}/%{name}.info.gz ]; then
6ab22e
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
6ab22e
fi
6ab22e
exit 0
6ab22e
6ab22e
%preun
6ab22e
if [ $1 -eq 0 ]; then
6ab22e
  if [ -f %{_infodir}/%{name}.info.gz ]; then
6ab22e
    /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
6ab22e
  fi
6ab22e
fi
6ab22e
exit 0
6ab22e
6ab22e
%files -f %{name}.lang
6ab22e
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO
6ab22e
%doc doc/nanorc.sample
6ab22e
%doc doc/faq.html
6ab22e
%{_bindir}/*
6ab22e
%config(noreplace) %{_sysconfdir}/nanorc
6ab22e
%{_mandir}/man*/*
6ab22e
%lang(fr) %{_mandir}/fr/man*/*
6ab22e
%{_infodir}/nano.info*
6ab22e
%{_datadir}/nano
6ab22e
6ab22e
%changelog
6ab22e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.3.1-10
6ab22e
- Mass rebuild 2014-01-24
6ab22e
6ab22e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3.1-9
6ab22e
- Mass rebuild 2013-12-27
6ab22e
6ab22e
* Fri Aug 09 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.1-8
6ab22e
- document the --poslog (-P) option in nano.1 man page
6ab22e
6ab22e
* Thu Apr 04 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.1-7
6ab22e
- run autoreconf in %%prep to support aarch64 with autoconf 2.69+ (#926195)
6ab22e
6ab22e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-6
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6ab22e
6ab22e
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 2.3.1-5
6ab22e
- fix specfile issues reported by the fedora-review script
6ab22e
6ab22e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6ab22e
6ab22e
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.3.1-3
6ab22e
- install everything in /usr
6ab22e
  https://fedoraproject.org/wiki/Features/UsrMove
6ab22e
6ab22e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6ab22e
6ab22e
* Wed May 11 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.1-1
6ab22e
- new upstream release
6ab22e
6ab22e
* Thu Mar 03 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.0-1
6ab22e
- new upstream release (#680736)
6ab22e
- use hunspell as default spell-checker (#681000)
6ab22e
- fix for http://thread.gmane.org/gmane.editors.nano.devel/2911
6ab22e
6ab22e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-3
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6ab22e
6ab22e
* Sun Nov 28 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-2
6ab22e
- fix bugs introduced by patches added in 2.2.6-1 (#657875)
6ab22e
6ab22e
* Mon Nov 22 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-1
6ab22e
- new upstream release (#655978)
6ab22e
- increase code robustness (patches related to CVE-2010-1160, CVE-2010-1161)
6ab22e
6ab22e
* Sat Aug 07 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.5-1
6ab22e
- new upstream release (#621857)
6ab22e
6ab22e
* Thu Apr 15 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.4-1
6ab22e
- new upstream release
6ab22e
- CVE-2010-1160, CVE-2010-1161 (#582739)
6ab22e
6ab22e
* Wed Mar 03 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.3-1
6ab22e
- new upstream release
6ab22e
6ab22e
* Fri Jan 29 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.2-1
6ab22e
- new upstream release
6ab22e
6ab22e
* Sun Dec 27 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.1-1
6ab22e
- new upstream release
6ab22e
6ab22e
* Tue Dec 01 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.0-1
6ab22e
- new upstream release
6ab22e
6ab22e
* Wed Nov 25 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-7
6ab22e
- sanitize specfile according to Fedora Packaging Guidelines 
6ab22e
6ab22e
* Thu Oct 15 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-6
6ab22e
- use nanorc.sample as base of /etc/nanorc
6ab22e
6ab22e
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-5
6ab22e
- fix build failure of the last build
6ab22e
6ab22e
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-4
6ab22e
- ship a system-wide configuration file along with the nano package
6ab22e
- disable line wrapping by default (#528359)
6ab22e
6ab22e
* Mon Sep 21 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-3
6ab22e
- suppress warnings for __attribute__((warn_unused_result)) (#523951)
6ab22e
6ab22e
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-2
6ab22e
- install binaries to /bin (#168340)
6ab22e
6ab22e
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-1
6ab22e
- new upstream release
6ab22e
- dropped patch no longer needed (possible change in behavior though negligible)
6ab22e
- fixed broken HTML doc in FR locales (#523951)
6ab22e
6ab22e
* Thu Sep 17 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.6-8
6ab22e
- do process install-info only without --excludedocs(#515943)
6ab22e
6ab22e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-7
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6ab22e
6ab22e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-6
6ab22e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6ab22e
6ab22e
* Fri Apr  4 2008 Ville Skyttä <ville.skytta at iki.fi> - 2.0.6-5
6ab22e
- Mark localized man pages with %%lang, fix French nanorc(5) (#322271).
6ab22e
6ab22e
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6-4
6ab22e
- Autorebuild for GCC 4.3
6ab22e
6ab22e
* Fri Dec 07 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.0.6-3
6ab22e
- Pass rnano.1 through iconv to silence the final rpmlint complaint
6ab22e
  and finish up the merge review.
6ab22e
6ab22e
* Wed Aug 22 2007 David Woodhouse <dwmw2@infradead.org> - 2.0.6-2
6ab22e
- Update licence
6ab22e
- Fix open(O_CREAT) calls without mode
6ab22e
6ab22e
* Sun Jun 03 2007 Florian La Roche <laroche@redhat.com> - 2.0.6-1
6ab22e
- update to 2.0.6
6ab22e
6ab22e
* Mon Feb 05 2007 Florian La Roche <laroche@redhat.com> - 2.0.3-1
6ab22e
- update to 2.0.3
6ab22e
- update spec file syntax, fix scripts rh#220527
6ab22e
6ab22e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.12-1.1
6ab22e
- rebuild
6ab22e
6ab22e
* Mon Jul 10 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.12-1
6ab22e
- Update to 1.3.12
6ab22e
6ab22e
* Tue May 16 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.11-1
6ab22e
- Update to 1.3.11
6ab22e
- BuildRequires: groff (#191946)
6ab22e
6ab22e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2.1
6ab22e
- bump again for double-long bug on ppc(64)
6ab22e
6ab22e
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2
6ab22e
- rebuilt for new gcc4.1 snapshot and glibc changes
6ab22e
6ab22e
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6ab22e
- rebuilt
6ab22e
6ab22e
* Mon Sep 5 2005 David Woodhouse <dwmw2@redhat.com> 1.3.8-1
6ab22e
- 1.3.8
6ab22e
6ab22e
* Wed Mar 2 2005 David Woodhouse <dwmw2@redhat.com> 1.3.5-0.20050302
6ab22e
- Update to post-1.3.5 CVS tree to get UTF-8 support.
6ab22e
6ab22e
* Wed Aug 04 2004 David Woodhouse <dwmw2@redhat.com> 1.2.4-1
6ab22e
- 1.2.4
6ab22e
6ab22e
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
6ab22e
- rebuilt
6ab22e
6ab22e
* Fri Apr 02 2004 Florian La Roche <Florian.LaRoche@redhat.de>
6ab22e
- 1.2.3
6ab22e
6ab22e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
6ab22e
- rebuilt
6ab22e
6ab22e
* Mon Aug 11 2003 Bill Nottingham <notting@redhat.com> 1.2.1-4
6ab22e
- build in different environment
6ab22e
6ab22e
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
6ab22e
- rebuilt
6ab22e
6ab22e
* Tue May  6 2003 Bill Nottingham <notting@redhat.com> 1.2.1-2
6ab22e
- description tweaks
6ab22e
6ab22e
* Mon May  5 2003 Bill Nottingham <notting@redhat.com> 1.2.1-1
6ab22e
- initial build, tweak upstream spec file