[packages/libpthread_workqueue] - updated to 0.9 - added link patch (library needs -lpthread)
qboosh
qboosh at pld-linux.org
Mon Oct 21 17:23:25 CEST 2013
commit 706267bd6afdfb7752cf7f4c3a52a861c424b1a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Oct 21 17:22:52 2013 +0200
- updated to 0.9
- added link patch (library needs -lpthread)
libpthread_workqueue-link.patch | 10 ++++++++++
libpthread_workqueue.spec | 32 ++++++++++++++++----------------
2 files changed, 26 insertions(+), 16 deletions(-)
---
diff --git a/libpthread_workqueue.spec b/libpthread_workqueue.spec
index be7b0c3..9c8bcf4 100644
--- a/libpthread_workqueue.spec
+++ b/libpthread_workqueue.spec
@@ -1,13 +1,17 @@
Summary: Thread pool for libdispatch
Summary(pl.UTF-8): Pula wątkow dla libdispatch
Name: libpthread_workqueue
-Version: 0.8.2
+Version: 0.9
Release: 1
License: BSD
Group: Libraries
Source0: http://downloads.sourceforge.net/libpwq/%{name}-%{version}.tar.gz
-# Source0-md5: 20a31adf78d205a801ad5d9b19ee33a0
+# Source0-md5: 57910365f4741aaac533aa4344a21497
+Patch0: %{name}-link.patch
URL: http://sourceforge.net/projects/libpwq/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: libtool >= 2:2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -48,20 +52,17 @@ Statyczna biblioteka libpthread_workqueue.
%prep
%setup -q
+%patch0 -p1
%build
-# NOTE: not autoconf configure
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags} -Iinclude -Isrc" \
-CPPFLAGS="%{rpmcppflags}" \
-LDFLAGS="%{rpmldflags}" \
-./configure \
- --prefix=%{_prefix} \
- --libdir=%{_libdir}
-# build is racy
-%{__make} -j1
-
-%{__make} libpthread_workqueue.a
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
@@ -69,8 +70,6 @@ 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
@@ -86,6 +85,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpthread_workqueue.so
+%{_libdir}/libpthread_workqueue.la
%{_includedir}/pthread_workqueue.h
%{_mandir}/man3/pthread_workqueue.3*
diff --git a/libpthread_workqueue-link.patch b/libpthread_workqueue-link.patch
new file mode 100644
index 0000000..d38b0d8
--- /dev/null
+++ b/libpthread_workqueue-link.patch
@@ -0,0 +1,10 @@
+--- libpthread_workqueue-0.9/Makefile.am.orig 2013-10-10 08:43:06.000000000 +0200
++++ libpthread_workqueue-0.9/Makefile.am 2013-10-21 17:16:14.862845814 +0200
+@@ -14,6 +14,7 @@
+ ./src/debug.h
+
+ libpthread_workqueue_la_CFLAGS = -I./include -I./src -Wall -Wextra -Werror -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -D_GNU_SOURCE -std=c99
++libpthread_workqueue_la_LIBADD = -lpthread
+
+ check_PROGRAMS = test_api test_latency test_witem_cache
+ TESTS = test_api test_latency test_witem_cache
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpthread_workqueue.git/commitdiff/706267bd6afdfb7752cf7f4c3a52a861c424b1a0
More information about the pld-cvs-commit
mailing list