5fd768
Summary:         A small text editor
5fd768
Name:            nano
5fd768
Version:         2.9.8
5fd768
Release:         1%{?dist}
5fd768
License:         GPLv3+
5fd768
URL:             https://www.nano-editor.org
5fd768
Source:          https://www.nano-editor.org/dist/v2.9/%{name}-%{version}.tar.gz
5fd768
Source2:         nanorc
5fd768
5fd768
BuildRequires:   file-devel
5fd768
BuildRequires:   gettext-devel
5fd768
BuildRequires:   gcc
5fd768
BuildRequires:   git
5fd768
BuildRequires:   groff
5fd768
BuildRequires:   ncurses-devel
5fd768
BuildRequires:   sed
5fd768
BuildRequires:   texinfo
5fd768
Conflicts:       filesystem < 3
5fd768
Requires(post):  /sbin/install-info
5fd768
Requires(preun): /sbin/install-info
5fd768
5fd768
%description
5fd768
GNU nano is a small and friendly text editor.
5fd768
5fd768
%prep
5fd768
%autosetup -S git
5fd768
5fd768
%build
5fd768
mkdir build
5fd768
cd build
5fd768
%global _configure ../configure
5fd768
%configure
5fd768
make %{?_smp_mflags}
5fd768
5fd768
# generate default /etc/nanorc
5fd768
# - disable line wrapping by default
5fd768
# - set hunspell as the default spell-checker
5fd768
# - enable syntax highlighting by default (#1270712)
5fd768
sed -e 's/# set nowrap/set nowrap/' \
5fd768
    -e 's/^#.*set speller.*$/set speller "hunspell"/' \
5fd768
    -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \
5fd768
    %{SOURCE2} doc/sample.nanorc > ./nanorc
5fd768
5fd768
%install
5fd768
cd build
5fd768
%make_install
5fd768
rm -f %{buildroot}%{_infodir}/dir
5fd768
5fd768
# remove installed HTML documentation
5fd768
rm -f %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html
5fd768
5fd768
# install default /etc/nanorc
5fd768
mkdir -p %{buildroot}%{_sysconfdir}
5fd768
install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
5fd768
5fd768
%find_lang %{name}
5fd768
5fd768
%post
5fd768
if [ -f %{_infodir}/%{name}.info.gz ]; then
5fd768
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
5fd768
fi
5fd768
exit 0
5fd768
5fd768
%preun
5fd768
if [ $1 -eq 0 ]; then
5fd768
  if [ -f %{_infodir}/%{name}.info.gz ]; then
5fd768
    /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
5fd768
  fi
