tcsh-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. %define _bindir /bin
  2. Summary: An enhanced version of csh, the C shell
  3. Summary(ja): csh, Cシェルの進化バージョン
  4. Name: tcsh
  5. Version: 6.17
  6. Release: 1%{?_dist_release}
  7. License: BSD
  8. URL: http://www.tcsh.org/
  9. Group: System Environment/Shells
  10. Source: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.00.tar.gz
  11. Patch1: tcsh-6.15.00-closem.patch
  12. Patch2: tcsh-6.14.00-tinfo.patch
  13. Patch3: tcsh-6.14.00-unprintable.patch
  14. Patch4: tcsh-6.15.00-hist-sub.patch
  15. Patch6: tcsh-6.15.00-ca-color.patch
  16. Patch7: tcsh-6.14.00-set.patch
  17. Patch8: tcsh-6.14.00-syntax.patch
  18. Patch9: tcsh-6.13.00-memoryuse.patch
  19. Patch11: tcsh-6.14.00-order.patch
  20. Patch12: tcsh-6.15.00-rs-color.patch
  21. Patch13: tcsh-6.17.00-mh-color.patch
  22. # The idea is good, but the patch must be rewritten to be accepted by upstream
  23. # (see tcsh mailing list for more information):
  24. Patch14: tcsh-6.17.00-glob-automount.patch
  25. # Accepted by upstream:
  26. Patch15: tcsh-6.17.00-history.patch
  27. # Accepted by upstream:
  28. Patch16: tcsh-6.17.00-printexitvalue.patch
  29. Patch17: tcsh-6.17.00-testsuite.patch
  30. # Accepted by upstream:
  31. Patch18: tcsh-6.17.00-extrafork.patch
  32. # Accepted by upstream (tcsh-6.17.03b http://bugs.gw.com/view.php?id=109):
  33. Patch19: tcsh-6.17.00-wait-intr.patch
  34. # Accepted by upstream (tcsh-6.17.03b http://bugs.gw.com/view.php?id=112):
  35. Patch21: tcsh-6.17.00-dont-set-empty-remotehost.patch
  36. # Patch by upstream (tcsh-6.17.01b http://mx.gw.com/pipermail/tcsh-bugs/2010-May/000673.html):
  37. Patch22: tcsh-6.17.00-dont-print-history-on-verbose.patch
  38. # Accepted by upstream (tcsh-6.17.03b http://bugs.gw.com/view.php?id=113):
  39. Patch23: tcsh-6.17.00-variable-names.patch
  40. # Accepted by upstream (tcsh-6.17.05b http://mx.gw.com/pipermail/tcsh-bugs/2011-March/000727.html):
  41. Patch24: tcsh-6.17.00-avoid-infinite-loop-pendjob-xprintf.patch
  42. Provides: csh = %{version}
  43. Requires(post): grep
  44. Requires(postun): coreutils, grep
  45. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  46. BuildRequires: autoconf, automake, ncurses-devel, gettext-devel
  47. %description
  48. Tcsh is an enhanced but completely compatible version of csh, the C
  49. shell. Tcsh is a command language interpreter which can be used both
  50. as an interactive login shell and as a shell script command processor.
  51. Tcsh includes a command line editor, programmable word completion,
  52. spelling correction, a history mechanism, job control and a C language
  53. like syntax.
  54. %description -l ja
  55. tcsh は、バークレイ版 UNIX の C シェル csh と完全に互換性があり、
  56. さらに機能強化したシェルです。対話的なログインシェル、またシェルス
  57. クリプトのコマンドプロセッサの両方の用途で使われるコマンドインタプ
  58. リタです。
  59. tcsh には、コマンド行編集機能や、プログラム可能な単語の補完機能、
  60. スペル訂正、履歴、ジョブ制御、C 言語風の文法等が含まれます。
  61. %prep
  62. %setup -q -n %{name}-%{version}.00
  63. %patch1 -p1 -b .closem
  64. %patch2 -p1 -b .tinfo
  65. %patch3 -p1 -b .unprintable
  66. %patch4 -p1 -b .hist-sub
  67. %patch6 -p1 -b .ca-color
  68. %patch7 -p1 -b .set
  69. %patch8 -p1 -b .syntax
  70. %patch9 -p1 -b .memoryuse
  71. %patch11 -p1 -b .order
  72. %patch12 -p1 -b .rs-color
  73. %patch13 -p1 -b .mh-color
  74. %patch14 -p1 -b .glob-automount
  75. %patch15 -p1 -b .history
  76. %patch16 -p1 -b .printexitvalue
  77. %patch17 -p1 -b .testsuite
  78. %patch18 -p1 -b .extrafork
  79. %patch19 -p1 -b .wait-intr
  80. %patch21 -p1 -b .dont-set-empty-remotehost
  81. %patch22 -p1 -b .dont-print-history-on-verbose
  82. %patch23 -p1 -b .variable-names
  83. %patch24 -p1 -b .avoid-infinite-loop-pendjob-xprintf
  84. for i in Fixes WishList; do
  85. iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \
  86. touch -r "$i" "${i}_" && \
  87. mv "${i}_" "$i"
  88. done
  89. %build
  90. # For tcsh-6.14.00-tinfo.patch
  91. autoreconf
  92. %configure --without-hesiod
  93. make %{?_smp_mflags} all
  94. make %{?_smp_mflags} -C nls catalogs
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir}
  98. install -p -m 755 tcsh ${RPM_BUILD_ROOT}%{_bindir}/tcsh
  99. install -p -m 644 tcsh.man ${RPM_BUILD_ROOT}%{_mandir}/man1/tcsh.1
  100. ln -sf tcsh ${RPM_BUILD_ROOT}%{_bindir}/csh
  101. ln -sf tcsh.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/csh.1
  102. while read lang language ; do
  103. dest=${RPM_BUILD_ROOT}%{_datadir}/locale/$lang/LC_MESSAGES
  104. if test -f tcsh.$language.cat ; then
  105. mkdir -p $dest
  106. install -p -m 644 tcsh.$language.cat $dest/tcsh
  107. echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/tcsh"
  108. fi
  109. done > tcsh.lang << _EOF
  110. de german
  111. el greek
  112. en C
  113. es spanish
  114. et et
  115. fi finnish
  116. fr french
  117. it italian
  118. ja ja
  119. pl pl
  120. ru russian
  121. uk ukrainian
  122. _EOF
  123. %clean
  124. rm -rf $RPM_BUILD_ROOT
  125. %post
  126. if [ ! -f /etc/shells ]; then
  127. echo "%{_bindir}/tcsh" >> /etc/shells
  128. echo "%{_bindir}/csh" >> /etc/shells
  129. else
  130. grep -q '^%{_bindir}/tcsh$' /etc/shells || \
  131. echo "%{_bindir}/tcsh" >> /etc/shells
  132. grep -q '^%{_bindir}/csh$' /etc/shells || \
  133. echo "%{_bindir}/csh" >> /etc/shells
  134. fi
  135. %postun
  136. if [ ! -x %{_bindir}/tcsh ]; then
  137. grep -v '^%{_bindir}/tcsh$' /etc/shells | \
  138. grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \
  139. mv /etc/shells.rpm /etc/shells
  140. fi
  141. %files -f tcsh.lang
  142. %defattr(-,root,root,-)
  143. %doc BUGS FAQ Fixes NewThings WishList complete.tcsh
  144. %{_bindir}/tcsh
  145. %{_bindir}/csh
  146. %{_mandir}/man1/*.1*
  147. %changelog
  148. * Sun Jun 12 2011 IWAI, Masaharu <iwai@alib.jp> 6.17-1
  149. - new upstream release
  150. - drop wide str patch (Patch12): upstream fixed
  151. - update ca-color patch (Patch6) from Fedora tcsh-6.17-15
  152. - update syntax patch (Patch8) from Fedora tcsh-6.17-15
  153. - update rs-color patch from Fedora tcsh-6.17-15
  154. - resync with Fedora tcsh-6.17-15
  155. - change patch number Patch13 -> Patch12
  156. - add Patch13..24
  157. * Thu Mar 24 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-15
  158. - Avoid infinite loop pendjob()-xprintf() when stdout is closed
  159. Resolves: #690356
  160. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.17-14
  161. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  162. * Fri Jan 28 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-13
  163. - Modify verbose patch to match with upstream (don't print on history -S)
  164. Resolves: #672810
  165. * Wed Jan 26 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-12
  166. - Fix error message on exit
  167. Resolves: #672810
  168. * Mon Jan 24 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-11
  169. - Don't set $REMOTEHOST on the local machine
  170. Resolves: #669176
  171. - Don't print history in verbose mode
  172. Resolves: #583075, #658171
  173. - Don't allow illegal variable names to be set
  174. Resolves: #436901
  175. - Revert "Fix incorrect $status value of pipelined commands"
  176. * Tue Dec 21 2010 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 6.17-10
  177. - Make wait builtin command interruptible
  178. Resolves: #440465
  179. - Fix incorrect $status value of pipelined commands
  180. Resolves: #638955 (Patch by Tomas Smetana <tsmetana@redhat.com>)
  181. * Wed Oct 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-9
  182. - Remove fork when tcsh processes backquotes
  183. * Wed Apr 14 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-8
  184. - Fix testsuite
  185. * Mon Mar 1 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-7
  186. - Ship README file
  187. * Tue Dec 15 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-6
  188. - Fix tcsh obeys printexitvalue for back-ticks
  189. * Wed Nov 4 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-5
  190. - Fix few globbing problems
  191. * Mon Oct 19 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-4
  192. - Fix tcsh globbing causing bad automount
  193. - Fix truncated history file after network crash
  194. * Wed Aug 26 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-3
  195. - Add new colorls variable
  196. Resolves: #518808
  197. * Sun Jul 26 2009 Fedora Release Engineering <releng@lists.fedoraproject.org> - 6.17-2
  198. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  199. * Mon Jul 20 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.17-1
  200. - Update to tcsh-6.17.00
  201. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.16-2
  202. - rebuilt with current VineSeed
  203. * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.16-1
  204. - new upstream release
  205. - resync with 6.16-1(fc12)
  206. - drop vine patch
  207. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 6.12-1vl5
  208. - applied new versioning policy, spec in utf-8
  209. * Wed Oct 18 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 6.12-0vl6
  210. - added patch11 from fedora
  211. * Thu Mar 23 2006 Miloslav Trmac <mitr@redhat.com> - 6.14-8
  212. - Backport a patch to ignore LS_COLOR codes introduced in newer coreutils
  213. (#186037)
  214. - added japanese description
  215. * Thu Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.12-0vl5
  216. - added patch from fedora
  217. * Tue Feb 10 2004 Nalin Dahyabhai <nalin@redhat.com> 6.12-7
  218. - remove declaration of setpgrp() which conflicts with libc's (#115185)
  219. * Fri Nov 21 2003 Nalin Dahyabhai <nalin@redhat.com> 6.12-6
  220. - add missing buildprereqs on groff, libtermcap-devel (#110599)
  221. * Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.12-0vl4
  222. - rebuild with new toolchains
  223. - s/Copyright/License/
  224. - fix spec file to build correctly (based on Rawhide spec file)
  225. * Tue Aug 06 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.12-0vl3
  226. - "Re"-changed the way of fixing check locale from Patch8 to Patch9
  227. on ppc strlen() can not deal with 'short' variables
  228. * Sat Aug 03 2002 Satoshi MACHINO <machino@vinelinux.org> 6.12-0vl2
  229. - fixed changelog
  230. * Thu Jul 25 2002 K. Nagasaka <nagasaka@math.tsukuba.ac.jp> 6.12-0vl1
  231. - update
  232. * Sun Apr 28 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 6.11-0vl4
  233. - change limit.patch
  234. * Fri Apr 26 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp> 6.11-0vl3
  235. - fixed limit by Patch10
  236. * Sun Jan 27 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.11-0vl2
  237. - changed the way of fixing check locale from Patch8 to Patch9
  238. on ppc strlen() can not deal with 'short' variables
  239. * Mon Jan 21 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.11-0vl1
  240. - update
  241. * Thu Dec 28 2001 Satoshi MACHINO <machino@vinelinux.org> 6.10.02-0vl2
  242. - fixed check locale
  243. - merged some patches from RHL-7.2
  244. * Thu Aug 09 2001 <sagami@vinelinux.org>
  245. - 6.10.02-0vl1
  246. * Sun Jan 7 2001 Jun Nishii <jun@vinelinux.org>
  247. - 6.10-1vl2
  248. - build with gcc
  249. * Mon Dec 11 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  250. - syncronized release tcsh based on a securty fix for RH6.2.
  251. * Thu Nov 30 2000 Nalin Dahyabhai <nalin@redhat.com>
  252. - update to 6.10.00 to fix here-script vulnerability
  253. * Wed Sep 18 2000 Adrian Havill <havill@redhat.com>
  254. - fix catalog locale dirname for Japanese
  255. * Thu Jun 15 2000 Jeff Johnson <jbj@redhat.com>
  256. - FHS packaging.
  257. - add locale support (#10345).
  258. * Tue Mar 7 2000 Jeff Johnson <jbj@redhat.com>
  259. - rebuild for sparc baud rates > 38400.
  260. * Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
  261. - rebuild to fix dependencies
  262. * Thu Jan 27 2000 Jeff Johnson <jbj@redhat.com>
  263. - append entries to spanking new /etc/shells.
  264. * Mon Jan 10 2000 Jeff Johnson <jbj@redhat.com>
  265. - update to 6.09.
  266. - fix strcoll oddness (#6000, #6244, #6398).
  267. * Sat Sep 25 1999 Michael K. Johnson <johnsonm@redhat.com>
  268. - fix $shell by using --bindir
  269. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  270. - auto rebuild in the new build environment (release 5)
  271. * Wed Feb 24 1999 Cristian Gafton <gafton@redhat.com>
  272. - patch for using PATH_MAX instead of some silly internal #defines for
  273. variables that handle filenames.
  274. * Fri Nov 6 1998 Jeff Johnson <jbj@redhat.com>
  275. - update to 6.08.00.
  276. * Fri Oct 02 1998 Cristian Gafton <gafton@redhat.com>
  277. - upgraded to 6.07.09 from the freebsd
  278. - security fix
  279. * Wed Aug 5 1998 Jeff Johnson <jbj@redhat.com>
  280. - use -ltermcap so that /bin/tcsh can be used in single user mode w/o /usr.
  281. - update url's
  282. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  283. - translations modified for de, fr, tr
  284. * Thu Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  285. - updated to 6.07; added BuildRoot
  286. - cleaned up the spec file; fixed source url
  287. * Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
  288. - added termios hacks for new glibc
  289. - added /bin/csh to file list
  290. * Fri Jun 13 1997 Erik Troan <ewt@redhat.com>
  291. - built against glibc
  292. * Fri Feb 07 1997 Erik Troan <ewt@redhat.com>
  293. - Provides csh, adds and removes /bin/csh from /etc/shells if csh package
  294. isn't installed.