tclx-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. %define tcl_major 8.4
  2. %define tk_major 8.4
  3. %define thread_major 2.6
  4. %define tclx_major 8.4
  5. %define tclxvers %{tclx_major}
  6. Summary: A Tcl/Tk development environment: tclX
  7. Summary(ja): Tcl/Tk 開発環境: tclX
  8. Name: tclx
  9. Version: %{tclxvers}
  10. Release: 1%{?_dist_release}
  11. Group: Development/Languages
  12. License: BSD
  13. Source0: ftp://ftp.tcl.tk/pub/tcl/nightly-cvs/tclx-20070227.tar.gz
  14. BuildRequires: tcl >= %{tcl_major}
  15. BuildRequires: tk >= %{tk_major}
  16. BuildRequires: thread >= %{thread_major}
  17. Requires: tcl >= %{tcl_major}
  18. Requires: tk >= %{tk_major}
  19. Requires: thread >= %{thread_major}
  20. Buildroot: %{_tmppath}/%{name}-root
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. %description -n tclx
  24. TclX is a set of extensions which make it easier to use the Tcl
  25. scripting language for common UNIX/Linux programming tasks. TclX
  26. enhances Tcl support for files, network access, debugging, math, lists,
  27. and message catalogs. TclX can be used with both Tcl and Tcl/Tk
  28. applications.
  29. Install TclX if you are developing applications with Tcl/Tk. You'll
  30. also need to install the tcl and tk packages.
  31. %description -n tclx -l ja
  32. TclX は一般的な UNIX/Linux プログラミング作業のおいて、Tcl スクリプト言語
  33. をより簡単に使用するための拡張キットです。TclX は、ファイルや、ネットワーク
  34. アクセス、デバッグ、数値計算、リスト、メッセージカタログの Tcl サポートを拡
  35. 張します。TclX は Tcl と Tcl/Tk アプリケーションの両方で使うことができます。
  36. Tcl/Tk のアプリケーションを開発するときには、TclXもインストールしてください。
  37. tcl と tk のパッケージも必要です。
  38. %prep
  39. %setup -q -n %{name}
  40. %build
  41. # make the libraries reentrant
  42. RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT"
  43. # tclX
  44. %configure \
  45. --with-tcl=%{_libdir} --with-tk=%{_libdir} \
  46. --enable-shared --enable-tk --enable-threads --enable-64bit
  47. make
  48. %install
  49. rm -rf ${RPM_BUILD_ROOT}
  50. mkdir -p ${RPM_BUILD_ROOT}
  51. rm -f *.files
  52. # TclX
  53. %makeinstall
  54. if [ "%_mandir" = "%{_prefix}/share/man" ]; then
  55. ( cd ${RPM_BUILD_ROOT}%{_prefix}/man; tar cf - ./man[13n] ) |
  56. ( cd ${RPM_BUILD_ROOT}%{_mandir}; tar xf - )
  57. ( cd ${RPM_BUILD_ROOT}%{_prefix}/man; rm -rf ./man[13n] )
  58. fi
  59. echo "%%defattr(-,root,root)" > tclx.files
  60. (find ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_includedir} \
  61. ${RPM_BUILD_ROOT}%{_mandir} -type f -o -type l;
  62. find ${RPM_BUILD_ROOT}%{_libdir}/*) | cat - *.files \
  63. | sort | uniq -u >> tclx.files
  64. set +x +H
  65. for n in `cat tclx.files`; do
  66. test -f $n || continue
  67. head -1 $n | grep -q ^#! || continue
  68. chmod u+w $n
  69. perl -pi -e "s|${RPM_BUILD_ROOT}||" $n
  70. done
  71. set -x -H
  72. # post process the *.files list, removing build sys references and mark
  73. # which are directories
  74. set +x
  75. for n in *.files; do
  76. mv $n $n.in
  77. sed "s|.*%{_prefix}\\>|%{_prefix}|" < $n.in | while read file; do
  78. if [ -d ${RPM_BUILD_ROOT}/$file ]; then
  79. echo -n '%dir '
  80. fi
  81. echo $file
  82. done > $n
  83. rm -f $n.in
  84. done
  85. set -x
  86. # Man pages can be compressed
  87. perl -pi -e 's|(^%{_mandir}/man.*$)|\1\*|' *.files
  88. %post -p /sbin/ldconfig -n tclx
  89. %postun -p /sbin/ldconfig -n tclx
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT
  92. %files -f tclx.files -n tclx
  93. %changelog
  94. * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-1vl5
  95. - applied new versioning policy
  96. * Sun Feb 17 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl3
  97. - updated tclx to tclx-20070227.tar.gz
  98. - rebuild with tcl/tk-8.4.18
  99. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl2
  100. - rebuild with tcl/tk-8.4.16
  101. * Mon Mar 31 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.4.2-0vl1
  102. - update based on BitWalk's tcltk-8.4.2-83bw
  103. * Thu Nov 15 2001 Kazuhisa TAKEI <takei@linux.or.jp>
  104. - split source package.
  105. * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl2
  106. - expand some macros.. (FIXME)
  107. * Sat Jul 14 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl1
  108. - use %configure macros
  109. - add Patch 47,50
  110. * Thu May 31 2001 <sagami@vinelinux.org>
  111. - 8.0.5_jp-10
  112. - unexpand old %%{configure}, new one causes build failure
  113. - fixed missing libtkx.so libtclx.so symlink in /usr/lib
  114. - install manpages into %%{_mandir} and mode 644
  115. * Wed Jul 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  116. - 8.0.5_jp-9
  117. - modified %install section to handle compressed man pages
  118. - fixed /usr/lib/tk8.0jp/demos.jp/images symlink
  119. * Sun Jul 2 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  120. - changed default fonts
  121. * Tue Jan 25 2000 Jun Nishii <jun@vinelinux.org>
  122. - added defattr
  123. * Mon Jan 24 2000 Jun Nishii <jun@vinelinux.org>
  124. - added some symlinks, such as libtcl8.0.so.
  125. - obsoletes version number using _jp, now 8.0.5-31vl1
  126. * Wed Jan 5 2000 Norihito Ohmori <nono@vinelinux.org>
  127. - Apply Tcl/Tk 8.0 Japanese Patch 1.7
  128. * Tue Nov 30 1999 Jakub Jelinek <jakub@redhat.com>
  129. - fix tclX symlinks.
  130. - compile on systems where SIGPWR == SIGLOST.
  131. * Sat May 1 1999 Jeff Johnson <jbj@redhat.com>
  132. - update tcl/tk to 8.0.5.
  133. - avoid "containing" in Tix (#2332).
  134. * Thu Apr 8 1999 Jeff Johnson <jbj@redhat.com>
  135. - use /usr/bin/write in kibitz (#1320).
  136. - use cirrus.sprl.umich.edu in weather (#1926).
  137. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  138. - auto rebuild in the new build environment (release 28)
  139. * Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
  140. - whoops, exec-prefix for itcl was set to '/foo', changed to '/usr'.
  141. * Tue Feb 16 1999 Jeff Johnson <jbj@redhat.com>
  142. - expect does unaligned access on alpha (#989)
  143. - upgrade tcl/tk/tclX to 8.0.4
  144. - upgrade expect to 5.28.
  145. - add itcl 3.0.1
  146. * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
  147. - call libtoolize to allow building on the arm
  148. - build for glibc 2.1
  149. - strip binaries
  150. * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
  151. - update tcl/tk/tclX to 8.0.3, expect is updated also.
  152. * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com>
  153. - expect: mkpasswd needs delay before sending password (problem #576)
  154. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  155. - translations modified for de, fr, tr
  156. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  157. - fixed expect binaries exec permissions
  158. * Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
  159. - updated to Tix 4.1.0.006
  160. - updated version numbers of tcl/tk to relflect includsion of p2
  161. * Wed Mar 25 1998 Cristian Gafton <gafton@redhat.com>
  162. - updated tcl/tk to patch level 2
  163. - updated tclX to 8.0.2
  164. * Thu Oct 30 1997 Otto Hammersmith <otto@redhat.com>
  165. - fixed filelist for tix... replacing path to the expect binary in scripts
  166. was leaving junk files around.
  167. * Wed Oct 22 1997 Otto Hammersmith <otto@redhat.com>
  168. - added patch to remove libieee test in configure.in for tcl and tk.
  169. Shoudln't be needed anymore for glibc systems, but this isn't the "proper"
  170. solution for all systems
  171. - fixed src urls
  172. * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
  173. - removed version numbers from descriptions
  174. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  175. - updated to tcl/tk 8.0 and related versions of packages
  176. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  177. - built against glibc
  178. - fixed dangling tclx/tkx symlinks