2006-12-19 00:18:05 +01:00
#
2011-03-09 09:26:40 +01:00
# spec file for package tk
2006-12-19 00:18:05 +01:00
#
2014-04-16 18:59:58 +02:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2006-12-19 00:18:05 +01:00
#
2008-09-13 12:22:13 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2006-12-19 00:18:05 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : tk
2012-10-05 15:32:49 +02:00
BuildRequires : imake
BuildRequires : libX11-devel
BuildRequires : libXScrnSaver-devel
BuildRequires : libXft-devel
BuildRequires : libXt-devel
BuildRequires : pkg-config
2012-02-14 14:54:25 +01:00
BuildRequires : tcl-devel
2008-04-06 04:03:20 +02:00
Url : http://www.tcl.tk
2013-09-10 11:15:42 +02:00
Version : 8.6.1
2012-02-14 14:54:25 +01:00
Release : 0
2013-09-20 10:07:57 +02:00
%define rrc %nil
2006-12-19 00:18:05 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
Summary : Graphical User Interface Toolkit for Tcl
2012-02-14 14:54:25 +01:00
License : BSD-3-Clause
2006-12-19 00:18:05 +01:00
Group : Development/Languages/Tcl
2013-06-20 15:13:42 +02:00
Obsoletes : tkcon < 2.7
Provides : tkcon = 2.7
2009-01-09 02:05:10 +01:00
# bug437293
%ifarch ppc64
Obsoletes : tk-64bit
%endif
#
2006-12-19 00:18:05 +01:00
Summary : Graphical User Interface Toolkit for Tcl
2012-02-14 14:54:25 +01:00
Group : Development/Languages/Tcl
2012-07-24 12:42:59 +02:00
Provides : wish
2013-08-08 17:46:11 +02:00
Provides : wish8.6
2008-04-06 04:03:20 +02:00
Requires : tcl >= %version
2013-10-22 15:28:00 +02:00
Requires : xhost
2008-04-06 04:03:20 +02:00
PreReq : /bin/rm
2013-08-08 17:46:11 +02:00
Source0 : ftp://ftp.tcl.tk/pub/tcl/tcl8_6/%name%{version} %{rrc} -src.tar.gz
2008-04-06 04:03:20 +02:00
Source1 : tk-rpmlintrc
Source2 : baselibs.conf
2013-06-20 15:13:42 +02:00
Source3 : http://tkcon.cvs.sourceforge.net/tkcon/tkcon/tkcon.tcl
2006-12-19 00:18:05 +01:00
Patch0 : %name.patch
2012-10-05 15:32:49 +02:00
Patch1 : tk-8.5.12-fix-xft.patch
2014-04-16 18:59:58 +02:00
# PATCH-FIX-UPSTREAM tk-fix-pkgconfig-file.patch badshah400@gmail.com -- Fix undefined token (@TK_LIBS@) in linker flag in pkgconfig file; patch sent upstream
Patch2 : tk-fix-pkgconfig-file.patch
2006-12-19 00:18:05 +01:00
%description
Tk is a graphical user interface toolkit that takes developing desktop
applications to a higher level than conventional approaches. Tk is the
standard GUI not only for Tcl, but for many other dynamic languages,
and can produce rich, native applications that run unchanged across
Windows, Mac OS X, Linux and more.
Authors:
--------
The Tcl Core Team <tcl-core@lists.sourceforge.net>
%package devel
Summary : Header Files and C API Documentation for Tk
2012-02-14 14:54:25 +01:00
Group : Development/Libraries/Tcl
2008-12-15 15:10:26 +01:00
Requires : tcl-devel
2012-07-24 12:42:59 +02:00
Requires : tk = %version
2008-12-15 15:10:26 +01:00
Requires : xorg-x11-libX11-devel
2009-01-09 02:05:10 +01:00
# bug437293
%ifarch ppc64
Obsoletes : tk-devel-64bit
%endif
#
2006-12-19 00:18:05 +01:00
%description devel
This package contains header files and documentation needed for writing
Tk extensions in compiled languages like C, C++, etc., or for embedding
Tk in programs written in such languages.
This package is not needed for writing extensions or applications for
Tk in the Tcl language itself.
Authors:
--------
The Tcl Core Team <tcl-core@lists.sourceforge.net>
2008-04-06 04:03:20 +02:00
%define TK_MINOR %(echo %version | cut -c1-3)
%define scriptdir %(echo 'puts -nonewline [file dirname $tcl_library]' | tclsh)/tk%TK_MINOR
2006-12-19 00:18:05 +01:00
%prep
%setup -q -n %name%version
%patch0
2012-10-05 15:32:49 +02:00
%patch1 -p1
2014-04-16 18:59:58 +02:00
%patch2 -p1
2006-12-19 00:18:05 +01:00
%build
2008-04-06 04:03:20 +02:00
cd unix
%configure \
2006-12-19 00:18:05 +01:00
--with-tcl=%_libdir \
--enable-threads \
--enable-man-symlinks \
--enable-man-compression=gzip
2012-08-09 15:06:20 +02:00
make %{?_smp_mflags} \
2008-04-06 04:03:20 +02:00
TK_LIBRARY=" % s c r i p t d i r " \
TK_PKG_DIR=" t c l / t k % T K _ M I N O R "
2006-12-19 00:18:05 +01:00
%install
# these renamings are needed to avoid some file name clashes with other packages
mv doc/menubar.n doc/tk_menubar.n
mv doc/dialog.n doc/tk_dialog.n
mv doc/panedwindow.n doc/tk_panedwindow.n
2009-06-19 02:52:38 +02:00
make -C unix install install-private-headers \
2008-04-06 04:03:20 +02:00
INSTALL_ROOT=%buildroot \
TK_LIBRARY=" % s c r i p t d i r " \
TK_PKG_DIR=" t c l / t k % T K _ M I N O R "
ln -sf wish%TK_MINOR %buildroot%_prefix /bin/wish
2011-11-08 18:37:11 +01:00
ln -sf wish%TK_MINOR.n.gz %buildroot%_mandir /mann/wish.n.gz
2013-06-20 15:13:42 +02:00
install -m 0755 %{S:3} %buildroot%_bindir /tkcon
2006-12-19 00:18:05 +01:00
%if %_lib == lib64
%post
2008-04-06 04:03:20 +02:00
test -L /usr/lib/tk%TK_MINOR && rm -f /usr/lib/tk%TK_MINOR
2006-12-19 00:18:05 +01:00
exit 0
%endif
%files
%defattr (-,root,root)
%doc README changes license.terms ChangeLog*
%docdir %_mandir /mann
%doc %_mandir /man1/*
%doc %_mandir /mann/*
%_prefix /bin/*
%_libdir /*.so
2008-04-06 04:03:20 +02:00
%scriptdir
%exclude %scriptdir/tkAppInit.c
2006-12-19 00:18:05 +01:00
%files devel
%defattr (-,root,root)
%doc %_mandir /man3/*
%_prefix /include/*
2008-04-06 04:03:20 +02:00
%scriptdir/tkAppInit.c
2013-06-20 14:30:26 +02:00
%attr (0644,root,root) %_libdir /*.a
2006-12-19 00:18:05 +01:00
%_libdir /tkConfig.sh
2013-06-20 14:30:26 +02:00
%_libdir /pkgconfig/*
2006-12-19 00:18:05 +01:00
2007-06-07 13:16:37 +02:00
%changelog