%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitelib: %global tcl_sitelib %{_datadir}/tcl%{tcl_version}} Name: bwidget Version: 1.10.1 Release: 1%{?dist} Summary: Extended widget set for Tk License: TCL URL: http://tcllib.sourceforge.net/ Source0: http://downloads.sourceforge.net/tcllib/%{name}-%{version}.tar.gz BuildArch: noarch Requires: tcl(abi) = 9.0 tk BuildRequires: tcl %description An extended widget set for Tcl/Tk. %prep %setup -q %{__sed} -i 's/\r//' LICENSE.txt %build # Nothing to build! %install # Don't bother with the included configure script and Makefile. They # are missing a lot of pieces and won't work at all. Installation is # pretty simple, so we can just do it here manually. mkdir -p %{buildroot}%{tcl_sitelib}/%{name}%{version}/ mkdir %{buildroot}%{tcl_sitelib}/%{name}%{version}/lang mkdir %{buildroot}%{tcl_sitelib}/%{name}%{version}/images install -m 0644 -pD *.tcl %{buildroot}%{tcl_sitelib}/%{name}%{version}/ install -m 0644 -pD lang/*.rc %{buildroot}%{tcl_sitelib}/%{name}%{version}/lang/ install -m 0644 -pD images/*.gif images/*.xbm %{buildroot}%{tcl_sitelib}/%{name}%{version}/images/ chmod -x BWman/*.html chmod -x *.txt %check %files %{tcl_sitelib}/%{name}%{version} %license LICENSE.txt %doc README.txt %doc BWman/*.html %changelog * Sun Feb 9 2025 Pappy Packager - 1.10.1-1 - Update to 1.10.1 * Thu Jan 16 2025 Fedora Release Engineering - 1.9.7-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild