nano-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Name: nano
  2. Summary: Pico editor clone with enhancements
  3. Version: 4.9.3
  4. Release: 1%{?_dist_release}
  5. Group: Applications/Editors
  6. License: GPLv3+ and GFDL
  7. URL: https://www.nano-editor.org/
  8. Source0: https://www.nano-editor.org/dist/v4/%{name}-%{version}.tar.xz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: gettext
  11. BuildRequires: ncurses-devel
  12. Requires(post): /sbin/install-info
  13. Requires(preun): /sbin/install-info
  14. %description
  15. GNU nano is a small and friendly text editor. It aims to emulate the
  16. Pico text editor while also offering a few enhancements.
  17. %prep
  18. %setup -q
  19. %build
  20. %configure --enable-all
  21. make
  22. %install
  23. rm -rf %{buildroot}
  24. make DESTDIR="%{buildroot}" install
  25. rm -rf ./rpmdoc
  26. cp -rf %{buildroot}%{_docdir}/%{name} ./rpmdoc
  27. rm -rf %{buildroot}%{_docdir}/%{name}
  28. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  29. %find_lang %{name}
  30. %clean
  31. rm -rf %{buildroot}
  32. %post
  33. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/nano.info.gz
  34. %preun
  35. if [ $1 = 0 ] ;then
  36. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/nano.info.gz
  37. fi
  38. %files -f %{name}.lang
  39. %defattr(-,root,root)
  40. %license COPYING*
  41. %doc AUTHORS ChangeLog* NEWS README* THANKS TODO
  42. %doc rpmdoc/* doc/sample.nanorc
  43. %{_bindir}/*
  44. %{_mandir}/man*/*
  45. %{_infodir}/nano.info*
  46. %dir %{_datadir}/nano
  47. %{_datadir}/nano/*
  48. %changelog
  49. * Wed Jul 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.9.3-1
  50. - new upstream release.
  51. * Sat Aug 31 2019 Toshiaki Ara <ara_t@384.jp> 2.2.6-2
  52. - rebuild with ncurses-6.1
  53. * Sun Dec 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-1
  54. - new upstream release
  55. * Tue Oct 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.5-1
  56. - new upstream release
  57. * Fri Mar 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-1
  58. - new upstream release
  59. * Fri Jan 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.1-1
  60. - new upstream release
  61. - added %post, %preun section
  62. * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.9-1
  63. - Initial build for Vine Linux.