[memchan/f16] revive memchan, update to 2.3

Tom Callaway spot at fedoraproject.org
Fri Feb 24 20:37:01 UTC 2012


commit f21d8cecf388ded90cc488052acd8a3fae17dca5
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Fri Feb 24 15:37:00 2012 -0500

    revive memchan, update to 2.3

 memchan.spec |   49 +++++++++++++++++++++----------------------------
 sources      |    2 +-
 2 files changed, 22 insertions(+), 29 deletions(-)
---
diff --git a/memchan.spec b/memchan.spec
index ffad6a6..5362728 100644
--- a/memchan.spec
+++ b/memchan.spec
@@ -2,21 +2,16 @@
 %{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
 
 Name:           memchan
-Version:        2.2.1
-Release:        8%{?dist}
+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}/%{name}-%{version}.tar.gz
-Patch0:         memchan-2.2.1-configure.patch
-Patch1:         memchan-2.2.1-vpath.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  tcl-devel
+Source0:        http://downloads.sourceforge.net/%{name}/Memchan%{version}.tar.gz
+BuildRequires:  tcl-devel, tcllib
 Requires:       tcl(abi) = 8.5
 
 %description
@@ -27,52 +22,50 @@ the appropriate commands for their creation.
 %package devel
 Summary: Development files for compiling against the Tcl memchan extension
 Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
 %description devel
 Development files for compiling against the Tcl memchan extension
 
 %prep
-%setup -q
-%patch0
-%patch1
-
+%setup -q -n Memchan%{version}
 
 %build
 %configure --enable-threads --libdir=%{tcl_sitearch}
 make %{?_smp_mflags}
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=%{buildroot}
 
 # Remove a man page that conflicts with tclib
-rm -f $RPM_BUILD_ROOT%{_mandir}/mann/random.n
+rm -f %{buildroot}%{_mandir}/mann/random.n
+
+# Remove +x perm on stub library
+chmod -x %{buildroot}%{tcl_sitearch}/Memchan%{version}/*.a
 
 %check
 make test
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
-%doc doc/license.terms doc/*.html ChangeLog
+%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
-%defattr(-,root,root,-)
 %{_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 <spot at fedoraproject.org> - 2.3-1
+- package revival and cleanup
+- update to 2.3
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/sources b/sources
index ab0b052..8e01777 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-07ef0aabff7a980959aa1a07bc73a520  memchan-2.2.1.tar.gz
+d06525638370bfd7eb21b529135d930b  Memchan2.3.tar.gz


More information about the scm-commits mailing list