tcl-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. %global itcl_version 4.3.2
  2. %global tdbc_version 1.1.10
  3. %global thread_version 3.0.1
  4. %{!?sdt:%define sdt 0}
  5. Summary: A Tcl/Tk development environment: tcl
  6. Summary(ja): Tcl/Tk 開発環境: tcl
  7. Name: tcl
  8. Version: 8.6.16
  9. %global majorver %(echo %{version} | sed -e 's/\.[0-9]*$//')
  10. %global minorver %(echo %{version} | sed -e 's/^.*\.//')
  11. %global htmlver %{version}
  12. Release: 1%{?_dist_release}
  13. Group: programming
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. License: TCL
  17. URL: http://tcl.sourceforge.net/
  18. Source0: https://prdownloads.sourceforge.net/tcl/%{name}%{version}-src.tar.gz
  19. #Source1: https://prdownloads.sourceforge.net/tcl/%{name}%{htmlver}-html.tar.gz
  20. Patch0: tcl-8.6.12-autopath.patch
  21. Patch1: tcl-8.6.15-conf.patch
  22. Patch3: tcl-8.6.13-tcltests-path-fix.patch
  23. Patch4: tcl-8.6.13-configure-c99.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildRequires: autoconf
  26. BuildRequires: pkgconfig(zlib)
  27. %if %sdt
  28. BuildRequires: systemtap-sdt-devel
  29. %endif
  30. %description
  31. Tcl is a simple scripting language designed to be embedded into
  32. other applications. Tcl is designed to be used with Tk, a widget
  33. set, which is provided in the tk package. This package also includes
  34. tclsh, a simple example of a Tcl application.
  35. %description -l ja
  36. Tcl は様々なアプリケーションの実行を行うための、簡単なスクリプ
  37. ト言語です。Tclはウィジッド・セットであるTkとともに用いるように
  38. デザインしています。このパッケージにはTclの簡単な例として、tclsh
  39. も含んでいます。
  40. %package devel
  41. Summary: Tcl scripting language development environment
  42. Summary(ja): Tcl スクリプト言語の開発環境
  43. Group: programming
  44. Requires: %{name} = %{version}-%{release}
  45. %description devel
  46. Tcl is a simple scripting language designed to be embedded into
  47. other applications. Tcl is designed to be used with Tk, a widget
  48. set, which is provided in the tk package. This package also includes
  49. tclsh, a simple example of a Tcl application.
  50. The package contains the development files and man pages for tcl.
  51. %package itcl
  52. Summary: Object oriented extensions to Tcl and Tk
  53. Summary(ja): Tcl/Tk のオブジェクト指向拡張
  54. Group: programming
  55. Requires: %{name} = %{version}-%{release}
  56. Provides: itcl = %{itcl_version}
  57. Obsoletes: itcl < 4.0.0
  58. %description itcl
  59. [incr Tcl] is Tcl extension that provides object-oriented features that are
  60. missing from the Tcl language.
  61. %package itcl-devel
  62. Summary: Development headers and libraries for linking against tcl-itcl
  63. Summary(ja): tcl-itclとリンクするためのヘッダ・ライブラリ
  64. Group: programming
  65. Requires: %{name}-itcl = %{version}-%{release}
  66. Provides: itcl-devel = %{itcl_version}
  67. Obsoletes: itcl-devel < 4.0.0
  68. %description itcl-devel
  69. Development headers and libraries for linking against itcl.
  70. %package tdbc
  71. Summary: database extensions to Tcl and Tk
  72. Summary(ja): Tcl/Tk のデータベース拡張
  73. Group: Development/Libraries
  74. Requires: %{name} = %{version}-%{release}
  75. Provides: tdbc = %{tdbc_version}
  76. %description tdbc
  77. tdbc is Tcl extension that provides database features to tcl/tk.
  78. %package tdbc-devel
  79. Summary: Development headers and libraries for linking against tcl-tdbc
  80. Summary(ja): tcl-tdbcとリンクするためのヘッダ・ライブラリ
  81. Group: programming
  82. Requires: %{name}-tdbc = %{version}-%{release}
  83. Requires: sqlite3-tcl
  84. Provides: tdbc-devel = %{tdbc_version}
  85. %description tdbc-devel
  86. Development headers and libraries for linking against tdbc.
  87. %package thread
  88. Summary: thread extensions to Tcl and Tk
  89. Summary(ja): Tcl/Tk のスレッド拡張
  90. Group: programming
  91. Requires: %{name} = %{version}-%{release}
  92. Provides: thread = %{thread_version}
  93. Obsoletes: thread < 2.8.0
  94. %description thread
  95. You can use this extension to gain script-level access to Tcl threading
  96. capabilities.
  97. %debug_package
  98. %prep
  99. %setup -n %{name}%{version} -q
  100. %autopatch -p1
  101. %build
  102. pushd unix
  103. autoconf
  104. %configure \
  105. %if %sdt
  106. --enable-dtrace \
  107. %endif
  108. --enable-threads \
  109. --enable-symbols \
  110. --enable-shared \
  111. --disable-rpath
  112. %make_build CFLAGS="%{optflags}" TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
  113. %install
  114. make install install-libraries install-msgs -C unix INSTALL_ROOT=%{buildroot} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
  115. ln -s tclsh%{majorver} %{buildroot}%{_bindir}/tclsh
  116. # for linking with -lib%{name}
  117. ln -s lib%{name}%{majorver}.so %{buildroot}%{_libdir}/lib%{name}.so
  118. mkdir -p %{buildroot}/%{_libdir}/%{name}%{majorver}
  119. # postgresql and maybe other packages too need tclConfig.sh
  120. # paths don't look at /usr/lib for efficiency, so we symlink into tcl8.5 for now
  121. ln -s %{_libdir}/%{name}Config.sh %{buildroot}/%{_libdir}/%{name}%{majorver}/%{name}Config.sh
  122. mkdir -p %{buildroot}/%{_includedir}/%{name}-private/{generic,unix}
  123. find generic unix -name "*.h" -exec cp -p '{}' %{buildroot}/%{_includedir}/%{name}-private/'{}' ';'
  124. pushd %{buildroot}/%{_includedir}
  125. for i in *.h ; do
  126. [ -f %{buildroot}/%{_includedir}/%{name}-private/generic/$i ] && ln -sf ../../$i %{buildroot}/%{_includedir}/%{name}-private/generic ;
  127. done
  128. popd
  129. # remove buildroot traces
  130. sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{buildroot}/%{_libdir}/%{name}Config.sh
  131. rm -rf %{buildroot}/%{_datadir}/%{name}%{majorver}/ldAix
  132. # workaround for FTBFS caused by read-only library:
  133. # https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DH5N6XV2NJHBIMX226HPDFUMO5NODE2V/
  134. chmod u+w %{buildroot}%{_libdir}/lib%{name}%{majorver}.so
  135. # sqlite3 extension is provided by sqlite3-tcl
  136. rm -rf %{buildroot}%{_libdir}/sqlite3*
  137. rm -f %{buildroot}%{_mandir}/mann/sqlite3*
  138. rm -f %{buildroot}%{_libdir}/tcl8/%{majorver}/tdbc/sqlite3*uuid
  139. %files
  140. %license license.terms
  141. %doc README.md changes.md
  142. #doc html/*
  143. %{_bindir}/tclsh*
  144. %{_libdir}/libtcl%{majorver}.so
  145. %dir %{_libdir}/tcl%{majorver}
  146. %{_datadir}/%{name}8
  147. %{_datadir}/%{name}%{majorver}
  148. %{_mandir}/man1/*
  149. %{_mandir}/mann/*
  150. # itcl
  151. %exclude %{_mandir}/mann/body.n*
  152. %exclude %{_mandir}/mann/class.n*
  153. %exclude %{_mandir}/mann/code.n*
  154. %exclude %{_mandir}/mann/configbody.n*
  155. %exclude %{_mandir}/mann/delete.n*
  156. %exclude %{_mandir}/mann/ensemble.n*
  157. %exclude %{_mandir}/mann/find.n*
  158. %exclude %{_mandir}/mann/is.n*
  159. %exclude %{_mandir}/mann/itcl*.n*
  160. %exclude %{_mandir}/mann/local.n*
  161. %exclude %{_mandir}/mann/scope.n*
  162. # tdbc
  163. %exclude %{_mandir}/mann/tdbc*
  164. # thread
  165. %exclude %{_mandir}/mann/thread.n*
  166. %exclude %{_mandir}/mann/tpool.n*
  167. %exclude %{_mandir}/mann/tsv.n*
  168. %exclude %{_mandir}/mann/ttrace.n*
  169. %files devel
  170. %{_includedir}/*
  171. %{_libdir}/pkgconfig/tcl.pc
  172. %{_libdir}/libtcl.so
  173. %{_libdir}/libtclstub*.a
  174. %{_libdir}/tclConfig.sh
  175. %{_libdir}/tclooConfig.sh
  176. %{_libdir}/tcl%{majorver}/tclConfig.sh
  177. %{_mandir}/man3/*
  178. %files itcl
  179. %{_libdir}/itcl*
  180. %exclude %{_libdir}/itcl*/itclConfig.sh
  181. %exclude %{_libdir}/itcl*/libitclstub*.a
  182. %{_mandir}/mann/body.n*
  183. %{_mandir}/mann/class.n*
  184. %{_mandir}/mann/code.n*
  185. %{_mandir}/mann/configbody.n*
  186. %{_mandir}/mann/delete.n*
  187. %{_mandir}/mann/ensemble.n*
  188. %{_mandir}/mann/find.n*
  189. %{_mandir}/mann/is.n*
  190. %{_mandir}/mann/itcl*.n*
  191. %{_mandir}/mann/local.n*
  192. %{_mandir}/mann/scope.n*
  193. %files itcl-devel
  194. %{_libdir}/itcl*/itclConfig.sh
  195. %{_libdir}/itcl*/libitclstub*.a
  196. %{_includedir}/itcl*.h
  197. %files tdbc
  198. %{_libdir}/tdbc*
  199. %exclude %{_libdir}/tdbc*/libtdbcstub*.a
  200. %exclude %{_libdir}/tdbc*/tdbcConfig.sh
  201. %{_bindir}/sqlite3_analyzer
  202. %{_libdir}/tcl8/%{majorver}/tdbc/sqlite3-*.tm
  203. %{_mandir}/mann/tdbc*
  204. %files tdbc-devel
  205. %{_libdir}/tdbc*/libtdbcstub*.a
  206. %{_libdir}/tdbc*/tdbcConfig.sh
  207. %{_includedir}/tdbc*.h
  208. %files thread
  209. %{_libdir}/thread*
  210. %{_mandir}/mann/thread.n*
  211. %{_mandir}/mann/tpool.n*
  212. %{_mandir}/mann/tsv.n*
  213. %{_mandir}/mann/ttrace.n*
  214. %changelog
  215. * Tue Jun 10 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.6.16-1
  216. - new upstream release.
  217. * Sat Oct 21 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.6.13-1
  218. - new upstream release.
  219. - dropped ldconfig scriptlets.
  220. - re-imported patches from rawhide.
  221. * Wed Jul 01 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.6.10-1
  222. - new upstream release.
  223. - replaced all patches to the newest rawhide's.
  224. * Fri Oct 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.6.9-1
  225. - new upstream release.
  226. - dropped Patch101: get same effects by sed and configure options.
  227. - imported Patch103.
  228. - added subpackages: itcl{,-devel}, tdbc{,-devel} and thread.
  229. * Mon Jan 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 8.5.15-3
  230. - split development files into devel subpackage
  231. * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> 8.5.15-2
  232. - rebuilt with the current environment
  233. * Tue Oct 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.5.15-1
  234. - update to 8.5.15
  235. - update Patch101 (tcl-8.5.15-conf.patch)
  236. - remove Patch103 (tcl-8.5.7-sigabrt.patch)
  237. * Fri Jan 4 2013 IWAI, Masaharu <iwai@alib.jp> 8.5.7-1
  238. - update to 8.5.7: sync Red Hat Enterprise Linux 6 tcl-8.5.7-6.el6
  239. - update License: TCL
  240. - drop obsolete patches
  241. - tclm4-soname patch (Patch1)
  242. - lib-perm patch (Patch2)
  243. - configure patch (Patch3)
  244. - no rpath patch (Patch4)
  245. - init lib64 patch (Patch10)
  246. - add some patches from RHEL tcl-8.5.7-6.el6
  247. - autopath patch (Patch100)
  248. - conf patch (Patch101)
  249. - hidden patch (Patch102)
  250. - sigabrt patch (Patch103)
  251. - update build and install section: sync RHEL tcl-8.5.7-6.el6
  252. - add BR: systemtap-sdt-devel: default disable
  253. * Thu Apr 21 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.4.19-4
  254. - added imake to BR:.
  255. * Sat Apr 16 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.19-3
  256. - rebuilt with rpm-4.8.1-3
  257. * Tue Jun 29 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.19-2
  258. - rebuilt with new environment
  259. - updated Patch3: tcl8.4.16-configure.patch
  260. * Tue Jun 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.4.19-1
  261. - new upstream release
  262. * Tue Sep 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.4.18-2
  263. - spec in UTF-8
  264. - configure with disabled threads. See:
  265. https://bugzilla.redhat.com/show_bug.cgi?id=443246
  266. http://groups.google.com/group/comp.lang.tcl/msg/ce6a1324bada8db0
  267. * Mon May 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 8.4.18-1
  268. - rebuild with new environment
  269. * Sun Feb 17 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.18-0vl1
  270. - updated tcl to 8.4.18
  271. - updated tcl-html to 8.4.18
  272. * Mon Oct 08 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.16-0vl1
  273. - updated tcl to 8.4.16
  274. - updated tcl-html to 8.4.16
  275. - dropt Patch3: tcl8.3.5-tclConfig-package-path-90160.patch
  276. - added Patch3: tcl8.4.16-configure.patch
  277. * Wed Jun 13 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.15-0vl1
  278. - updated tcl to 8.4.15
  279. - updated tcl-html to 8.4.15
  280. - dropt Patch1: tcl-8.3.5-tclm4-soname.patch
  281. - added Patch10: tcl-8.4.15-init.lib64.patch
  282. - rebuilt with new toolchain
  283. * Wed May 10 2006 IWAI, Masaharu <iwai@alib.jp> 8.4.13-0vl1
  284. - updated tcl to 8.4.13
  285. - updated tcl-html to 8.4.13
  286. * Sat Jan 28 2006 Shu KONNO <owa@bg.wakwak.com> 8.4.12-0vl1
  287. - updated tcl to 8.4.12
  288. - updated patch4
  289. * Sat Aug 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.4.11-0vl1
  290. - updated tcl to 8.4.11
  291. - updated Patch4
  292. * Thu Jun 24 2004 Shu KONNO <owa@bg.wakwak.com> 8.4.6-0vl1
  293. - updated tcl to 8.4.6
  294. * Mon Jan 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.4.5-3vl2
  295. - merged with fedora
  296. * Mon Dec 1 2003 Thomas Woerner <twoerner@redhat.com> 8.4.5-3
  297. - removed rpath (patch 4)
  298. * Fri Nov 28 2003 Jens Petersen <petersen@redhat.com> - 8.4.5-2
  299. - put private header files under generic and unix subdirs
  300. - include real generic/tclPort.h not just a symlink to tclUnixPort.h
  301. - add tclMath.h to %{_includedir}/tcl-private/generic for building tk
  302. * Thu Nov 27 2003 Jens Petersen <petersen@redhat.com> - 8.4.5-1
  303. - new package split out from tcltk
  304. - update to tcl 8.4.5 (#88429)
  305. - drop tcl-8.3.3-heiierarchy.patch, tcl-8.3.3-dlopen.patch
  306. and tcl8.3.5-koi8-u.enc-88806.patch
  307. - include private include headers under %{_includedir}/tcl-private
  308. - filtered changelog for tcl
  309. - buildrequire autoconf213 (#110583) [mvd@mylinux.com.ua]
  310. * Sat Mar 29 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.4.2-0vl1
  311. - update based on BitWalk's tcltk-8.4.2-83bw
  312. * Thu Nov 15 2001 Kazuhisa TAKEI <takei@linux.or.jp>
  313. - split source package.
  314. * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl2
  315. - expand some macros.. (FIXME)
  316. * Sat Jul 14 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl1
  317. - use %configure macros
  318. - add Patch 47,50
  319. * Thu May 31 2001 <sagami@vinelinux.org>
  320. - 8.0.5_jp-10
  321. - unexpand old %%{configure}, new one causes build failure
  322. - fixed missing libtkx.so libtclx.so symlink in /usr/lib
  323. - install manpages into %%{_mandir} and mode 644
  324. * Wed Jul 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  325. - 8.0.5_jp-9
  326. - modified %install section to handle compressed man pages
  327. - fixed /usr/lib/tk8.0jp/demos.jp/images symlink
  328. * Sun Jul 2 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  329. - changed default fonts
  330. * Tue Jan 25 2000 Jun Nishii <jun@vinelinux.org>
  331. - added defattr
  332. * Mon Jan 24 2000 Jun Nishii <jun@vinelinux.org>
  333. - added some symlinks, such as libtcl8.0.so.
  334. - obsoletes version number using _jp, now 8.0.5-31vl1
  335. * Wed Jan 5 2000 Norihito Ohmori <nono@vinelinux.org>
  336. - Apply Tcl/Tk 8.0 Japanese Patch 1.7
  337. * Tue Nov 30 1999 Jakub Jelinek <jakub@redhat.com>
  338. - fix tclX symlinks.
  339. - compile on systems where SIGPWR == SIGLOST.
  340. * Sat May 1 1999 Jeff Johnson <jbj@redhat.com>
  341. - update tcl/tk to 8.0.5.
  342. - avoid "containing" in Tix (#2332).
  343. * Thu Apr 8 1999 Jeff Johnson <jbj@redhat.com>
  344. - use /usr/bin/write in kibitz (#1320).
  345. - use cirrus.sprl.umich.edu in weather (#1926).
  346. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  347. - auto rebuild in the new build environment (release 28)
  348. * Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
  349. - whoops, exec-prefix for itcl was set to '/foo', changed to '/usr'.
  350. * Tue Feb 16 1999 Jeff Johnson <jbj@redhat.com>
  351. - expect does unaligned access on alpha (#989)
  352. - upgrade tcl/tk/tclX to 8.0.4
  353. - upgrade expect to 5.28.
  354. - add itcl 3.0.1
  355. * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
  356. - call libtoolize to allow building on the arm
  357. - build for glibc 2.1
  358. - strip binaries
  359. * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
  360. - update tcl/tk/tclX to 8.0.3, expect is updated also.
  361. * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com>
  362. - expect: mkpasswd needs delay before sending password (problem #576)
  363. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  364. - translations modified for de, fr, tr
  365. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  366. - fixed expect binaries exec permissions
  367. * Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
  368. - updated to Tix 4.1.0.006
  369. - updated version numbers of tcl/tk to relflect includsion of p2
  370. * Wed Mar 25 1998 Cristian Gafton <gafton@redhat.com>
  371. - updated tcl/tk to patch level 2
  372. - updated tclX to 8.0.2
  373. * Thu Oct 30 1997 Otto Hammersmith <otto@redhat.com>
  374. - fixed filelist for tix... replacing path to the expect binary in scripts
  375. was leaving junk files around.
  376. * Wed Oct 22 1997 Otto Hammersmith <otto@redhat.com>
  377. - added patch to remove libieee test in configure.in for tcl and tk.
  378. Shoudln't be needed anymore for glibc systems, but this isn't the "proper"
  379. solution for all systems
  380. - fixed src urls
  381. * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
  382. - removed version numbers from descriptions
  383. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  384. - updated to tcl/tk 8.0 and related versions of packages
  385. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  386. - built against glibc
  387. - fixed dangling tclx/tkx symlinks