libedit-vl.spec 5.6 KB

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