libedit-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define snap 20120601
  2. Summary: The NetBSD Editline library
  3. Summary(ja): NetBSD Editline ライブラリ
  4. Name: libedit
  5. Version: 3.0
  6. Release: 4.%{snap}%{?_dist_release}
  7. License: BSD
  8. Group: System Environment/Libraries
  9. URL: http://www.thrysoee.dk/editline/
  10. Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
  11. # bz #575383
  12. Patch1: libedit-3.0-sigwinch.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: gawk
  15. BuildRequires: ncurses-devel
  16. %description
  17. Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
  18. It provides generic line editing, history, and tokenization functions, similar
  19. to those found in GNU Readline.
  20. %package devel
  21. Summary: Development files for %{name}
  22. Summary(ja): %{name} の開発ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: pkgconfig
  26. Requires: ncurses-devel
  27. %description devel
  28. This package contains development files for %{name}.
  29. %prep
  30. %setup -q -n %{name}-%{snap}-%{version}
  31. %patch1 -p1
  32. # Suppress rpmlint error.
  33. iconv --from-code ISO8859-1 --to-code UTF-8 ./ChangeLog \
  34. --output ChangeLog.utf-8 && mv ChangeLog.utf-8 ./ChangeLog
  35. %build
  36. %configure --disable-static --enable-widec
  37. # Trying to omit unused direct shared library dependencies leads to
  38. # undefined non-weak symbols.
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
  43. find $RPM_BUILD_ROOT -type f -name "*.la" -delete
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc ChangeLog COPYING THANKS
  51. %{_libdir}/%{name}.so.*
  52. %files devel
  53. %defattr(-,root,root,-)
  54. %doc examples/fileman.c examples/test.c
  55. %doc %{_mandir}/man3/*
  56. %doc %{_mandir}/man5/editrc.5*
  57. %{_includedir}/histedit.h
  58. %{_libdir}/%{name}.so
  59. %{_libdir}/pkgconfig/%{name}.pc
  60. %dir %{_includedir}/editline
  61. %{_includedir}/editline/readline.h
  62. %changelog
  63. * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-4.20120601
  64. - update to 20120601 snap
  65. * Sun Jan 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-3.20100424
  66. - add --enable-widec to support wide-chat/UTF-8
  67. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-2.20100424
  68. - rebuild with rpm-4.8.1 for pkg-config file
  69. * Wed May 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-1.20100424
  70. - initial build for Vine Linux
  71. - update to 20100424 snap
  72. * Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs
  73. - eliminated compile-time warnings
  74. - fix to not break the read loop on SIGWINCH, patch contributed
  75. by Edward Sheldrake (#575383)
  76. * Tue Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs
  77. - Update to 3.0 (20090923 snap)
  78. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  80. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  82. * Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs
  83. - Add ncurses-devel requires to -devel subpackage (BZ#481252)
  84. * Sun Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs
  85. - Version bump to 20080712-2.11.
  86. * Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs
  87. - Rebuilding with gcc-4.3 in Rawhide.
  88. * Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs
  89. - Removed 'Requires: ncurses-devel'.
  90. * Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs
  91. - Changed character encoding of ChangeLog from ISO8859-1 to UTF-8.
  92. * Sun Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
  93. - Initial build. Imported SPEC from Rawhide.