summaryrefslogtreecommitdiff
path: root/builds/redhat
diff options
context:
space:
mode:
authorMikko Koppanen <mikko.koppanen@gmail.com>2011-02-21 23:40:48 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-02-21 23:40:48 +0100
commit98ccff1a24a056aef15372b131eee1c1bf8f62ca (patch)
tree0d5030ee0e1ab0ff04302502ed585d0d6f8cf3a5 /builds/redhat
parent0eea93526d210372c23041d50f4b401a94e3a006 (diff)
Fixes build on at least CentOS 5
Signed-off-by: Mikko Koppanen <mikko.koppanen@gmail.com>
Diffstat (limited to 'builds/redhat')
-rw-r--r--builds/redhat/zeromq.spec19
1 files changed, 13 insertions, 6 deletions
diff --git a/builds/redhat/zeromq.spec b/builds/redhat/zeromq.spec
index 11c3c95..e3177b4 100644
--- a/builds/redhat/zeromq.spec
+++ b/builds/redhat/zeromq.spec
@@ -8,12 +8,18 @@ URL: http://www.zeromq.org/
Source: http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz
Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: gcc, make, gcc-c++, libstdc++-devel
+Requires: libstdc++
+
%if %{?rhel}%{!?rhel:0} >= 6
-BuildRequires: libuuid-devel, gcc, make, gcc-c++, libstdc++-devel
-Requires: libuuid, libstdc++
+BuildRequires: libuuid-devel
+Requires: libuuid
+%elseif %{?rhel}%{!?rhel:0} >= 5
+BuildRequires: e2fsprogs-devel
+Requires: e2fsprogs
%else
-BuildRequires: uuid-devel, gcc, make, gcc-c++, libstdc++-devel
-Requires: uuid, libstdc++
+BuildRequires: uuid-devel
+Requires: uuid
%endif
# Build pgm only on supported archs
@@ -63,6 +69,7 @@ This package contains ZeroMQ related development libraries and header files.
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
# Install the package to build area
+%{__make} check
%makeinstall
%post
@@ -81,8 +88,8 @@ This package contains ZeroMQ related development libraries and header files.
%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README
# libraries
-%{_libdir}/libzmq.so.0
-%{_libdir}/libzmq.so.0.0.0
+%{_libdir}/libzmq.so.1
+%{_libdir}/libzmq.so.1.0.0
%attr(0755,root,root) %{_bindir}/zmq_forwarder
%attr(0755,root,root) %{_bindir}/zmq_queue