2006-12-19 00:18:05 +01:00
|
|
|
#
|
2009-11-23 11:01:45 +01:00
|
|
|
# spec file for package tk (Version 8.5.8)
|
2006-12-19 00:18:05 +01:00
|
|
|
#
|
2009-01-09 02:05:10 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-06 04:03:20 +02:00
|
|
|
|
2006-12-19 00:18:05 +01:00
|
|
|
Name: tk
|
2008-04-06 04:03:20 +02:00
|
|
|
BuildRequires: tcl-devel xorg-x11-devel
|
|
|
|
Url: http://www.tcl.tk
|
2009-11-23 11:01:45 +01:00
|
|
|
Version: 8.5.8
|
|
|
|
Release: 1
|
2006-12-19 00:18:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: Graphical User Interface Toolkit for Tcl
|
2009-06-19 02:52:38 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2006-12-19 00:18:05 +01:00
|
|
|
Group: Development/Languages/Tcl
|
2008-04-06 04:03:20 +02:00
|
|
|
AutoReqProv: on
|
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
|
|
|
|
Provides: wish wish8.4
|
2008-04-06 04:03:20 +02:00
|
|
|
Requires: tcl >= %version
|
|
|
|
PreReq: /bin/rm
|
2007-06-07 13:16:37 +02:00
|
|
|
Source0: %name%{version}-src.tar.bz2
|
2008-04-06 04:03:20 +02:00
|
|
|
Source1: tk-rpmlintrc
|
|
|
|
Source2: baselibs.conf
|
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
|
|
|
|
Group: Development/Libraries/Tcl
|
2009-06-19 02:52:38 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2006-12-19 00:18:05 +01:00
|
|
|
Summary: Header Files and C API Documentation for Tk
|
2008-12-15 15:10:26 +01:00
|
|
|
Requires: tk = %version
|
|
|
|
Requires: tcl-devel
|
|
|
|
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
|
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
|
2008-04-06 04:03:20 +02:00
|
|
|
make %{?jobs:-j%jobs} \
|
|
|
|
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
|
2006-12-19 00:18:05 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
%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
|
2006-12-19 00:18:05 +01:00
|
|
|
%_libdir/*.a
|
|
|
|
%_libdir/tkConfig.sh
|
|
|
|
|
2007-06-07 13:16:37 +02:00
|
|
|
%changelog
|