Name: tclxml Version: 3.2.7 # The Tcl package directory is major.minor (tclxml3.2), not the full version. %global tclpkgver %(echo %{version} | cut -d. -f1-2) Release: 1%{?dist} Summary: Tcl library for XML parsing # The wjoye/tclxml GitHub repository Debian's own packaging tracks has since # disappeared upstream; source0 below is Debian's own orig tarball mirror, # which is the same 3.2.7 source (originally from Explain's TclXML project, # http://tclxml.sourceforge.net/) that Debian has packaged unchanged since. License: HPND URL: http://tclxml.sourceforge.net/ Source0: https://deb.debian.org/debian/pool/main/t/tclxml/tclxml_%{version}.orig.tar.gz#/tclxml-%{version}.tar.gz # Small portability/build-system patches carried over from Debian's tclxml # packaging (Tcl/Tk Debian Packagers / Ole Streicher). Patch0: tclxml-0001-libs-xml2-xslt.patch Patch1: tclxml-0002-build-stub-library.patch Patch2: tclxml-0003-rename-bool-to-boolean.patch Patch3: tclxml-0004-fix-libxml-error-handler-decl.patch BuildRequires: gcc BuildRequires: make BuildRequires: tcl8-devel BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: tcllib Requires: tcl(abi) = 8.6 Requires: tcllib %description TclXML provides event-based (SAX-style) and tree-based (DOM) parsing of XML documents, with libxml2 and libxslt as the underlying parser and XSLT processor. This is one of the extra Tcl/Tk packages that SAOImage DS9 bundles in-tree (used for VOTable and SAMP support); this build lets DS9 use a system-installed tclxml instead. %package devel Summary: Development files for tclxml Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Files needed for C development against the tclxml stub library. %prep %autosetup -p1 -n tclxml-%{version} %build %configure --libdir=%{_libdir}/tcltk --enable-stubs --enable-symbols \ --with-tcl=%{_libdir}/tcl8.6 \ --with-xml2-config=/usr/bin/xml2-config \ --with-xslt-config=/usr/bin/xslt-config %make_build %install %make_install find %{buildroot} -name '*.a' -a ! -name '*stub*' -delete find %{buildroot} -name 'tclxmlConfig.sh' -delete %files %license LICENSE %doc README.md ChangeLog %{_libdir}/tcltk/tclxml%{tclpkgver}/ %exclude %{_libdir}/tcltk/tclxml%{tclpkgver}/*stub*.a %files devel %{_libdir}/tcltk/tclxml%{tclpkgver}/*stub*.a %changelog * Wed Aug 26 2026 Morgan Hough - 3.2.7-1 - Initial package for the neurofedora COPR: one of the extra Tcl/Tk packages SAOImage DS9 bundles in-tree. Upstream's GitHub mirror (wjoye/tclxml, tracked by Debian's watch file) has since disappeared; sourced from Debian's own orig tarball mirror instead. Build-system patches (link against libxml2/libxslt, build the stub library, C23 bool-keyword rename, libxml2 error-handler prototype fix) carried over from Debian's tclxml packaging.