readline6-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. Summary: A library for editing typed in command lines.
  2. Summary(ja): Readline ライブラリ
  3. Name: readline6
  4. Version: 6.3
  5. Release: 2%{?_dist_release}
  6. License: GPLv3+
  7. Group: System Environment/Libraries
  8. URL: http://tiswww.tis.case.edu/~chet/readline/rltop.html
  9. Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
  10. # upstream patches
  11. Patch1: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-001
  12. Patch2: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-002
  13. Patch3: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-003
  14. Patch4: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-004
  15. Patch5: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-005
  16. Patch6: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-006
  17. Patch7: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-007
  18. Patch8: ftp://ftp.gnu.org/gnu/readline/readline-%{version}-patches/readline63-008
  19. # add workaround for problem in gdb
  20. # in new version of readline needs to be deleted
  21. # bz701131
  22. Patch9: readline-6.2-gdb.patch
  23. # fix file permissions, remove RPATH, use CFLAGS
  24. Patch10: readline-6.2-shlib.patch
  25. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  26. BuildRequires: sed
  27. BuildRequires: ncurses-devel
  28. Requires(post): /sbin/install-info, /sbin/ldconfig
  29. Requires(preun): /sbin/install-info
  30. Requires(postun): /sbin/ldconfig
  31. Vendor: Project Vine
  32. Distribution: Vine Linux
  33. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  34. %description
  35. The Readline library provides a set of functions that allow users to
  36. edit command lines. Both Emacs and vi editing modes are available. The
  37. Readline library includes additional functions for maintaining a list
  38. of previously-entered command lines for recalling or editing those
  39. lines, and for performing csh-like history expansion on previous
  40. commands.
  41. %description -l ja
  42. Readline ライブラリは、ユーザーがコマンドラインを編集する機能を提供します。
  43. Emacs と vi の編集モードが利用可能です。Readline ライブラリはさらに、
  44. これまで入力されたコマンドライン履歴を保持し、再利用する機能も備えています。
  45. %package devel
  46. Summary: Files needed to develop programs which use the readline library.
  47. Summary(ja): Readline ライブラリを使うプログラムための開発用ライブラリ
  48. Group: Development/Libraries
  49. Requires: readline = %{version}
  50. Requires: ncurses-devel
  51. %description devel
  52. The Readline library provides a set of functions that allow users to
  53. edit typed command lines. If you want to develop programs that will
  54. use the readline library, you need to have the readline-devel package
  55. installed. You also need to have the readline package installed.
  56. %package -n compat32-%{name}
  57. Summary: A library for editing typed in command lines.
  58. Summary(ja): Readline ライブラリ
  59. Group: System Environment/Libraries
  60. Requires: %{name} = %{version}-%{release}
  61. %description -n compat32-%{name}
  62. The Readline library provides a set of functions that allow users to
  63. edit command lines. Both Emacs and vi editing modes are available. The
  64. Readline library includes additional functions for maintaining a list
  65. of previously-entered command lines for recalling or editing those
  66. lines, and for performing csh-like history expansion on previous
  67. commands.
  68. %description -n compat32-%{name} -l ja
  69. Readline ライブラリは、ユーザーがコマンドラインを編集する機能を提供します。
  70. Emacs と vi の編集モードが利用可能です。Readline ライブラリはさらに、
  71. これまで入力されたコマンドライン履歴を保持し、再利用する機能も備えています。
  72. %package -n compat32-%{name}-devel
  73. Summary: Files needed to develop programs which use the readline library.
  74. Summary(ja): Readline ライブラリを使うプログラムための開発用ライブラリ
  75. Group: Development/Libraries
  76. Requires: %{name} = %{version}-%{release}
  77. Requires: %{name}-devel = %{version}-%{release}
  78. Requires: compat32-ncurses-devel
  79. %description -n compat32-%{name}-devel
  80. The Readline library provides a set of functions that allow users to
  81. edit typed command lines. If you want to develop programs that will
  82. use the readline library, you need to have the readline-devel package
  83. installed. You also need to have the readline package installed.
  84. %prep
  85. %setup -q -n readline-%{version}
  86. # upstream patches
  87. %patch1 -p0 -b .001
  88. %patch2 -p0 -b .002
  89. %patch3 -p0 -b .003
  90. %patch4 -p0 -b .004
  91. %patch5 -p0 -b .005
  92. %patch6 -p0 -b .006
  93. %patch7 -p0 -b .007
  94. %patch8 -p0 -b .008
  95. %patch9 -p1 -b .gdb
  96. %patch10 -p1 -b .shlib
  97. %build
  98. export CPPFLAGS="-I%{_includedir}/ncurses"
  99. %configure
  100. make %{?_smp_mflags}
  101. %install
  102. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  103. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  104. make DESTDIR=$RPM_BUILD_ROOT install
  105. mkdir $RPM_BUILD_ROOT/%{_lib}
  106. mv $RPM_BUILD_ROOT%{_libdir}/libreadline.so.* $RPM_BUILD_ROOT/%{_lib}
  107. for l in $RPM_BUILD_ROOT%{_libdir}/libreadline.so; do
  108. ln -sf $(echo %{_libdir} | \
  109. sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
  110. done
  111. rm -rf $RPM_BUILD_ROOT%{_datadir}
  112. rm -rf $RPM_BUILD_ROOT%{_includedir}
  113. rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,so}
  114. %clean
  115. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  116. %post
  117. /sbin/ldconfig
  118. %if 0
  119. /sbin/install-info %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
  120. /sbin/install-info %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
  121. :
  122. %endif
  123. %postun -p /sbin/ldconfig
  124. %post -n compat32-%{name} -p /sbin/ldconfig
  125. %postun -n compat32-%{name} -p /sbin/ldconfig
  126. %if 0
  127. %preun
  128. if [ $1 = 0 ]; then
  129. /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir &> /dev/null
  130. /sbin/install-info --delete %{_infodir}/rluserman.info.gz %{_infodir}/dir &> /dev/null
  131. fi
  132. :
  133. %post devel
  134. /sbin/install-info %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
  135. :
  136. %preun devel
  137. if [ $1 = 0 ]; then
  138. /sbin/install-info --delete %{_infodir}/readline.info.gz %{_infodir}/dir &> /dev/null
  139. fi
  140. :
  141. %endif
  142. %files
  143. %defattr(-,root,root)
  144. %license COPYING
  145. %doc CHANGES NEWS README USAGE
  146. /%{_lib}/libreadline*.so.*
  147. %{_libdir}/libhistory*.so.*
  148. %if 0
  149. %files devel
  150. %defattr(-,root,root)
  151. %doc examples/*.c examples/*.h examples/rlfe
  152. %{_includedir}/readline
  153. %{_libdir}/lib*.a
  154. %{_libdir}/lib*.so
  155. %{_infodir}/readline.info*
  156. %{_mandir}/man*/*
  157. %endif
  158. %if %{build_compat32}
  159. %files -n compat32-%{name}
  160. %defattr(-,root,root)
  161. /%{_lib}/libreadline*.so.*
  162. %{_libdir}/libhistory*.so.*
  163. %if 0
  164. %files -n compat32-%{name}-devel
  165. %defattr(-,root,root)
  166. %{_libdir}/lib*.a
  167. %{_libdir}/lib*.so
  168. %endif
  169. %endif
  170. %changelog
  171. * Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.3-2
  172. - changed %%name for compatibility.
  173. * Sat Mar 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 6.3-1
  174. - new upstream release
  175. - update upstream patches (patch1-8)
  176. * Fri Dec 27 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.2-5
  177. - rebuild with VineSeed environment
  178. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 5.2-4
  179. - add upstream patches 13,14 (Patch13,14)
  180. * Fri Mar 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.2-3
  181. - rebuilt with new toolchain
  182. - add Requires(post,pre): /sbin/ldconfig
  183. * Tue Aug 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.2-2vl5
  184. - build with ncurses-devel
  185. - spec in utf8
  186. - move libncurses.so.* to %%_lib from %%_libdir
  187. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2-1vl5
  188. - added upstream patches (patch8-12)
  189. * Fri Oct 19 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2-0vl1
  190. - new upstream release
  191. - update upstream patches (patch1-7)
  192. * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 5.1-0vl1
  193. - new upstream release
  194. - update upstream patches (patch1-4)
  195. - add doc/*.{html,pdf} instead of doc/
  196. * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.3-5vl3
  197. - s/Copyright/License/
  198. - add URL
  199. - update source URL
  200. - add PreReq: ldconfig
  201. - move outdated.patch (patch1) to patch10
  202. - add upstream patches (patch1-5)
  203. - add no_rpath.patch (patch11)
  204. * Fri Oct 28 2005 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 4.3-5vl2
  205. - added compat32- packages for x86_64 architecture support
  206. - fixed %files section (TODO* has been removed)
  207. * Sat Mar 8 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3-5vl1
  208. - new upstream release 4.3
  209. - merged with rawhide package.
  210. * Wed Nov 20 2002 Tim Powers <timp@redhat.com>
  211. - rebuild in current collinst
  212. - BuildRequires autoconf only
  213. * Wed Aug 07 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-3
  214. - Fixed Esc-O-M stack overflow bug.
  215. * Mon Jul 22 2002 Phil Knirsch <pknirsch@redhat.com> 4.3-1
  216. - Updated to latest readline release 4.3
  217. * Thu Jul 11 2002 Phil Knirsch <pknirsch@redhat.com> 4.2a-7
  218. - Fixed problem with alpha build.
  219. * Wed Jul 10 2002 Phil Knirsch <pknirsch@redhat.com>
  220. - Fixed utf8 problem (originally observed in bash).
  221. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.2a-6
  222. - automated rebuild
  223. * Thu May 23 2002 Tim Powers <timp@redhat.com> 4.2a-5
  224. - automated rebuild
  225. * Wed Mar 20 2002 Trond Eivind Glomsrod <teg@redhat.com> 4.2a-4
  226. - Use autoconf 2.53, not 2.52
  227. * Mon Mar 4 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-3
  228. - Rebuild
  229. * Mon Nov 26 2001 Matt Wilson <msw@redhat.com> 4.2a-2
  230. - removed the manual symlinking of .so, readline handles this by itself
  231. - call only %%makeinstall, not %%makeinstall install install-shared as
  232. this makes bogus .old files in the buildroot
  233. * Tue Nov 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2a-1
  234. - 4.2a
  235. * Tue Oct 2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
  236. - Work around autoconf bug
  237. * Mon Oct 1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-3
  238. - Don't use readline's internal re-implementation of strpbrk on systems
  239. that have strpbrk - the system implementation is faster and better maintained.
  240. * Tue Aug 7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-2
  241. - Make sure headers can be included from C++ applications (#51131)
  242. (Patch based on Debian's with the bugs removed ;) )
  243. * Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  244. - update to 4.2 and adapt patches
  245. * Fri Apr 6 2001 Nalin Dahyabhai <nalin@redhat.com>
  246. - change the paths listed for the header files in the man page to reflect
  247. the location changes from previous versions (#35073)
  248. - note that "on" is acceptable instead of "On" in the man page (#21327)
  249. * Thu Mar 8 2001 Preston Brown <pbrown@redhat.com>
  250. - fix reading of end key termcap value (@7 is correct, was kH) (#30884)
  251. * Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
  252. - mark the man page as currently out-of-date (#25294)
  253. * Tue Sep 4 2001 Jun Nishii <jun@vinelinux.org> 4.1-6vl5
  254. - remove texi2dvi and texi2html from doc/
  255. * Fri Jun 29 2001 Jun Nishii <jun@vinelinux.org> 4.1-6vl4
  256. - added doc and examples
  257. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  258. - 4.1-6vl3
  259. - rebuilt for VineSeed
  260. * Wed Dec 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  261. - 4.1-6vl2
  262. - Oops, spec was written in SJIS...
  263. * Sat Dec 9 2000 Jun Nishii <jun@vinelinux.org>
  264. - 4.1-6vl1
  265. - got i18n patch from Kondara
  266. * Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
  267. - FHS packaging (64bit systems need to use libdir).
  268. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  269. - summaries from specspo.
  270. * Wed Aug 2 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  271. - use "rm -f" in specfile
  272. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  273. - automatic rebuild
  274. * Mon Jun 5 2000 Jeff Johnson <jbj@redhat.com>
  275. - FHS packaging.
  276. * Tue Mar 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  277. - 4.1
  278. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  279. - update to 4.0
  280. * Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
  281. - added guard patch from Taneli Huuskonen <huuskone@cc.helsinki.fi>
  282. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  283. - auto rebuild in the new build environment (release 4)
  284. * Sun Jul 26 1998 Jeff Johnson <jbj@redhat.com>
  285. - updated to 2.2.1
  286. * Wed May 06 1998 Prospector System <bugs@redhat.com>
  287. - translations modified for de, fr, tr
  288. * Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
  289. - don't package /usr/info/dir
  290. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  291. - devel package moved to Development/Libraries
  292. * Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
  293. - updated to 2.2
  294. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  295. - spec file cleanups
  296. * Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
  297. - added proper sonames
  298. * Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
  299. - updated to readline 2.1
  300. * Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
  301. - built against glibc