5fd768
fi
5fd768
exit 0
5fd768
5fd768
%files -f build/%{name}.lang
5fd768
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
5fd768
%doc build/doc/sample.nanorc
5fd768
%doc doc/{faq,nano}.html
5fd768
%{_bindir}/*
5fd768
%config(noreplace) %{_sysconfdir}/nanorc
5fd768
%{_mandir}/man*/*
5fd768
%{_infodir}/nano.info*
5fd768
%{_datadir}/nano
5fd768
5fd768
%changelog
5fd768
* Mon Jun 04 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.8-1
5fd768
- new upstream release
5fd768
5fd768
* Tue May 15 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.7-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Apr 27 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.6-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Apr 25 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.5-2
5fd768
- fix crash when using word completion
5fd768
5fd768
* Thu Mar 29 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.5-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Mar 21 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.4-2
5fd768
- fix crash of 'nano --restrict' when <Insert> is pressed (#1558532)
5fd768
5fd768
* Thu Mar 08 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.4-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.3-3
5fd768
- add explicit BR for the gcc compiler
5fd768
5fd768
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.3-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5fd768
5fd768
* Mon Jan 29 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.3-1
5fd768
- new upstream release
5fd768
5fd768
* Tue Jan 02 2018 Kamil Dudka <kdudka@redhat.com> - 2.9.2-1
5fd768
- new upstream release
5fd768
5fd768
* Tue Nov 28 2017 Kamil Dudka <kdudka@redhat.com> - 2.9.1-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Nov 20 2017 Kamil Dudka <kdudka@redhat.com> - 2.9.0-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Aug 28 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.7-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.6-3
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5fd768
5fd768
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.6-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5fd768
5fd768
* Fri Jul 21 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.6-1
5fd768
- new upstream release
5fd768
5fd768
* Sun Jun 25 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.5-1
5fd768
- new upstream release
5fd768
5fd768
* Mon May 22 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.4-1
5fd768
- new upstream release
5fd768
5fd768
* Thu May 18 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.3-1
5fd768
- new upstream release
5fd768
5fd768
* Thu May 04 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.2-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Apr 12 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.1-1
5fd768
- new upstream release
5fd768
5fd768
* Tue Apr 04 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.0-2
5fd768
- use upstream patch to prevent symlink attack while creating a backup
5fd768
5fd768
* Fri Mar 31 2017 Kamil Dudka <kdudka@redhat.com> - 2.8.0-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Feb 23 2017 Kamil Dudka <kdudka@redhat.com> - 2.7.5-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5fd768
5fd768
* Tue Jan 10 2017 Kamil Dudka <kdudka@redhat.com> - 2.7.4-1
5fd768
- new upstream release (removes French man pages)
5fd768
5fd768
* Fri Dec 30 2016 Kamil Dudka <kdudka@redhat.com> - 2.7.3-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Dec 12 2016 Kamil Dudka <kdudka@redhat.com> - 2.7.2-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Oct 31 2016 Kamil Dudka <kdudka@redhat.com> - 2.7.1-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Sep 01 2016 Kamil Dudka <kdudka@redhat.com> - 2.7.0-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Aug 11 2016 Kamil Dudka <kdudka@redhat.com> - 2.6.3-1
5fd768
- use %%autosetup in %%prep
5fd768
- build out of source tree
5fd768
- do not recode man pages, they are UTF-8 encoded since v2.3.6
5fd768
- new upstream release
5fd768
5fd768
* Thu Jul 28 2016 Kamil Dudka <kdudka@redhat.com> - 2.6.2-1
5fd768
- drop BuildRoot and Group tags, which are no longer necessary
5fd768
- new upstream release
5fd768
5fd768
* Mon Jun 27 2016 Kamil Dudka <kdudka@redhat.com> - 2.6.1-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Jun 20 2016 Kamil Dudka <kdudka@redhat.com> - 2.6.0-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Feb 26 2016 Kamil Dudka <kdudka@redhat.com> - 2.5.3-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Feb 12 2016 Kamil Dudka <kdudka@redhat.com> - 2.5.2-2
5fd768
- new upstream release
5fd768
5fd768
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5fd768
5fd768
* Mon Jan 11 2016 Kamil Dudka <kdudka@redhat.com> - 2.5.1-1
5fd768
- new upstream release
5fd768
5fd768
* Sun Dec 06 2015 Kamil Dudka <kdudka@redhat.com> - 2.5.0-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Nov 18 2015 Kamil Dudka <kdudka@redhat.com> - 2.4.3-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Oct 12 2015 Kamil Dudka <kdudka@redhat.com> - 2.4.2-2
5fd768
- enable syntax highlighting by default (#1270712)
5fd768
- remove installed HTML documentation (to prevent a build failure in rawhide)
5fd768
5fd768
* Tue Jul 07 2015 Kamil Dudka <kdudka@redhat.com> - 2.4.2-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5fd768
5fd768
* Tue Apr 14 2015 Kamil Dudka <kdudka@redhat.com> - 2.4.1-1
5fd768
- new upstream release
5fd768
5fd768
* Mon Mar 23 2015 Kamil Dudka <kdudka@redhat.com> - 2.4.0-1
5fd768
- new upstream release
5fd768
5fd768
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.3.6-7
5fd768
- Rebuilt for Fedora 23 Change
5fd768
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
5fd768
5fd768
* Tue Jan 27 2015 Kamil Dudka <kdudka@redhat.com> - 2.3.6-6
5fd768
- additional fixes to the file locking feature of nano (#1186384)
5fd768
5fd768
* Mon Jan 26 2015 Kamil Dudka <kdudka@redhat.com> - 2.3.6-5
5fd768
- fix the file locking feature of nano (#1183320)
5fd768
5fd768
* Mon Jan 05 2015 Kamil Dudka <kdudka@redhat.com> - 2.3.6-4
5fd768
- drop BR for autoconf, which is no longer needed
5fd768
5fd768
* Mon Jan 05 2015 Kamil Dudka <kdudka@redhat.com> - 2.3.6-3
5fd768
- do not use closed file descriptor when setting backup's timestamp (#1177155)
5fd768
5fd768
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5fd768
5fd768
* Thu Jul 17 2014 Kamil Dudka <kdudka@redhat.com> - 2.3.6-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Jul 16 2014 Kamil Dudka <kdudka@redhat.com> - 2.3.5-1
5fd768
- new upstream release
5fd768
5fd768
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.4-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5fd768
5fd768
* Tue Jun 03 2014 Kamil Dudka <kdudka@redhat.com> - 2.3.4-1
5fd768
- new upstream release
5fd768
5fd768
* Thu May 29 2014 Kamil Dudka <kdudka@redhat.com> - 2.3.3-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Aug 09 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.2-4
5fd768
- document the --poslog (-P) option in nano.1 man page
5fd768
5fd768
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-3
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5fd768
5fd768
* Wed Mar 27 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.2-2
5fd768
- add "BuildRequires: file-devel" to build libmagic support (#927994)
5fd768
5fd768
* Tue Mar 26 2013 Kamil Dudka <kdudka@redhat.com> - 2.3.2-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-6
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5fd768
5fd768
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 2.3.1-5
5fd768
- fix specfile issues reported by the fedora-review script
5fd768
5fd768
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-4
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5fd768
5fd768
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.3.1-3
5fd768
- install everything in /usr
5fd768
  https://fedoraproject.org/wiki/Features/UsrMove
5fd768
5fd768
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5fd768
5fd768
* Wed May 11 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.1-1
5fd768
- new upstream release
5fd768
5fd768
* Thu Mar 03 2011 Kamil Dudka <kdudka@redhat.com> - 2.3.0-1
5fd768
- new upstream release (#680736)
5fd768
- use hunspell as default spell-checker (#681000)
5fd768
- fix for http://thread.gmane.org/gmane.editors.nano.devel/2911
5fd768
5fd768
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-3
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5fd768
5fd768
* Sun Nov 28 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-2
5fd768
- fix bugs introduced by patches added in 2.2.6-1 (#657875)
5fd768
5fd768
* Mon Nov 22 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.6-1
5fd768
- new upstream release (#655978)
5fd768
- increase code robustness (patches related to CVE-2010-1160, CVE-2010-1161)
5fd768
5fd768
* Sat Aug 07 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.5-1
5fd768
- new upstream release (#621857)
5fd768
5fd768
* Thu Apr 15 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.4-1
5fd768
- new upstream release
5fd768
- CVE-2010-1160, CVE-2010-1161 (#582739)
5fd768
5fd768
* Wed Mar 03 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.3-1
5fd768
- new upstream release
5fd768
5fd768
* Fri Jan 29 2010 Kamil Dudka <kdudka@redhat.com> - 2.2.2-1
5fd768
- new upstream release
5fd768
5fd768
* Sun Dec 27 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.1-1
5fd768
- new upstream release
5fd768
5fd768
* Tue Dec 01 2009 Kamil Dudka <kdudka@redhat.com> - 2.2.0-1
5fd768
- new upstream release
5fd768
5fd768
* Wed Nov 25 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-7
5fd768
- sanitize specfile according to Fedora Packaging Guidelines 
5fd768
5fd768
* Thu Oct 15 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-6
5fd768
- use nanorc.sample as base of /etc/nanorc
5fd768
5fd768
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-5
5fd768
- fix build failure of the last build
5fd768
5fd768
* Tue Oct 13 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-4
5fd768
- ship a system-wide configuration file along with the nano package
5fd768
- disable line wrapping by default (#528359)
5fd768
5fd768
* Mon Sep 21 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-3
5fd768
- suppress warnings for __attribute__((warn_unused_result)) (#523951)
5fd768
5fd768
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-2
5fd768
- install binaries to /bin (#168340)
5fd768
5fd768
* Fri Sep 18 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.9-1
5fd768
- new upstream release
5fd768
- dropped patch no longer needed (possible change in behavior though negligible)
5fd768
- fixed broken HTML doc in FR locales (#523951)
5fd768
5fd768
* Thu Sep 17 2009 Kamil Dudka <kdudka@redhat.com> - 2.0.6-8
5fd768
- do process install-info only without --excludedocs(#515943)
5fd768
5fd768
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-7
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5fd768
5fd768
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-6
5fd768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5fd768
5fd768
* Fri Apr  4 2008 Ville Skyttä <ville.skytta at iki.fi> - 2.0.6-5
5fd768
- Mark localized man pages with %%lang, fix French nanorc(5) (#322271).
5fd768
5fd768
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6-4
5fd768
- Autorebuild for GCC 4.3
5fd768
5fd768
* Fri Dec 07 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.0.6-3
5fd768
- Pass rnano.1 through iconv to silence the final rpmlint complaint
5fd768
  and finish up the merge review.
5fd768
5fd768
* Wed Aug 22 2007 David Woodhouse <dwmw2@infradead.org> - 2.0.6-2
5fd768
- Update licence
5fd768
- Fix open(O_CREAT) calls without mode
5fd768
5fd768
* Sun Jun 03 2007 Florian La Roche <laroche@redhat.com> - 2.0.6-1
5fd768
- update to 2.0.6
5fd768
5fd768
* Mon Feb 05 2007 Florian La Roche <laroche@redhat.com> - 2.0.3-1
5fd768
- update to 2.0.3
5fd768
- update spec file syntax, fix scripts rh#220527
5fd768
5fd768
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.12-1.1
5fd768
- rebuild
5fd768
5fd768
* Mon Jul 10 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.12-1
5fd768
- Update to 1.3.12
5fd768
5fd768
* Tue May 16 2006 David Woodhouse <dwmw2@redhat.com> - 1.3.11-1
5fd768
- Update to 1.3.11
5fd768
- BuildRequires: groff (#191946)
5fd768
5fd768
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2.1
5fd768
- bump again for double-long bug on ppc(64)
5fd768
5fd768
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.8-1.2
5fd768
- rebuilt for new gcc4.1 snapshot and glibc changes
5fd768
5fd768
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5fd768
- rebuilt
5fd768
5fd768
* Mon Sep 5 2005 David Woodhouse <dwmw2@redhat.com> 1.3.8-1
5fd768
- 1.3.8
5fd768
5fd768
* Wed Mar 2 2005 David Woodhouse <dwmw2@redhat.com> 1.3.5-0.20050302
5fd768
- Update to post-1.3.5 CVS tree to get UTF-8 support.
5fd768
5fd768
* Wed Aug 04 2004 David Woodhouse <dwmw2@redhat.com> 1.2.4-1
5fd768
- 1.2.4
5fd768
5fd768
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
5fd768
- rebuilt
5fd768
5fd768
* Fri Apr 02 2004 Florian La Roche <Florian.LaRoche@redhat.de>
5fd768
- 1.2.3
5fd768
5fd768
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
5fd768
- rebuilt
5fd768
5fd768
* Mon Aug 11 2003 Bill Nottingham <notting@redhat.com> 1.2.1-4
5fd768
- build in different environment
5fd768
5fd768
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
5fd768
- rebuilt
5fd768
5fd768
* Tue May  6 2003 Bill Nottingham <notting@redhat.com> 1.2.1-2
5fd768
- description tweaks
5fd768
5fd768
* Mon May  5 2003 Bill Nottingham <notting@redhat.com> 1.2.1-1
5fd768
- initial build, tweak upstream spec file