readline-vl.spec 12 KB

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