libedit-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define snap 20170329
  3. Summary: The NetBSD Editline library
  4. Summary(ja): NetBSD Editline ライブラリ
  5. Name: libedit
  6. Version: 3.1
  7. Release: 3.%{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. %doc ChangeLog COPYING THANKS
  73. %{_libdir}/%{name}.so.*
  74. %{_mandir}/man5/editrc.5*
  75. %{_mandir}/man7/editline.7*
  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. %{_mandir}/man3/*
  85. %if %{build_compat32}
  86. %files -n compat32-%{name}
  87. %defattr(-,root,root)
  88. %{_libdir}/%{name}.so.*
  89. %files -n compat32-%{name}-devel
  90. %defattr(-,root,root)
  91. %{_libdir}/%{name}.so
  92. %{_libdir}/pkgconfig/%{name}.pc
  93. %endif
  94. %changelog
  95. * Fri Feb 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1-3.20170329
  96. - updated to 3.1-20170329.
  97. * Wed Mar 29 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 3.1-2.20160903
  98. - update to 20160903 snap
  99. - drop SIGWINCH patch (Patch1); upstream fixed
  100. - move editrc.5 to main package
  101. - add editline.7
  102. * Tue Mar 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1-2.20140620
  103. - added compat32 subpackage
  104. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1-1.20140620
  105. - update to 20140620 snap
  106. * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-4.20120601
  107. - update to 20120601 snap
  108. * Sun Jan 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-3.20100424
  109. - add --enable-widec to support wide-chat/UTF-8
  110. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0-2.20100424
  111. - rebuild with rpm-4.8.1 for pkg-config file
  112. * Wed May 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-1.20100424
  113. - initial build for Vine Linux
  114. - update to 20100424 snap
  115. * Tue Mar 30 2010 Kamil Dudka <kdudka@redhat.com> 3.0-2.20090923cvs
  116. - eliminated compile-time warnings
  117. - fix to not break the read loop on SIGWINCH, patch contributed
  118. by Edward Sheldrake (#575383)
  119. * Fri Nov 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-1.20090923cvs
  120. - Update to 3.0 (20090923 snap)
  121. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-4.20080712cvs
  122. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  123. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-3.20080712cvs
  124. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  125. * Thu Jan 22 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.11-2.20080712cvs
  126. - Add ncurses-devel requires to -devel subpackage (BZ#481252)
  127. * Mon Jul 28 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.11-1.20080712cvs
  128. - Version bump to 20080712-2.11.
  129. * Sat Feb 16 2008 Debarshi Ray <rishi@fedoraproject.org> - 2.10-4.20070831cvs
  130. - Rebuilding with gcc-4.3 in Rawhide.
  131. * Sun Nov 04 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-3.20070831cvs
  132. - Removed 'Requires: ncurses-devel'.
  133. * Sat Nov 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-2.20070831cvs
  134. - Changed character encoding of ChangeLog from ISO8859-1 to UTF-8.
  135. * Mon Sep 03 2007 Debarshi Ray <rishi@fedoraproject.org> - 2.10-1.20070831cvs
  136. - Initial build. Imported SPEC from Rawhide.