[packages/libpthread_workqueue] - new

qboosh qboosh at pld-linux.org
Sat Sep 14 17:10:39 CEST 2013


commit a4bcd11ae9d09fb51dd4425c3e0c8b354b992335
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 14 17:10:41 2013 +0200

    - new

 libpthread_workqueue.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)
---
diff --git a/libpthread_workqueue.spec b/libpthread_workqueue.spec
new file mode 100644
index 0000000..7c27a8e
--- /dev/null
+++ b/libpthread_workqueue.spec
@@ -0,0 +1,94 @@
+Summary:	Thread pool for libdispatch
+Summary(pl.UTF-8):	Pula wątkow dla libdispatch
+Name:		libpthread_workqueue
+Version:	0.8.2
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/libpwq/%{name}-%{version}.tar.gz
+# Source0-md5:	20a31adf78d205a801ad5d9b19ee33a0
+URL:		http://sourceforge.net/projects/libpwq/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libpthread_workqueue is a portable implementation of the
+pthread_workqueue API first introduced in Mac OS X. It is primarily
+intended for use with libdispatch but can be used as a general purpose
+thread pool library for C programs.
+
+
+%description -l pl.UTF-8
+libpthread_workqueue to przenośna implementacja API pthread_workqueue,
+które pojawiło się po raz pierwszy w systemie Mac OS X. Głównym celem
+jest użycie w libdispatch, ale może być używana jako ogólna biblioteka
+wątków dla programów w języku C.
+
+%package devel
+Summary:	Header files for libpthread_workqueue library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libpthread_workqueue
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for libpthread_workqueue library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libpthread_workqueue.
+
+%package static
+Summary:	Static libpthread_workqueue library
+Summary(pl.UTF-8):	Statyczna biblioteka libpthread_workqueue
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libpthread_workqueue library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libpthread_workqueue.
+
+%prep
+%setup -q
+
+%build
+# NOTE: not autoconf configure
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags} -Iinclude -Isrc" \
+CPPFLAGS="%{rpmcppflags}" \
+LDFLAGS="%{rpmldflags}" \
+./configure \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir}
+%{__make}
+
+%{__make} libpthread_workqueue.a
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install libpthread_workqueue.a $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog
+%attr(755,root,root) %{_libdir}/libpthread_workqueue.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpthread_workqueue.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpthread_workqueue.so
+%{_includedir}/pthread_workqueue.h
+%{_mandir}/man3/pthread_workqueue.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libpthread_workqueue.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpthread_workqueue.git/commitdiff/a4bcd11ae9d09fb51dd4425c3e0c8b354b992335



More information about the pld-cvs-commit mailing list