92 lines
2.8 KiB
RPMSpec
92 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package perl-ZMQ-LibZMQ4
|
|
#
|
|
# 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-LibZMQ4
|
|
Name: perl-ZMQ-LibZMQ4
|
|
Version: 0.10.0
|
|
Release: 0
|
|
# 0.01 -> normalize -> 0.10.0
|
|
%define cpan_version 0.01
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Libzmq 4.x wrapper for Perl
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MO/MOSCONI/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(ZMQ::LibZMQ4) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: pkgconfig(libzmq)
|
|
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) >= 1.00
|
|
Requires: perl(Task::Weaken)
|
|
Requires: perl(ZMQ::Constants) >= 1.00
|
|
# MANUAL END
|
|
|
|
%description
|
|
The 'ZMQ::LibZMQ4' 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 4.x. For 2.x, you need to check
|
|
ZMQ::LibZMQ2 and for 3.x, you need to check ZMQ::LibZMQ3
|
|
|
|
%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
|