%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} Name: memchan Version: 2.3 Release: 24%{?dist} Summary: In-memory channels for Tcl # All files MIT except isaac/rand.h and isaac/randport.c which # are public domain. License: MIT and Public Domain URL: http://memchan.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/Memchan%{version}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: tcl-devel, tcllib Requires: tcl(abi) = 8.6 %description Memchan is an extension library to the script language Tcl, as created by John Ousterhout. It provides several new channel types for in-memory channels and the appropriate commands for their creation. %package devel Summary: Development files for compiling against the Tcl memchan extension Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for compiling against the Tcl memchan extension %prep %setup -q -n Memchan%{version} %build %configure --enable-threads --libdir=%{tcl_sitearch} make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} # Remove a man page that conflicts with tclib rm -f %{buildroot}%{_mandir}/mann/random.n # Remove +x perm on stub library chmod -x %{buildroot}%{tcl_sitearch}/Memchan%{version}/*.a %check make test %files %doc ChangeLog %license doc/license.terms %{_mandir}/mann/*.gz %dir %{tcl_sitearch}/Memchan%{version} %{tcl_sitearch}/Memchan%{version}/*.so %{tcl_sitearch}/Memchan%{version}/*.tcl %files devel %{_includedir}/*.h # Please note: This is not a traditional static library. # This is the stub library for linking against memchan. Tcl stub libraries # are a cross-platform cross-compiler way of performing dynamic linking. So even # though it's a static library, it's really used for dynamic linking: # http://wiki.tcl.tk/285 %{tcl_sitearch}/Memchan%{version}/*.a %changelog * Thu Jul 21 2022 Fedora Release Engineering - 2.3-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 2.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.3-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 2.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 2.3-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 2.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 19 2016 Tom Callaway - 2.3-10 - spec file cleanups * Wed Jun 17 2015 Fedora Release Engineering - 2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 2.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jun 16 2014 Tom Callaway - 2.3-7 - update tcl requirement to 8.6 * Sat Jun 07 2014 Fedora Release Engineering - 2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 21 2014 Jaroslav Škarvada - 2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86 * Sat Aug 03 2013 Fedora Release Engineering - 2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 21 2012 Tom Callaway - 2.3-1 - package revival and cleanup - update to 2.3 * Tue Feb 08 2011 Fedora Release Engineering - 2.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 25 2009 Fedora Release Engineering - 2.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 2.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 10 2009 Wart - 2.2.1-5 - Remove man page conflicting with tcllib * Sat Feb 9 2008 Wart - 2.2.1-4 - Rebuild for gcc 4.3 - Better download url - Install into new directory for tcl 8.5 * Mon Aug 20 2007 Wart - 2.2.1-3 - License tag clarification * Wed Nov 29 2006 Wart - 2.2.1-2 - Fix unowned directory * Mon Nov 27 2006 Wart - 2.2.1-1 - Initial package for Fedora