Files
perl-ZMQ-LibZMQ3/perl-ZMQ-LibZMQ3.spec
2025-08-12 18:18:43 +02:00

94 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-ZMQ-LibZMQ3
#
# Copyright (c) 2024 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 cpan_name ZMQ-LibZMQ3
Name: perl-ZMQ-LibZMQ3
Version: 1.190.0
Release: 0
# 1.19 -> normalize -> 1.190.0
%define cpan_version 1.19
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Libzmq 3.x wrapper for Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DM/DMAKI/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Devel::CheckLib) >= 0.4
BuildRequires: perl(Devel::PPPort) >= 3.19
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
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)
Provides: perl(ZMQ::LibZMQ3) = %{version}
%undefine __perllib_provides
%{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
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
# MANUAL no testing (requires Display)
#make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes
%changelog