libedit-vl.spec 5.1 KB

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