Name: tkcon Version: 2.7.11 Release: 1%{?dist} Summary: Enhanced interactive console for developing in Tcl # Tcl-style license (Tcl + "bourbonware" clause), functionally BSD-like. License: TCL URL: https://github.com/wjoye/tkcon Source0: https://github.com/wjoye/tkcon/archive/refs/tags/v%{version}/tkcon-%{version}.tar.gz BuildArch: noarch BuildRequires: tcl Requires: tk %description TkCon is a Tcl shell and console, making it ideal for experimenting with Tcl and Tk programs interactively. Features include command history, path/proc/variable name expansion, multiple independent consoles, captured stdout/stderr, clickable stack traces on errors, and electric character/proc matching. This is one of the extra Tcl/Tk packages that SAOImage DS9 bundles in-tree; this build lets DS9 (and other Tcl applications) use a system-installed tkcon instead. %prep %autosetup -n tkcon-%{version} # Upstream's internal VERSION string in tkcon.tcl was not bumped for the # v%{version} tag; use it (rather than the tag) for the package version # actually reported by `package provide`, same as Debian's tkcon packaging. echo "$(grep 'variable VERSION' tkcon.tcl | grep -o '[0-9.]\+')" > .tkcon_internal_version %build # Nothing to compile; tkcon is pure Tcl. %install v=$(cat .tkcon_internal_version) install -d -m 755 %{buildroot}%{_datadir}/tcltk/tkcon-$v install -p -m 644 tkcon.tcl %{buildroot}%{_datadir}/tcltk/tkcon-$v/tkcon.tcl install -p -m 644 pkgIndex.tcl %{buildroot}%{_datadir}/tcltk/tkcon-$v/pkgIndex.tcl sed -i -e "s/tkcon [0-9.]\+/tkcon $v/" %{buildroot}%{_datadir}/tcltk/tkcon-$v/pkgIndex.tcl install -d -m 755 %{buildroot}%{_bindir} ln -s ../share/tcltk/tkcon-$v/tkcon.tcl %{buildroot}%{_bindir}/tkcon %files %license docs/license.terms %doc README.txt ChangeLog docs/*.html %{_bindir}/tkcon %{_datadir}/tcltk/tkcon-*/ %changelog * Wed Aug 26 2026 Morgan Hough - 2.7.11-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/tkcon, the DS9 author's fork used by Debian's saods9 packaging too).