libedit-vl.spec 5.6 KB

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