SPECS: libpthread-stubs.spec (NEW) - new

arekm arekm at pld-linux.org
Fri Nov 24 11:55:43 CET 2006


Author: arekm                        Date: Fri Nov 24 10:55:43 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   libpthread-stubs.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/libpthread-stubs.spec
diff -u /dev/null SPECS/libpthread-stubs.spec:1.1
--- /dev/null	Fri Nov 24 11:55:43 2006
+++ SPECS/libpthread-stubs.spec	Fri Nov 24 11:55:38 2006
@@ -0,0 +1,54 @@
+# $Revision$, $Date$
+Summary:	pthread library helper
+Name:		libpthread-stubs
+Version:	0.1
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
+# Source0-md5:	774eabaf33440d534efe108ef9130a7d
+URL:		http://xcb.freedesktop.org/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides weak aliases for pthread functions not provided
+in libc or otherwise available by default. Libraries like libxcb rely
+on pthread stubs to use pthreads optionally, becoming thread-safe when
+linked to libpthread, while avoiding any performance hit when running
+single-threaded. libpthread-stubs supports this behavior even on
+platforms which do not supply all the necessary pthread stubs. On
+platforms which already supply all the necessary pthread stubs, this
+package ships only the pkg-config file pthread-stubs.pc, to allow
+libraries to unconditionally express a dependency on pthread-stubs and
+still obtain correct behavior.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{_pkgconfigdir}/*.pc
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/11/24 10:55:38  arekm
+- new
+
================================================================


More information about the pld-cvs-commit mailing list