[zeromq-dev] [PATCH] Add support for RHEL6 in the spec file

Sebastian Otaegui feniix at gmail.com
Tue Oct 12 18:58:10 CEST 2010


Hello,
see the attached patch that adds a conditional in the spec because rhel6
changes packages names for uuid

Or you can pull from
http://github.com/feniix/zeromq2/commit/a9780ad5b9e1dfa2e78860fdc2067a645b308767

I tested in rhel6 beta2

http://gist.github.com/622508

diff --git a/builds/redhat/zeromq.spec b/builds/redhat/zeromq.spec
index 781c65d..28e5c94 100644
--- a/builds/redhat/zeromq.spec
+++ b/builds/redhat/zeromq.spec
@@ -8,7 +8,11 @@ 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
+%if %{?rhel}%{!?rhel:0} >= 6
+BuildRequires: libuuid-devel, gcc, make, gcc-c++, libstdc++-devel
+%else
 BuildRequires: uuid-devel, gcc, make, gcc-c++, libstdc++-devel
+%endif
 Requires:      uuid, libstdc++

 # Build pgm only on supported archs
@@ -92,6 +96,7 @@ This package contains ZeroMQ related development libraries
and header files.
 %defattr(-,root,root,-)
 %{_includedir}/zmq.h
 %{_includedir}/zmq.hpp
+%{_includedir}/zmq_utils.h

 %{_libdir}/libzmq.la
 %{_libdir}/libzmq.a
@@ -101,6 +106,8 @@ This package contains ZeroMQ related development
libraries and header files.
 %{_mandir}/man3/zmq_bind.3.gz
 %{_mandir}/man3/zmq_close.3.gz
 %{_mandir}/man3/zmq_connect.3.gz
+%{_mandir}/man3/zmq_errno.3.gz
+%{_mandir}/man3/zmq_getsockopt.3.gz
 %{_mandir}/man3/zmq_init.3.gz
 %{_mandir}/man3/zmq_msg_close.3.gz
 %{_mandir}/man3/zmq_msg_copy.3.gz


-- 
Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101012/b1c1c7ac/attachment.htm>


More information about the zeromq-dev mailing list