libedit-vl.spec 6.3 KB

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