%global build_test 0 Name: zeromq Version: 4.3.4 Release: 1 Summary: An open-source universal messaging library License: LGPLv3+ URL: http://www.zeromq.org Source0: https://github.com/%{name}/libzmq/archive/v%{version}/libzmq-%{version}.tar.gz Source1: https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp Source2: https://raw.githubusercontent.com/zeromq/cppzmq/master/LICENSE BuildRequires: autoconf automake libtool libsodium-devel gcc-c++ BuildRequires: glib2-devel libuuid-devel openpgm-devel krb5-devel BuildRequires: make asciidoc xmlto libunwind-devel %description ZeroMQ (also spelled ØMQ, 0MQ or ZMQ) is a high-performance asynchronous messaging library, aimed at use in distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a ZeroMQ system can run without a dedicated message broker. The library's API is designed to resemble Berkeley sockets. %package devel Summary: Development files for zeromq Requires: %{name} = %{version}-%{release} %description devel This package contains Development files for zeromq. %package -n cppzmq-devel Summary: Development files for cppzmq License: MIT Requires: %{name}-devel = %{version}-%{release} %description -n cppzmq-devel This package contains Development files for zeromq. %package help Summary: Help documentation for zeromq %description help Help documentation for zeromq. %prep %autosetup -n libzmq-%{version} -p1 cp -a %{SOURCE2} . sed -i "s/libzmq_werror=\"yes\"/libzmq_werror=\"no\"/g" configure.ac rm -rf external/wepoll chmod -x src/xsub.hpp %build autoreconf -fi %configure --with-pgm --with-libgssapi_krb5 --disable-static %make_build %install %make_install install -pm644 %{SOURCE1} %{buildroot}%{_includedir}/ %delete_la %check %if %{build_test} make check V=1 || ( cat test-suite.log && exit 1 ) %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS %license COPYING COPYING.LESSER %{_bindir}/curve_keygen %{_libdir}/libzmq.so.5* %files devel %{_libdir}/libzmq.so %{_libdir}/pkgconfig/libzmq.pc %{_includedir}/zmq*.h %files -n cppzmq-devel %license LICENSE %{_includedir}/zmq.hpp %files help %doc NEWS README.md %{_mandir}/man3/zmq_* %{_mandir}/man7/zmq_* %{_mandir}/man7/zmq.* %changelog * Sun Feb 04 2024 yaoxin - 4.3.4-1 - Upgrade to 4.3.4 for fix CVE-2020-15166 and CVE-2021-20236 * Fri Mar 6 2020 shijian - 4.1.7-2 - Package init