%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitearch: %global tcl_sitearch %{_datadir}/tcl%{tcl_version}} Name: tcl-critcl Version: 3.1.15 Release: 2%{?dist} Summary: Compiled Runtime In Tcl BuildArch: noarch License: BSD URL: http://wiki.tcl.tk/2523 Source0: https://github.com/andreas-kupries/critcl/archive/%{version}.tar.gz BuildRequires: tcl Provides: critcl = %{version}-%{release} Requires: tcl(abi) = 8.6, tcllib %description Tcl package that provides on-the-fly compilation and execution of C code. A system to build C extension packages for Tcl on the fly, from C code embedded within Tcl scripts, for all who wish to make their code go faster. #-- %package doc Summary: Documentation for Compiled Runtime In Tcl Group: Documentation BuildArch: noarch %description doc Documentation and also examples about critcl. #-- %prep %setup -q -n critcl-%{version} %{__sed} -i -e '265 s#dsta .*#dsta %{buildroot}%{_bindir}#' build.tcl %install tclsh build.tcl install %{buildroot}%{tcl_sitearch} %{__install} -d %{buildroot}%{_mandir}/mann %{__install} --mode=444 embedded/man/files/critcl_* %{buildroot}%{_mandir}/mann %files %doc README.md %license license.terms %{tcl_sitearch}/* %{_bindir}/critcl %{_mandir}/mann/* %files doc %doc examples embedded/www %changelog * Fri Mar 03 2017 Gerd Pokorra 3.1.15-2 - Group tag removed, Provides: critcl with version-release added - build the package as a noarch package * Thu Aug 11 2016 Gerd Pokorra 3.1.15-1 - create initial specfile