%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}} Name: memchan Version: 2.3 Release: 1%{?dist} Summary: In-memory channels for Tcl Group: Development/Libraries # 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/sourceforge/%{name}/Memchan%{version}.tar.gz BuildRequires: tcl-devel, tcllib Requires: tcl(abi) = 8.5 %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 Group: Development/Libraries 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 doc/license.terms ChangeLog %{_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 * 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