Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:spchamp
zeromq
zeromq.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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/ # %define lib_name libzmq5 %define draft_prefix %{_libdir}/zmq-draft %define draft_bindir %{draft_prefix}/bin %define draft_includedir %{draft_prefix}/include %define gh_sha 2a75ef07be0ba76f86592e10b999331cd6124d52 %define gh_date 20240325 Name: zeromq Version: 4.3.6 Release: git%{gh_date}.0 Summary: Lightweight messaging kernel License: LGPL-3.0-or-later Group: Productivity/Networking/Web/Servers URL: http://www.zeromq.org/ Source0: https://github.com/zeromq/libzmq/archive/%{gh_sha}.tar.gz Source97: https://rubygems.org/downloads/asciidoctor-2.0.22.gem Source98: README.zmq_draft.txt Source99: baselibs.conf BuildRequires: ruby BuildRequires: autoconf BuildRequires: automake BuildRequires: clang15 BuildRequires: llvm15-devel BuildRequires: libc++-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(krb5-gssapi) BuildRequires: pkgconfig(libbsd) BuildRequires: pkgconfig(libunwind) BuildRequires: pkgconfig(libsodium) BuildRequires: pkgconfig(nss) BuildRequires: pkgconfig(uuid) BuildRequires: xmlto %define desc_common %{expand: 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 Recommends: %{name}-tools = %{version} Provides: %{lib_name} = %{version} %package -n %{lib_name}-draft Summary: Shared Library for ZeroMQ, with draft sockets Group: Productivity/Networking/Web/Servers Recommends: %{name}-draft-tools = %{version} Provides: %{lib_name}-draft = %{version} %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 Requires: %{lib_name} = %{version} Provides: libzmq-tools = %{version} %package draft-tools Summary: Tools to work with ZeroMQ, with draft sockets Group: Productivity/Networking/Web/Servers Requires: %{lib_name}-draft = %{version} Provides: libzmq-draft-tools = %{version} %package devel Summary: Development files for ZeroMQ Group: Development/Languages/C and C++ Requires: %{lib_name} = %{version} Provides: libzmq-devel = %{version} %package draft-devel Summary: Development files for ZeroMQ, with draft sockets Group: Development/Languages/C and C++ Requires: %{lib_name}-draft = %{version} Provides: libzmq-draft-devel = %{version} %package doc-html Summary: HTML Documentation for ZeroMQ Group: Development/Languages/C and C++ %description %{desc_common} %description -n %{lib_name} %{desc_common} This package holds the shared library part of the ZeroMQ package. %description -n %{lib_name}-draft %{desc_common} This package holds the shared library part of the ZeroMQ package, with draft socket support. %description tools %{desc_common} This package contains the utilities to work with ZeroMQ library. %description draft-tools %{desc_common} This package contains the utilities to work with ZeroMQ library, with draft socket support. %description devel %{desc_common} This package holds the development files and manual pages for ZeroMQ. %description draft-devel %{desc_common} This package holds the development files for ZeroMQ, with draft socket support. %description doc-html %{desc_common} This package provides reference documentation for ZeroMQ, in HTML format. %prep %autosetup -p1 -n libzmq-%{gh_sha} %define config_common %{expand: %configure \\\ --with-nss \\\ --with-tls \\\ --enable-curve \\\ --with-libsodium \\\ --with-libgssapi_krb5 \\\ --disable-static \\\ --disable-dependency-tracking \\\ --disable-silent-rules \\\ --disable-Werror \\\ --with-pic \\\ } %build mkdir -p _GEM # install asciidoctor from gem gem install -l -i _GEM %{SOURCE97} cd _GEM/bin; ln -s asciidoctor.* asciidoctor; cd ../.. export PATH="$(readlink -f _GEM/bin):${PATH}" GEM_HOME="$(readlink -f _GEM)" _BASEDIR=$(readlink -f .) # run autogen in the source root export LIBS=-ldl CC=clang-15 CXX=clang++-15 CPP='clang-15 -E' mkdir -p build_live build_draft %define _configure %{_buildshell} autogen.sh %config_common # build main components cd build_live %define _configure ../configure %config_common %make_build # build draft components cd ../build_draft %config_common \ --enable-drafts \ --without-docs \ --bindir=%{draft_prefix}/bin \ --datarootdir=%{draft_prefix} \ --includedir=%{draft_prefix}/include \ --libdir=%{draft_prefix} \ --with-pkgconfigdir=%{draft_prefix}/pkgconfig %make_build %install _BASEDIR=$(readlink -f .) cd build_live %make_install cd ../build_draft %make_install cd .. find %{buildroot} %{buildroot}%{draft_prefix} -type f -name "*.la" -delete -print mkdir -p %{buildroot}%{_docdir}/%{name} %{__install} -m 444 -t %{buildroot}%{_docdir}/%{name} ${_BASEDIR}/doc/*.html mkdir -p %{buildroot}%{_docdir}/%{name}-draft-devel %{__install} -m 444 -t %{buildroot}%{_docdir}/%{name}-draft-devel AUTHORS NEWS %{SOURCE98} %check %if ! 0%{?qemu_user_space_build} cd build_live make check %{?_smp_mflags} || (cat ./test-suite.log && false) cd ../build_draft make check %{?_smp_mflags} || (cat ./test-suite.log && false) %endif %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %post -n %{lib_name}-draft -p /sbin/ldconfig %postun -n %{lib_name}-draft -p /sbin/ldconfig %files -n %{lib_name} %license LICENSE %{_libdir}/libzmq.so.* %files -n %{lib_name}-draft %license LICENSE %{draft_prefix}/libzmq.so.* %files tools %license LICENSE %{_bindir}/curve_keygen %files draft-tools %license LICENSE %{draft_bindir} %files devel %doc AUTHORS NEWS %license LICENSE %{_includedir}/zmq* %{_libdir}/libzmq.so %{_libdir}/pkgconfig/libzmq.pc %{_mandir}/man3/zmq*.3%{?ext_man} %{_mandir}/man7/zmq*.7%{?ext_man} %files draft-devel %doc AUTHORS NEWS %license LICENSE %{draft_includedir} %{draft_prefix}/libzmq.so %{draft_prefix}/include %{draft_prefix}/pkgconfig %{_docdir}/%{name}-draft-devel %dir %{draft_prefix} %files doc-html %license LICENSE %{_docdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor