File zeromq.spec of Package zeromq
#
# spec file for package zeromq
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without pgm
Name: zeromq
Version: 4.1.6
Release: 11%{?dist}
Summary: Software library for fast, message-based applications
License: LGPL-3.0-or-later
URL: http://www.zeromq.org
Source0: https://github.com/zeromq/zeromq4-1/releases/download/v%{version}/zeromq-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp
Source2: https://raw.githubusercontent.com/zeromq/cppzmq/master/LICENSE
Patch0001: 1260.patch
Patch0002: 1574.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libsodium-devel
BuildRequires: libtool
BuildRequires: glib2-devel
BuildRequires: libuuid-devel
%if %{with pgm}
BuildRequires: krb5-devel
BuildRequires: openpgm-devel
%endif
%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}
License: LGPL-3.0-or-later
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n cppzmq-devel
Summary: Development files for cppzmq
License: MIT
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description -n cppzmq-devel
The cppzmq-devel package contains libraries and header files for
developing applications that use the C++ header files of %{name}.
%prep
%autosetup -p1
cp -a %{SOURCE2} .
# Don't turn warnings into errors
sed -i "s/libzmq_werror=\"yes\"/libzmq_werror=\"no\"/g" \
configure.ac
%build
autoreconf -fi
%configure \
%if %{with pgm}
--with-pgm \
--with-libgssapi_krb5 \
%endif
--disable-static
%make_build
%install
%make_install
install -m 644 -p %{SOURCE1} %{buildroot}%{_includedir}/
# remove *.la
rm %{buildroot}%{_libdir}/libzmq.la
%check
make check V=1 || ( cat test-suite.log && exit 1 )
%ldconfig_scriptlets
%files
%doc AUTHORS ChangeLog MAINTAINERS NEWS
%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
%changelog