2012-12-24 17:50:04 +00:00
|
|
|
%bcond_without pgm
|
2023-03-07 20:34:18 +00:00
|
|
|
%bcond_without unwind
|
2012-12-24 17:50:04 +00:00
|
|
|
|
2010-07-25 12:19:21 +00:00
|
|
|
Name: zeromq
|
2023-10-22 21:47:40 +00:00
|
|
|
Version: 4.3.5
|
|
|
|
Release: %autorelease
|
2010-07-25 12:19:21 +00:00
|
|
|
Summary: Software library for fast, message-based applications
|
|
|
|
|
2023-10-22 22:41:22 +00:00
|
|
|
License: MPLv2.0 AND BSD-3-Clause AND MIT
|
2019-09-08 07:33:08 +00:00
|
|
|
URL: https://zeromq.org
|
2023-10-22 21:56:37 +00:00
|
|
|
Source0: https://github.com/%{name}/libzmq/archive/v%{version}/%{name}-%{version}.tar.gz
|
2010-07-25 12:19:21 +00:00
|
|
|
|
2023-10-24 18:30:24 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2019-01-22 05:28:36 +00:00
|
|
|
BuildRequires: gcc-c++
|
2023-10-24 18:30:24 +00:00
|
|
|
BuildRequires: libtool
|
2020-09-15 21:11:38 +00:00
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: xmlto
|
2015-06-23 09:08:49 +00:00
|
|
|
BuildRequires: libsodium-devel
|
2023-03-07 20:34:18 +00:00
|
|
|
|
|
|
|
%if %{with unwind}
|
2019-01-22 05:28:36 +00:00
|
|
|
BuildRequires: libunwind-devel
|
2023-03-07 20:34:18 +00:00
|
|
|
%endif
|
2013-03-27 15:37:00 +00:00
|
|
|
|
2012-12-24 17:50:04 +00:00
|
|
|
%if %{with pgm}
|
2013-05-17 13:17:40 +00:00
|
|
|
BuildRequires: openpgm-devel
|
2016-01-24 16:04:08 +00:00
|
|
|
BuildRequires: krb5-devel
|
2012-12-24 17:50:04 +00:00
|
|
|
%endif
|
2010-07-25 12:19:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The 0MQ lightweight messaging kernel is a library which extends the
|
|
|
|
standard socket interfaces with features traditionally provided by
|
|
|
|
specialized messaging middle-ware products. 0MQ sockets provide an
|
|
|
|
abstraction of asynchronous message queues, multiple messaging
|
|
|
|
patterns, message filtering (subscriptions), seamless access to
|
|
|
|
multiple transport protocols and more.
|
|
|
|
|
|
|
|
This package contains the ZeroMQ shared library.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2011-03-23 16:17:59 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-07-25 12:19:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
2015-05-19 21:31:38 +00:00
|
|
|
The %{name}-devel package contains libraries and header files for
|
2010-07-25 12:19:21 +00:00
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-10-22 21:56:37 +00:00
|
|
|
%autosetup -p1
|
2010-07-25 12:19:21 +00:00
|
|
|
|
2019-01-22 05:28:36 +00:00
|
|
|
# Remove bundled code.
|
|
|
|
rm -rf external/wepoll
|
|
|
|
|
|
|
|
# Fix permissions.
|
|
|
|
chmod -x src/xsub.hpp
|
2013-05-17 13:17:40 +00:00
|
|
|
|
|
|
|
|
2010-07-25 12:19:21 +00:00
|
|
|
%build
|
2023-10-24 18:30:24 +00:00
|
|
|
autoreconf -fi
|
|
|
|
%configure \
|
|
|
|
%if %{with pgm}
|
|
|
|
--with-pgm \
|
|
|
|
--with-libgssapi_krb5 \
|
|
|
|
%endif
|
|
|
|
--with-libsodium \
|
2023-10-31 11:51:38 +00:00
|
|
|
--enable-drafts \
|
2023-10-24 18:30:24 +00:00
|
|
|
%if %{with unwind}
|
|
|
|
--enable-libunwind \
|
|
|
|
%endif
|
|
|
|
--disable-Werror \
|
|
|
|
--disable-static
|
|
|
|
%make_build
|
2010-07-25 12:19:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2023-10-24 18:30:24 +00:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
# remove *.la
|
|
|
|
rm %{buildroot}%{_libdir}/libzmq.la
|
|
|
|
|
2010-07-25 12:19:21 +00:00
|
|
|
|
2011-09-21 09:04:22 +00:00
|
|
|
%check
|
2020-09-15 22:30:40 +00:00
|
|
|
%ifarch s390x
|
2023-10-31 16:59:45 +00:00
|
|
|
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
|
2020-09-15 22:30:40 +00:00
|
|
|
%endif
|
2011-09-21 09:04:22 +00:00
|
|
|
|
2023-10-24 18:30:24 +00:00
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
2010-07-25 12:19:21 +00:00
|
|
|
%files
|
2019-01-22 05:28:36 +00:00
|
|
|
%doc README.md AUTHORS NEWS
|
2023-10-22 22:01:24 +00:00
|
|
|
%license LICENSE
|
2023-10-24 18:29:42 +00:00
|
|
|
%{_bindir}/curve_keygen
|
2019-01-21 22:34:51 +00:00
|
|
|
%{_libdir}/libzmq.so.5*
|
2020-09-15 20:53:58 +00:00
|
|
|
%{_mandir}/man3/zmq_*
|
|
|
|
%{_mandir}/man7/zmq_*
|
|
|
|
%{_mandir}/man7/zmq.*
|
2010-07-25 12:19:21 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libzmq.so
|
|
|
|
%{_libdir}/pkgconfig/libzmq.pc
|
2015-06-08 08:20:50 +00:00
|
|
|
%{_includedir}/zmq*.h
|
2023-10-24 18:30:24 +00:00
|
|
|
|
2010-07-25 12:19:21 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-10-22 21:47:40 +00:00
|
|
|
%autochangelog
|
2010-07-25 12:19:21 +00:00
|
|
|
|