readline-vl.spec 12 KB

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