[packages/zeromq] - enable PGM extension - release 2
qboosh
qboosh at pld-linux.org
Tue Jul 16 21:28:10 CEST 2013
commit 8c29375beb17fa2e15b54f8db25464a2bb9c2eb8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 16 21:28:09 2013 +0200
- enable PGM extension
- release 2
zeromq.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/zeromq.spec b/zeromq.spec
index e44884e..cae26ba 100644
--- a/zeromq.spec
+++ b/zeromq.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without pgm # PGM extension (using OpenPGM library)
%bcond_without tests # build without tests
Summary: 0MQ - Zero Message Queue
@@ -7,7 +8,7 @@ Summary(en.UTF-8): ØMQ - Zero Message Queue
Summary(pl.UTF-8): ØMQ (Zero Message Queue) - kolejka komunikatów
Name: zeromq
Version: 3.2.3
-Release: 1
+Release: 2
License: LGPL v3+
Group: Libraries
Source0: http://download.zeromq.org/%{name}-%{version}.tar.gz
@@ -19,7 +20,9 @@ BuildRequires: automake
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: libuuid-devel
+%{?with_pgm:BuildRequires: libpgm-devel >= 5.2}
BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
BuildRequires: xmlto
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -54,6 +57,7 @@ Summary(en.UTF-8): ØMQ library header files for development
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ØMQ
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel
Obsoletes: zeromq-pthreads-devel
%description devel
@@ -85,6 +89,8 @@ Statyczna biblioteka ØMQ.
%prep
%setup -q
+%{__sed} -i -e 's/openpgm-5\.1/openpgm-5.2/' configure.in
+
%build
%{__libtoolize}
%{__aclocal}
@@ -92,7 +98,8 @@ Statyczna biblioteka ØMQ.
%{__automake}
%{__autoheader}
%configure \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{?with_pgm:--with-system-pgm}
%{__make}
%if %{with tests}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zeromq.git/commitdiff/8c29375beb17fa2e15b54f8db25464a2bb9c2eb8
More information about the pld-cvs-commit
mailing list