tclx-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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: 2%{?_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. * Tue Jun 29 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.2-2
  95. - rebuilt with tcl/tk-8.4.19-2
  96. * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-1vl5
  97. - applied new versioning policy
  98. * Sun Feb 17 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl3
  99. - updated tclx to tclx-20070227.tar.gz
  100. - rebuild with tcl/tk-8.4.18
  101. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl2
  102. - rebuild with tcl/tk-8.4.16
  103. * Mon Mar 31 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.4.2-0vl1
  104. - update based on BitWalk's tcltk-8.4.2-83bw
  105. * Thu Nov 15 2001 Kazuhisa TAKEI <takei@linux.or.jp>
  106. - split source package.
  107. * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl2
  108. - expand some macros.. (FIXME)
  109. * Sat Jul 14 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl1
  110. - use %configure macros
  111. - add Patch 47,50
  112. * Thu May 31 2001 <sagami@vinelinux.org>
  113. - 8.0.5_jp-10
  114. - unexpand old %%{configure}, new one causes build failure
  115. - fixed missing libtkx.so libtclx.so symlink in /usr/lib
  116. - install manpages into %%{_mandir} and mode 644
  117. * Wed Jul 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  118. - 8.0.5_jp-9
  119. - modified %install section to handle compressed man pages
  120. - fixed /usr/lib/tk8.0jp/demos.jp/images symlink
  121. * Sun Jul 2 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  122. - changed default fonts
  123. * Tue Jan 25 2000 Jun Nishii <jun@vinelinux.org>
  124. - added defattr
  125. * Mon Jan 24 2000 Jun Nishii <jun@vinelinux.org>
  126. - added some symlinks, such as libtcl8.0.so.
  127. - obsoletes version number using _jp, now 8.0.5-31vl1
  128. * Wed Jan 5 2000 Norihito Ohmori <nono@vinelinux.org>
  129. - Apply Tcl/Tk 8.0 Japanese Patch 1.7
  130. * Tue Nov 30 1999 Jakub Jelinek <jakub@redhat.com>
  131. - fix tclX symlinks.
  132. - compile on systems where SIGPWR == SIGLOST.
  133. * Sat May 1 1999 Jeff Johnson <jbj@redhat.com>
  134. - update tcl/tk to 8.0.5.
  135. - avoid "containing" in Tix (#2332).
  136. * Thu Apr 8 1999 Jeff Johnson <jbj@redhat.com>
  137. - use /usr/bin/write in kibitz (#1320).
  138. - use cirrus.sprl.umich.edu in weather (#1926).
  139. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  140. - auto rebuild in the new build environment (release 28)
  141. * Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
  142. - whoops, exec-prefix for itcl was set to '/foo', changed to '/usr'.
  143. * Tue Feb 16 1999 Jeff Johnson <jbj@redhat.com>
  144. - expect does unaligned access on alpha (#989)
  145. - upgrade tcl/tk/tclX to 8.0.4
  146. - upgrade expect to 5.28.
  147. - add itcl 3.0.1
  148. * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
  149. - call libtoolize to allow building on the arm
  150. - build for glibc 2.1
  151. - strip binaries
  152. * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
  153. - update tcl/tk/tclX to 8.0.3, expect is updated also.
  154. * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com>
  155. - expect: mkpasswd needs delay before sending password (problem #576)
  156. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  157. - translations modified for de, fr, tr
  158. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  159. - fixed expect binaries exec permissions
  160. * Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
  161. - updated to Tix 4.1.0.006
  162. - updated version numbers of tcl/tk to relflect includsion of p2
  163. * Wed Mar 25 1998 Cristian Gafton <gafton@redhat.com>
  164. - updated tcl/tk to patch level 2
  165. - updated tclX to 8.0.2
  166. * Thu Oct 30 1997 Otto Hammersmith <otto@redhat.com>
  167. - fixed filelist for tix... replacing path to the expect binary in scripts
  168. was leaving junk files around.
  169. * Wed Oct 22 1997 Otto Hammersmith <otto@redhat.com>
  170. - added patch to remove libieee test in configure.in for tcl and tk.
  171. Shoudln't be needed anymore for glibc systems, but this isn't the "proper"
  172. solution for all systems
  173. - fixed src urls
  174. * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
  175. - removed version numbers from descriptions
  176. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  177. - updated to tcl/tk 8.0 and related versions of packages
  178. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  179. - built against glibc
  180. - fixed dangling tclx/tkx symlinks