%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}} Summary: Collection of widgets and other packages for Tk Name: tklib Version: 0.6 Release: 1 License: TCL Group: Development/Libraries Source0: http://downloads.sourceforge.net/tcllib/%{name}-%{version}.tar.bz2 URL: http://core.tcl.tk/tklib/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: tcllib >= 1.18-1 BuildRequires: tk >= 8.6.6-1 Requires: tcl >= 8.6.6-1 Requires: tk >= 8.6.6-1 Requires: tcllib >= 1.18-1 %description This package is intended to be a collection of Tcl packages that provide Tk utility functions and widgets useful to a large collection of Tcl/Tk programmers. %prep %setup -q # Remove some execute permission bits on files that aren't executable # to suppress some rpmlint warnings. find . -name "*.tcl" -exec chmod a-x {} \; %build # nothing to build! %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %{_bindir}/tclsh installer.tcl -no-gui -no-wait -no-html -no-examples \ -pkg-path ${RPM_BUILD_ROOT}/%{tcl_sitelib}/%{name}-%{version} \ -app-path ${RPM_BUILD_ROOT}%{_bindir} \ -nroff-path ${RPM_BUILD_ROOT}%{_mandir}/mann %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc README* ChangeLog license.terms %{tcl_sitelib}/tklib* %{_mandir}/*/* %changelog * Mon Jan 09 2017 Michael Perzl - 0.6-1 - first version for AIX5L v5.1 and higher