83 lines
2.7 KiB
RPMSpec
83 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package perl-ZMQ-Constants
|
|
#
|
|
# 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-Constants
|
|
Name: perl-ZMQ-Constants
|
|
Version: 1.40.0
|
|
Release: 0
|
|
# 1.04 -> normalize -> 1.40.0
|
|
%define cpan_version 1.04
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Constants for libzmq
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DM/DMAKI/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
|
|
Provides: perl(ZMQ::Constants) = %{version}
|
|
Provides: perl(ZMQ::Constants::V2_1_11)
|
|
Provides: perl(ZMQ::Constants::V3_1_1)
|
|
Provides: perl(ZMQ::Constants::V3_1_2)
|
|
Provides: perl(ZMQ::Constants::V4_0_4)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
libzmq is a fast-chanding beast and constants get renamed, new one gest
|
|
removed, etc...
|
|
|
|
We used to auto-generate constants from the libzmq source code, but then
|
|
adpating the binding code to this change got very tedious, and controling
|
|
which version contains which constants got very hard to manage.
|
|
|
|
This module is now separate from ZMQ main code, and lists the constants
|
|
statically. You can also specify which set of constants to pull in
|
|
depending on the zmq version.
|
|
|
|
If don't care to be strict about which constants to import into your code,
|
|
then don't bother with the ':vX.X.X' notation, just use like a normal
|
|
module:
|
|
|
|
use ZMQ::Constants qw(:all); # pulls all known constants...
|
|
# note: may contain extra constants
|
|
# if we have clashes in the future
|
|
|
|
use ZMQ::Constants qw(ZMQ_PUSH); # import just ZMQ_PUSH
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes
|
|
|
|
%changelog
|