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
|
|
|
#
|
2020-11-02 11:06:30 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2018-12-12 18:13:03 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:18:05 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: tk
|
2019-01-28 17:48:30 +01:00
|
|
|
BuildRequires: fontconfig-devel
|
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
|
2019-12-03 17:08:16 +01:00
|
|
|
URL: http://www.tcl.tk
|
|
|
|
Version: 8.6.10
|
2012-02-14 14:54:25 +01:00
|
|
|
Release: 0
|
2019-12-03 17:08:16 +01:00
|
|
|
%define rrc %nil
|
2006-12-19 00:18:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: Graphical User Interface Toolkit for Tcl
|
2017-09-13 18:59:59 +02:00
|
|
|
License: TCL
|
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
|
|
|
|
#
|
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
|
2017-09-13 18:50:13 +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
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%build
|
2019-07-23 08:59:20 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
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="%scriptdir" \
|
|
|
|
TK_PKG_DIR="tcl/tk%TK_MINOR"
|
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="%scriptdir" \
|
|
|
|
TK_PKG_DIR="tcl/tk%TK_MINOR"
|
|
|
|
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
|
|
|
|
2020-11-02 11:06:30 +01:00
|
|
|
%if "%_lib" == "lib64"
|
2006-12-19 00:18:05 +01:00
|
|
|
|
|
|
|
%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)
|
2019-12-03 17:08:16 +01:00
|
|
|
%doc README.md changes license.terms ChangeLog*
|
2006-12-19 00:18:05 +01:00
|
|
|
%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
|