Commit 98ccff1a authored by Mikko Koppanen's avatar Mikko Koppanen Committed by Martin Sustrik

Fixes build on at least CentOS 5

Signed-off-by: 's avatarMikko Koppanen <mikko.koppanen@gmail.com>
parent 0eea9352
...@@ -8,12 +8,18 @@ URL: http://www.zeromq.org/ ...@@ -8,12 +8,18 @@ URL: http://www.zeromq.org/
Source: http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz Source: http://www.zeromq.org/local--files/area:download/%{name}-%{version}.tar.gz
Prefix: %{_prefix} Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc, make, gcc-c++, libstdc++-devel
Requires: libstdc++
%if %{?rhel}%{!?rhel:0} >= 6 %if %{?rhel}%{!?rhel:0} >= 6
BuildRequires: libuuid-devel, gcc, make, gcc-c++, libstdc++-devel BuildRequires: libuuid-devel
Requires: libuuid, libstdc++ Requires: libuuid
%elseif %{?rhel}%{!?rhel:0} >= 5
BuildRequires: e2fsprogs-devel
Requires: e2fsprogs
%else %else
BuildRequires: uuid-devel, gcc, make, gcc-c++, libstdc++-devel BuildRequires: uuid-devel
Requires: uuid, libstdc++ Requires: uuid
%endif %endif
# Build pgm only on supported archs # Build pgm only on supported archs
...@@ -63,6 +69,7 @@ This package contains ZeroMQ related development libraries and header files. ...@@ -63,6 +69,7 @@ This package contains ZeroMQ related development libraries and header files.
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
# Install the package to build area # Install the package to build area
%{__make} check
%makeinstall %makeinstall
%post %post
...@@ -81,8 +88,8 @@ This package contains ZeroMQ related development libraries and header files. ...@@ -81,8 +88,8 @@ This package contains ZeroMQ related development libraries and header files.
%doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README %doc AUTHORS ChangeLog COPYING COPYING.LESSER NEWS README
# libraries # libraries
%{_libdir}/libzmq.so.0 %{_libdir}/libzmq.so.1
%{_libdir}/libzmq.so.0.0.0 %{_libdir}/libzmq.so.1.0.0
%attr(0755,root,root) %{_bindir}/zmq_forwarder %attr(0755,root,root) %{_bindir}/zmq_forwarder
%attr(0755,root,root) %{_bindir}/zmq_queue %attr(0755,root,root) %{_bindir}/zmq_queue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment