tk/tk.spec

155 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package tk
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: tk
BuildRequires: fontconfig-devel
BuildRequires: imake
BuildRequires: libX11-devel
BuildRequires: libXScrnSaver-devel
BuildRequires: libXft-devel
BuildRequires: libXt-devel
BuildRequires: pkg-config
BuildRequires: tcl-devel
- Version 8.6.10: * (bug)[0a9c91] crash in text-11a.22 * (bug)[9705d1] crash activating "Alt" theme * (bug)[e3b954] cursor offset at full screen display * (bug)[18a4ba] cross-platform [winfo containing] * (build) 'None', 'ControlMask' symbol conflicts * (bug)[509caf] [treeview tag configure] regression * (bug)[3003895] [scale] res rounds and -from * (new)[TIP 533] [$mb post x y idx] * (bug)[1529659] embed toplevel blocks outer menu * (bug)[8814bd] crash in [NSMenu size] * (bug)[1951ab] Prevent transient window cycles (crashed on Aqua) *** POTENTIAL INCOMPATIBILITY *** * (bug)[4da219] Incomplete read of multi-image GIF * (new)[TIP 535] Precision of ::scale widget tick mark values *** POTENTIAL INCOMPATIBILITY *** * (bug)[da3914] [$treeview identify element] failure * (bug)[897ffe] Prevent cross-manager loops of geom management * (bug)[368fa4] Prevent toggle of hidden treeview indicators * (bug)[928652] Apply TIP 533 for ttk::menubutton * (bug)[1001070] X-platform rework of label options -highlight* * (bug)[6286fd] checkbutton handling of -selectcolor * (bug) Ttk scrolling bugs, see tests treeview-9.1, entry-3.[3-6] * (new)[TIP 541] [combobox current] support "end" index * (bug)[2a6c62] <<TreeviewSelect>> trigger on item delete * (bug)[75b8fb] Crash with some [event generate]d <ButtonRelease> * (bug)[5ddeca] Stop app switching exposing withdrawn windows as zombies * (new) Refactor all MouseWheel bindings *** POTENTIAL INCOMPATIBILITY *** * (bug)[c8ccd1] up array key in [text] takes to index 1.0 * (new)[TIP 532] Tk event loop rewrite to prevent ring overflow *** POTENTIAL INCOMPATIBILITY *** * (bug)[2834776] Stop disabled spinbox from generating <<Increment>> & <<Decrement>> * (bug)[a01b6f7] Workaround XWayland bug reporting screen width * (bug)[b82bd4] Fix [style configure -compound] * (bug)[69b48f] failing test textTag-18.1 * (bug)[c4abd2] panic in stackorder command * (bug)[53d280] [wm iconphoto] crash on empty image * [90d555] workaround NSFontManager bad selections * (new) Partial Emoji support in text displays - tk-8.5.12-fix-xft.patch is not needed anymore. OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tk?expand=0&rev=74
2019-12-03 17:08:16 +01:00
URL: http://www.tcl.tk
- New version 8.6.13: * (new)[TIP 599] Extended build information * (bug)[440c52] fix PPM/PGM read with graylevel > 255 * (bug)[5fb814] canvas redraw region for lines/polygones * (new)[631a0b] text widget: direct mouse events to insert mark, not current * (bug)[b164ef] fix mouse events for multiple toplevels * (bug)[be8f5b] crash setting -type empty for a menu * (bug)[50fc02,50fc02,25894d,156e58] ImgPhoto pointer issues * (bug)[617861] -justify/-anchor defaults for ttk::label * (bug)[40bc81] embedding error test failure * (bug)[b1d115] No <Enter> event on new toplevel on current toplevel destruction * (bug)[3fefb3] crash in empty ttk::combobox when end index requested * (new)[247d80] Chinese message file * (bug)[e331bc] NULL to memset in photo blank * (bug)[864b06] PNG photo image color numeric issue * (bug)[f75190] tk_fontchooser: multiple font families, locale change, button activation * (bug)[ce6b42] (in TCL bug tracker) ttk::spinbox increment event endless invokation * (bug)[2a6c62] Avoid invalid <<TreeviewSelect>> * (new)[f47920] Updates to Finnish message catalog * (bug)[29b5c2] error in tk_popup with separator entry selected * (bug)[415415] scale advances multiple steps on single click * (bug)[dc4c55] tk_popup entry index * (bug)[c0bf1b] XVirtualEvent buffer overflows * (bug)[eedd79] potential crashes in option parsing when sizeof(enum) not equal to int * (bug)[0ce975] panedwindow calls memcpy with NULL pointer OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tk?expand=0&rev=92
2022-11-23 17:54:47 +01:00
Version: 8.6.13
Release: 0
%define rrc %{nil}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Graphical User Interface Toolkit for Tcl
License: TCL
Group: Development/Languages/Tcl
Obsoletes: tkcon < 2.7
Provides: tkcon = 2.7
# bug437293
%ifarch ppc64
Obsoletes: tk-64bit
%endif
#
Provides: wish
Provides: wish8.6
Requires: tcl >= %version
Requires: xhost
PreReq: /bin/rm
Source0: http://prdownloads.sourceforge.net/tcl/%name%{version}%{rrc}-src.tar.gz
Source1: tk-rpmlintrc
Source2: baselibs.conf
Source3: http://tkcon.cvs.sourceforge.net/tkcon/tkcon/tkcon.tcl
%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
Group: Development/Libraries/Tcl
Requires: tcl-devel
Requires: tk = %version
Requires: xorg-x11-libX11-devel
# bug437293
%ifarch ppc64
Obsoletes: tk-devel-64bit
%endif
#
%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>
%define TK_MINOR %(echo %version | cut -c1-3)
%define scriptdir %(echo 'puts -nonewline [file dirname $tcl_library]' | tclsh)/tk%TK_MINOR
%prep
%setup -q -n %name%version
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
cd unix
%configure \
--with-tcl=%_libdir \
--enable-threads \
--enable-man-symlinks \
--enable-man-compression=gzip
make %{?_smp_mflags} \
TK_LIBRARY="%scriptdir" \
TK_PKG_DIR="tcl/tk%TK_MINOR"
%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
make -C unix install install-private-headers \
INSTALL_ROOT=%buildroot \
TK_LIBRARY="%scriptdir" \
TK_PKG_DIR="tcl/tk%TK_MINOR"
ln -sf wish%TK_MINOR %buildroot%_prefix/bin/wish
ln -sf wish.1.gz %buildroot%_mandir/man1/wish%TK_MINOR.1.gz
install -m 0755 %{S:3} %buildroot%_bindir/tkcon
# The information in TK_LIBS is not needed for shared libraries
# and we don't support static linking.
sed -i "/^TK_LIBS=/s/'.*'$//" %buildroot%_libdir/tkConfig.sh
sed -i "/^Libs.private: /s/ .*$//" %buildroot%_libdir/pkgconfig/tk.pc
%if "%_lib" == "lib64"
%post
test -L /usr/lib/tk%TK_MINOR && rm -f /usr/lib/tk%TK_MINOR
exit 0
%endif
%files
%defattr(-,root,root)
- Version 8.6.10: * (bug)[0a9c91] crash in text-11a.22 * (bug)[9705d1] crash activating "Alt" theme * (bug)[e3b954] cursor offset at full screen display * (bug)[18a4ba] cross-platform [winfo containing] * (build) 'None', 'ControlMask' symbol conflicts * (bug)[509caf] [treeview tag configure] regression * (bug)[3003895] [scale] res rounds and -from * (new)[TIP 533] [$mb post x y idx] * (bug)[1529659] embed toplevel blocks outer menu * (bug)[8814bd] crash in [NSMenu size] * (bug)[1951ab] Prevent transient window cycles (crashed on Aqua) *** POTENTIAL INCOMPATIBILITY *** * (bug)[4da219] Incomplete read of multi-image GIF * (new)[TIP 535] Precision of ::scale widget tick mark values *** POTENTIAL INCOMPATIBILITY *** * (bug)[da3914] [$treeview identify element] failure * (bug)[897ffe] Prevent cross-manager loops of geom management * (bug)[368fa4] Prevent toggle of hidden treeview indicators * (bug)[928652] Apply TIP 533 for ttk::menubutton * (bug)[1001070] X-platform rework of label options -highlight* * (bug)[6286fd] checkbutton handling of -selectcolor * (bug) Ttk scrolling bugs, see tests treeview-9.1, entry-3.[3-6] * (new)[TIP 541] [combobox current] support "end" index * (bug)[2a6c62] <<TreeviewSelect>> trigger on item delete * (bug)[75b8fb] Crash with some [event generate]d <ButtonRelease> * (bug)[5ddeca] Stop app switching exposing withdrawn windows as zombies * (new) Refactor all MouseWheel bindings *** POTENTIAL INCOMPATIBILITY *** * (bug)[c8ccd1] up array key in [text] takes to index 1.0 * (new)[TIP 532] Tk event loop rewrite to prevent ring overflow *** POTENTIAL INCOMPATIBILITY *** * (bug)[2834776] Stop disabled spinbox from generating <<Increment>> & <<Decrement>> * (bug)[a01b6f7] Workaround XWayland bug reporting screen width * (bug)[b82bd4] Fix [style configure -compound] * (bug)[69b48f] failing test textTag-18.1 * (bug)[c4abd2] panic in stackorder command * (bug)[53d280] [wm iconphoto] crash on empty image * [90d555] workaround NSFontManager bad selections * (new) Partial Emoji support in text displays - tk-8.5.12-fix-xft.patch is not needed anymore. OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tk?expand=0&rev=74
2019-12-03 17:08:16 +01:00
%doc README.md changes license.terms ChangeLog*
%docdir %_mandir/mann
%doc %_mandir/man1/*
%doc %_mandir/mann/*
%_prefix/bin/*
%_libdir/*.so
%scriptdir
%exclude %scriptdir/tkAppInit.c
%files devel
%defattr(-,root,root)
%doc %_mandir/man3/*
%_prefix/include/*
%scriptdir/tkAppInit.c
%attr(0644,root,root) %_libdir/*.a
%_libdir/tkConfig.sh
%_libdir/pkgconfig/*
%changelog