File perl-ZMQ-LibZMQ3.spec of Package perl-ZMQ-LibZMQ3

#
# spec file for package perl-ZMQ-LibZMQ3
#
# Copyright (c) 2021 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/
#


Name:           perl-ZMQ-LibZMQ3
Version:        1.19
Release:        0
%define cpan_name ZMQ-LibZMQ3
Summary:        Libzmq 3.x wrapper for Perl
License:        Artistic-1.0 OR GPL-1.0-or-later
Group:          Development/Libraries/Perl
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/D/DM/DMAKI/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Devel::PPPort) >= 3.19
BuildRequires:  perl(ExtUtils::ParseXS) >= 3.18
BuildRequires:  perl(Task::Weaken)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Test::TCP) >= 1.08
BuildRequires:  perl(ZMQ::Constants)
Requires:       perl(Task::Weaken)
Requires:       perl(ZMQ::Constants)
%{perl_requires}
# MANUAL BEGIN
BuildRequires:  pkgconfig(libzmq)
# MANUAL END

%description
The 'ZMQ::LibZMQ3' module is a wrapper of the 0MQ message passing library
for Perl.

Before you start using this module, please make sure you have read and
understood the zguide.

    http://zguide.zeromq.org/page:all

For specifics on each function, please refer to their documentation for the
definitive explanation of each.

    http://api.zeromq.org/

This module is merely a thin wrapper around the C API: You need to
understand how the C API works in order to properly use this module.

Note that this is a wrapper for libzmq 3.x. For 2.x, you need to check
ZMQ::LibZMQ2

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644

%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

%check
# MANUAL no testing (requires Display)
#make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes

%changelog
openSUSE Build Service is sponsored by