159 lines
4.9 KiB
RPMSpec
159 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package saltbundle-zeromq
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define lib_name saltbundle-libzmq
|
|
Name: saltbundle-zeromq
|
|
Version: 4.3.5
|
|
Release: 0
|
|
Summary: Lightweight messaging kernel
|
|
License: MPL-2.0
|
|
Group: Productivity/Networking/Web/Servers
|
|
URL: http://www.zeromq.org/
|
|
Source: https://github.com/zeromq/libzmq/releases/download/v%{version}/zeromq-%{version}.tar.gz
|
|
Source1000: saltbundle-zeromq-rpmlintrc
|
|
%if 0%{?suse_version} == 1110
|
|
BuildRequires: gcc48-c++
|
|
%else
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: saltbundle-libsodium-devel
|
|
BuildRequires: pkgconfig(uuid)
|
|
AutoReqProv: 0
|
|
|
|
%description
|
|
The ZeroMQ messaging kernel is a library extending the standard
|
|
socket interfaces with an abstraction of asynchronous message queues,
|
|
multiple messaging patterns, message filtering (subscriptions) and
|
|
seamless access to multiple transport protocols.
|
|
|
|
%package -n %{lib_name}
|
|
Summary: Shared Library for ZeroMQ
|
|
Group: Productivity/Networking/Web/Servers
|
|
Requires: saltbundle-libsodium
|
|
AutoReqProv: 0
|
|
|
|
%description -n %{lib_name}
|
|
The ZeroMQ messaging kernel is a library extending the standard
|
|
socket interfaces with an abstraction of asynchronous message queues,
|
|
multiple messaging patterns, message filtering (subscriptions) and
|
|
seamless access to multiple transport protocols.
|
|
|
|
This package holds the shared library part of the ZeroMQ package.
|
|
|
|
%package tools
|
|
Summary: Tools to work with ZeroMQ
|
|
# Conflict old libraries as we collide with them
|
|
Group: Productivity/Networking/Web/Servers
|
|
Conflicts: libzmq1
|
|
Conflicts: libzmq2
|
|
Conflicts: libzmq3
|
|
AutoReqProv: 0
|
|
|
|
%description tools
|
|
The ZeroMQ messaging kernel is a library extending the standard
|
|
socket interfaces with an abstraction of asynchronous message queues,
|
|
multiple messaging patterns, message filtering (subscriptions) and
|
|
seamless access to multiple transport protocols.
|
|
|
|
This package contains the utilities to work with ZeroMQ library.
|
|
|
|
%package devel
|
|
Summary: Development files for ZeroMQ
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{lib_name} = %{version}
|
|
AutoReqProv: 0
|
|
|
|
%description devel
|
|
The ZeroMQ messaging kernel is a library extending the standard
|
|
socket interfaces with an abstraction of asynchronous message queues,
|
|
multiple messaging patterns, message filtering (subscriptions) and
|
|
seamless access to multiple transport protocols.
|
|
|
|
This package holds the development files for ZeroMQ.
|
|
|
|
%prep
|
|
%autosetup -p1 -n zeromq-%{version}
|
|
|
|
%build
|
|
# Link libstdc++ and libgcc statically to prevent possible incompatibilities
|
|
# with some versions of target clients which don't have updates installed.
|
|
#
|
|
# If the GCC version is going to change, or if the static linking is going
|
|
# to change, this must be discussed with the Security Champions and the SUSE
|
|
# Security Team before any submission happens.
|
|
#
|
|
# RH clones are not able to use static linking without additional dependencies,
|
|
# which seems forbidden in OBS for some reason. Also disabled for SLE11
|
|
# to avoid build fails.
|
|
%if ! 0%{?rhel} && 0%{?suse_version} != 1110
|
|
export LDFLAGS="-static-libstdc++ -static-libgcc -L."
|
|
ln -s $(g++ -print-file-name=libstdc++.a)
|
|
ln -s $(g++ -print-file-name=libgcc.a)
|
|
%endif
|
|
|
|
%ifarch i386
|
|
export LIBS="-ldl -latomic"
|
|
%else
|
|
export LIBS=-ldl
|
|
%endif
|
|
%if 0%{?suse_version} == 1110
|
|
export CXX=g++-4.8
|
|
%endif
|
|
%configure \
|
|
--with-libsodium \
|
|
--enable-curve \
|
|
--disable-static \
|
|
--disable-dependency-tracking \
|
|
--disable-silent-rules \
|
|
--disable-Werror
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%check
|
|
%if ! 0%{?qemu_user_space_build}
|
|
# Tests don't run well concurrently and some are flaky, hence 3x before fail
|
|
make check %{?_smp_mflags} || make check || make check || make check || (cat ./test-suite.log && false)
|
|
%endif
|
|
|
|
%post -n %{lib_name} -p /sbin/ldconfig
|
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
|
|
|
%files -n %{lib_name}
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%{_libdir}/libzmq.so.*
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/curve_keygen
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog NEWS
|
|
%{_includedir}/zmq*
|
|
%{_libdir}/libzmq.so
|
|
%{_libdir}/pkgconfig/libzmq.pc
|
|
%{_mandir}/man3/zmq*.3*
|
|
%{_mandir}/man7/zmq*.7*
|
|
|
|
%changelog
|