Files
perl-POE-XS-Queue-Array/perl-POE-XS-Queue-Array.spec
2025-08-12 18:16:42 +02:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-POE-XS-Queue-Array
#
# 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 POE-XS-Queue-Array
Name: perl-POE-XS-Queue-Array
Version: 0.6.0
Release: 0
# 0.006 -> normalize -> 0.6.0
%define cpan_version 0.006
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: XS version of POE::Queue::Array
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TONYC/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(POE) >= 0.29
Requires: perl(POE) >= 0.29
Provides: perl(POE::XS::Queue::Array) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This class is an implementation of the abstract POE::Queue interface. It
implements a priority queue using C, with an XS interface supplied.
The current implementation could use some optimization, especially for
large queues.
Please see the POE::Queue documentation, which explains this one's
functions, features, and behavior.
The following extra methods are added beyond POE::Queue::Array:
* dump
Dumps the internal structure of the queue to stderr.
* verify
Does limited verification of the structure of the queue. If the
verification fails then a message is sent to stderr and the queue is dumped
as with the dump() method, and your program will exit.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc bench1.perl bench2.perl Changes README
%changelog