%define majorver 8.4 %define minorver 19 Summary: A Tcl/Tk development environment: tk Summary(ja): Tcl/Tk 開発環境: tk Name: tk Version: %{majorver}.%{minorver} Release: 2%{?_dist_release} Group: Development/Languages License: BSD URL: http://tcl.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/tcl/%{name}%{version}-src.tar.gz Patch2: tk-8.4.12-lib-perm.patch Patch3: tk-8.4-lastevent.patch Patch4: tk-8.4.18-tkBind.patch Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: tcl = %{version}, autoconf BuildRequires: libX11-devel Requires: tcl >= %{majorver} Provides: libtk%{majorver}.so %description Tk is a X Windows widget set designed to work closely with the tcl scripting language. It allows you to write simple programs with full featured GUI's in only a little more time then it takes to write a text based interface. Tcl/Tk applications can also be run on Windows and Macintosh platforms. %description -l ja Tk は tcl スクリプト言語と密接に動作するようにデザインされた X Window System のウィジェットセットです。 テキストベースのインターフェースを 採用してるので、あらゆる特徴をもった GUI を少ない時間で、簡単なプログラ ムで書くことができます。Tcl/Tk アプリケーションは Windows や Macintosh のプラットフォームで実行することもできます。 %prep %setup -n %{name}%{version} -q %patch2 -p1 -b .rolib %patch3 -p0 -b .lastevent #%%patch4 -p1 -b .tkbind cd unix autoconf %build cd unix %configure \ --with-tcl=%{_libdir} --enable-shared \ --enable-threads --enable-64bit --with-x make %{?_smp_mflags} TK_LIBRARY=%{_datadir}/tk%{majorver} %install rm -rf $RPM_BUILD_ROOT make install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/tk%{majorver} ln -s wish%{majorver} %{buildroot}%{_bindir}/wish # for linking with -ltk ln -s libtk%{majorver}.so %{buildroot}%{_libdir}/libtk.so mkdirhier %buildroot/%{_includedir}/tk-private/{generic,unix} cp -p generic/{default,tkInt,tkIntDecls,tkPort}.h %buildroot/%{_includedir}/tk-private/generic cp -p unix/tkUnix{Default,Port}.h %buildroot/%{_includedir}/tk-private/unix # Fix up the include files. cp generic/*.h $RPM_BUILD_ROOT%{_includedir}/tk-private/generic cp unix/*.h $RPM_BUILD_ROOT%{_includedir}/tk-private/unix # remove buildroot traces perl -pi -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/tk-private|" %buildroot/%{_libdir}/tkConfig.sh %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %files %defattr(-,root,root,-) %doc %{_bindir}/wish* %{_datadir}/tk%{majorver} %{_libdir}/libtk%{majorver}.so %{_libdir}/tk%{majorver} %{_libdir}/tkConfig.sh %{_mandir}/man1/* %{_includedir}/* %{_libdir}/libtk.so %{_libdir}/libtkstub%{majorver}.a %{_mandir}/man3/* %{_mandir}/mann/* %changelog * Tue Jun 29 2010 Shu KONNO 8.4.19-2 - rebuilt with tcl-8.4.19-2 - dropt Patch4: tk-8.4.18-tkBind.patch * Tue Jun 09 2009 Daisuke SUZUKI 8.4.19-1 - new upstream release - add Patch3,4 to fix bug (broken if built with xproto-7.x) * Mon Jun 08 2009 Daisuke SUZUKI 8.4.18-2 - spec in utf-8 * Mon May 12 2008 2008 Daisuke SUZUKI 8.4.18-1 - rebuild with xorg-x11-7.3 - remove Requires: XFree86-libs - add BuildRequires: libX11-devel - use autoconf instead of autoconf217 * Sun Feb 17 2008 Shu KONNO 8.4.18-0vl1 - updated tk to 8.4.18 - included CVE-2008-0553 * Mon Oct 08 2007 Shu KONNO 8.4.16-0vl1 - updated tk to 8.4.16 * Wed Jun 13 2007 Shu KONNO 8.4.15-0vl1 - updated tk to 8.4.15 - rebuilt with new toolchain * Wed May 10 2006 IWAI, Masaharu 8.4.13-0vl1 - updated tk to 8.4.13 * Sat Jan 28 2006 Shu KONNO 8.4.12-0vl1 - updated tk to 8.4.12 - updated tk-%%{version}-lib-perm.patch * Fri Sep 09 2005 Shu KONNO 8.4.11-0vl1 - dropped tk-8.3.5-tclm4-soname.patch (fixed tcl.m4) - replaced tk-8.4.4-lib-perm.patch with tk-8.4.11-lib-perm.patch - dropped tk-8.4.5-no_rpath.patch (fixed tcl.m4) - dropped tk-8.4.6-tkUnixWm.patch (fixed invalid 118n title) * Sat Jun 11 2005 Shu KONNO 8.4.6-0vl2 - added tk-8.4.6-tkUnixWm.patch * Thu Jun 24 2004 Shu KONNO 8.4.6-0vl1 - updated tk to 8.4.6 * Mon Jan 12 2004 KOBAYASHI R. Taizo 8.4.5-3vl2 - syncd with fedora * Fri Dec 12 2003 Jens Petersen - 8.4.5-3 - add private header files needed to build tix in /usr/include/tk-private * Mon Dec 1 2003 Thomas Woerner 8.4.5-2 - removed rpath (patch 3) * Thu Nov 27 2003 Jens Petersen - 8.4.5-1 - new package split out from tcltk - update to tk 8.4.5 (#88429) - filtered changelog for tk - buildrequire autoconf213 (#110583) [mvd@mylinux.com.ua] - remove build remnants from tkConfig.sh * Tue Apr 01 2003 KOBAYASHI R. Taizo 8.4.2-0vl2 - fix buildrequires and requires section * Mon Mar 31 2003 KOBAYASHI R. Taizo 8.4.2-0vl1 - update based on BitWalk's tcltk-8.4.2-83bw * Thu Nov 15 2001 Kazuhusa TAKEI 8.0.5_jp-10vl3 - splite source package - add include files * Sun Jul 15 2001 Daisuke SUZUKI 8.0.5_jp-10vl2 - expand some macros.. (FIXME) * Sat Jul 14 2001 Daisuke SUZUKI 8.0.5_jp-10vl1 - use %configure macros - add Patch 47,50 * Thu May 31 2001 - 8.0.5_jp-10 - unexpand old %%{configure}, new one causes build failure - fixed missing libtkx.so libtclx.so symlink in /usr/lib - install manpages into %%{_mandir} and mode 644 * Wed Jul 19 2000 MATSUBAYASHI 'Shaolin' Kohji - 8.0.5_jp-9 - modified %install section to handle compressed man pages - fixed /usr/lib/tk8.0jp/demos.jp/images symlink * Sun Jul 2 2000 Daisuke SUZUKI - changed default fonts * Tue Jan 25 2000 Jun Nishii - added defattr * Mon Jan 24 2000 Jun Nishii - added some symlinks, such as libtcl8.0.so. - obsoletes version number using _jp, now 8.0.5-31vl1 * Wed Jan 5 2000 Norihito Ohmori - Apply Tcl/Tk 8.0 Japanese Patch 1.7 * Tue Nov 30 1999 Jakub Jelinek - fix tclX symlinks. - compile on systems where SIGPWR == SIGLOST. * Sat May 1 1999 Jeff Johnson - update tcl/tk to 8.0.5. - avoid "containing" in Tix (#2332). * Thu Apr 8 1999 Jeff Johnson - use /usr/bin/write in kibitz (#1320). - use cirrus.sprl.umich.edu in weather (#1926). * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 28) * Mon Mar 08 1999 Preston Brown - whoops, exec-prefix for itcl was set to '/foo', changed to '/usr'. * Tue Feb 16 1999 Jeff Johnson - expect does unaligned access on alpha (#989) - upgrade tcl/tk/tclX to 8.0.4 - upgrade expect to 5.28. - add itcl 3.0.1 * Tue Jan 12 1999 Cristian Gafton - call libtoolize to allow building on the arm - build for glibc 2.1 - strip binaries * Thu Sep 10 1998 Jeff Johnson - update tcl/tk/tclX to 8.0.3, expect is updated also. * Mon Jun 29 1998 Jeff Johnson - expect: mkpasswd needs delay before sending password (problem #576) * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Sat May 02 1998 Cristian Gafton - fixed expect binaries exec permissions * Thu Apr 09 1998 Erik Troan - updated to Tix 4.1.0.006 - updated version numbers of tcl/tk to relflect includsion of p2 * Wed Mar 25 1998 Cristian Gafton - updated tcl/tk to patch level 2 - updated tclX to 8.0.2 * Thu Oct 30 1997 Otto Hammersmith - fixed filelist for tix... replacing path to the expect binary in scripts was leaving junk files around. * Wed Oct 22 1997 Otto Hammersmith - added patch to remove libieee test in configure.in for tcl and tk. Shoudln't be needed anymore for glibc systems, but this isn't the "proper" solution for all systems - fixed src urls * Mon Oct 06 1997 Erik Troan - removed version numbers from descriptions * Mon Sep 22 1997 Erik Troan - updated to tcl/tk 8.0 and related versions of packages * Tue Jun 17 1997 Erik Troan - built against glibc - fixed dangling tclx/tkx symlinks