Thomas Spura 084946f
%bcond_without pgm
0da91cc
%bcond_without unwind
Thomas Spura 084946f
91e1aea
Name:           zeromq
6666ee1
Version:        4.3.5
6666ee1
Release:        %autorelease
91e1aea
Summary:        Software library for fast, message-based applications
91e1aea
e47d99b
License:        MPLv2.0 AND BSD-3-Clause AND MIT
a31484c
URL:            https://zeromq.org
e1c1539
Source0:        https://github.com/%{name}/libzmq/archive/v%{version}/%{name}-%{version}.tar.gz
d1f897d
Patch1:         zeromq-configure-c99.patch
91e1aea
3dd626f
BuildRequires:  make
3dd626f
BuildRequires:  autoconf
3dd626f
BuildRequires:  automake
5652a73
BuildRequires:  gcc-c++
3dd626f
BuildRequires:  libtool
29fbd79
BuildRequires:  asciidoc
29fbd79
BuildRequires:  xmlto
Thomas Spura f003bc5
BuildRequires:  libsodium-devel
0da91cc
0da91cc
%if %{with unwind}
5652a73
BuildRequires:  libunwind-devel
0da91cc
%endif
Thomas Spura 9684f06
Thomas Spura 084946f
%if %{with pgm}
Thomas Spura 38435b1
BuildRequires:  openpgm-devel
Thomas Spura 4010976
BuildRequires:  krb5-devel
Thomas Spura 084946f
%endif
91e1aea
91e1aea
%description
91e1aea
The 0MQ lightweight messaging kernel is a library which extends the
91e1aea
standard socket interfaces with features traditionally provided by
91e1aea
specialized messaging middle-ware products. 0MQ sockets provide an
91e1aea
abstraction of asynchronous message queues, multiple messaging
91e1aea
patterns, message filtering (subscriptions), seamless access to
91e1aea
multiple transport protocols and more.
91e1aea
91e1aea
This package contains the ZeroMQ shared library.
91e1aea
91e1aea
91e1aea
%package devel
91e1aea
Summary:        Development files for %{name}
bac64ae
Requires:       %{name}%{?_isa} = %{version}-%{release}
91e1aea
91e1aea
91e1aea
%description devel
Thomas Spura e6cddf9
The %{name}-devel package contains libraries and header files for
91e1aea
developing applications that use %{name}.
91e1aea
91e1aea
91e1aea
%prep
e1c1539
%autosetup -p1
91e1aea
5652a73
# Remove bundled code.
5652a73
rm -rf external/wepoll
5652a73
5652a73
# Fix permissions.
5652a73
chmod -x src/xsub.hpp
Thomas Spura 38435b1
Thomas Spura 38435b1
91e1aea
%build
3dd626f
autoreconf -fi
3dd626f
%configure \
3dd626f
%if %{with pgm}
3dd626f
            --with-pgm \
3dd626f
            --with-libgssapi_krb5 \
3dd626f
%endif
3dd626f
            --with-libsodium \
9e6802e
            --enable-drafts \
3dd626f
%if %{with unwind}
3dd626f
            --enable-libunwind \
3dd626f
%endif
3dd626f
            --disable-Werror \
3dd626f
            --disable-static
3dd626f
%make_build
91e1aea
91e1aea
91e1aea
%install
3dd626f
%make_install
3dd626f
3dd626f
# remove *.la
3dd626f
rm %{buildroot}%{_libdir}/libzmq.la
3dd626f
91e1aea
Thomas Spura cbe2c06
%check
deb7fbd
%ifarch s390x
0502eb1
make check V=1 XFAIL_TESTS=tests/test_radio_dish || ( cat test-suite.log && exit 1 )
deb7fbd
%endif
Thomas Spura cbe2c06
3dd626f
3dd626f
%ldconfig_scriptlets
3dd626f
3dd626f
91e1aea
%files
5652a73
%doc README.md AUTHORS NEWS
de1a0c8
%license LICENSE
13c901b
%{_bindir}/curve_keygen
689cc9f
%{_libdir}/libzmq.so.5*
4f322ac
%{_mandir}/man3/zmq_*
4f322ac
%{_mandir}/man7/zmq_*
4f322ac
%{_mandir}/man7/zmq.*
91e1aea
91e1aea
%files devel
91e1aea
%{_libdir}/libzmq.so
91e1aea
%{_libdir}/pkgconfig/libzmq.pc
Thomas Spura 4c7a024
%{_includedir}/zmq*.h
3dd626f
91e1aea
91e1aea
%changelog
6666ee1
%autochangelog
91e1aea