Name: tk-table Version: 2.10.8 Release: 1%{?dist} Summary: Table/grid widget for Tk License: TCL URL: https://github.com/wjoye/tktable Source0: https://github.com/wjoye/tktable/archive/refs/tags/v%{version}/tktable-%{version}.tar.gz # Set the package name to the historical "Tktable" (capital T) so that # `package require Tktable`, as used by DS9 and most other consumers, # resolves. Carried over from Debian's tk-table packaging (Debian # Astro Team / Ole Streicher). Patch0: tk-table-0001-package-name-Tktable.patch BuildRequires: gcc BuildRequires: make BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: tcl8-devel BuildRequires: tk8-devel Requires: tcl(abi) = 8.6 %description Tktable provides support for tables and matrices in Tcl/Tk: multi-line cells, embedded windows, row/column spanning, resizable rows and columns, multiple data sources, in-cell editing, cell validation, and more. This is one of the extra Tcl/Tk packages that SAOImage DS9 bundles in-tree; this build lets DS9 use a system-installed tk-table instead. %prep %autosetup -p1 -n tktable-%{version} %build autoreconf -fiv # Tktable is K&R-era C: under GCC 16's default C23, 'bool' is a keyword (tkTable.c:3800) and # mismatched callback types are errors. Build it as the C it was written in. export CFLAGS="%{build_cflags} -std=gnu17 -Wno-error=incompatible-pointer-types" %configure --libdir=%{_libdir}/tcltk --enable-threads --enable-shared \ --with-tcl=%{_libdir}/tcl8.6 --with-tk=%{_libdir} --enable-symbols %make_build %install %make_install # TEA installs the module mode 644, which rpm's debuginfo extraction skips: 'Empty %files file # debugsourcefiles.list'. Shared objects are 755 anyway. find %{buildroot} -name '*.so' -exec chmod 755 {} + find %{buildroot} -name '*.a' -delete find %{buildroot} -name 'tktableConfig.sh' -delete %files %license license.txt %doc README.md README.blt %{_libdir}/tcltk/Tktable2.10/ %{_mandir}/mann/tkTable.n* %changelog * Wed Aug 26 2026 Morgan Hough - 2.10.8-1 - Initial package for the neurofedora COPR: one of the extra Tcl/Tk packages SAOImage DS9 bundles in-tree (upstream tracked at github.com/wjoye/tktable, the DS9 author's fork used by Debian's saods9 packaging too).