2020-10-28 14:10:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Heap
|
|
|
|
#
|
2025-04-14 21:38:58 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-10-28 14:10:42 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2008-07-22 17:33:50 +00:00
|
|
|
|
2020-10-28 14:10:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2008-07-22 17:33:50 +00:00
|
|
|
|
|
|
|
|
2025-04-14 21:38:58 +00:00
|
|
|
%define cpan_name Heap
|
2020-10-28 14:10:42 +00:00
|
|
|
Name: perl-Heap
|
2025-04-14 21:38:58 +00:00
|
|
|
Version: 0.800.0
|
2020-10-28 14:10:42 +00:00
|
|
|
Release: 0
|
2025-04-14 21:38:58 +00:00
|
|
|
# 0.80 -> normalize -> 0.800.0
|
|
|
|
%define cpan_version 0.80
|
2020-10-28 14:10:42 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-04-14 21:38:58 +00:00
|
|
|
Summary: Perl extensions for keeping data partially sorted
|
2020-10-28 14:10:42 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-04-14 21:38:58 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMM/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-10-28 14:10:42 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:31 +02:00
|
|
|
Source100: README.md
|
2020-10-28 14:10:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2025-04-14 21:38:58 +00:00
|
|
|
Provides: perl(Heap) = %{version}
|
|
|
|
Provides: perl(Heap::Binary) = %{version}
|
|
|
|
Provides: perl(Heap::Binomial) = %{version}
|
|
|
|
Provides: perl(Heap::Elem) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::Num) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::NumRev) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::Ref) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::RefRev) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::Str) = %{version}
|
|
|
|
Provides: perl(Heap::Elem::StrRev) = %{version}
|
|
|
|
Provides: perl(Heap::Fibonacci) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2020-10-28 14:10:42 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Heap collection of modules provide routines that manage a heap of
|
|
|
|
elements. A heap is a partially sorted structure that is always able to
|
|
|
|
easily extract the smallest of the elements in the structure (or the
|
|
|
|
largest if a reversed compare routine is provided).
|
2008-07-22 17:33:50 +00:00
|
|
|
|
2020-10-28 14:10:42 +00:00
|
|
|
If the collection of elements is changing dynamically, the heap has less
|
|
|
|
overhead than keeping the collection fully sorted.
|
2008-07-22 17:33:50 +00:00
|
|
|
|
2020-10-28 14:10:42 +00:00
|
|
|
The elements must be objects as described in "Heap::Elem" and all elements
|
|
|
|
inserted into one heap must be mutually compatible - either the same class
|
|
|
|
exactly or else classes that differ only in ways unrelated to the
|
|
|
|
*Heap::Elem* interface.
|
2008-07-22 17:33:50 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-14 21:38:58 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2008-07-22 17:33:50 +00:00
|
|
|
|
|
|
|
%build
|
2020-10-28 14:10:42 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2025-04-14 21:38:58 +00:00
|
|
|
%make_build
|
2020-10-28 14:10:42 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
2008-07-22 17:33:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2020-10-28 14:10:42 +00:00
|
|
|
%perl_gen_filelist
|
2008-07-22 17:33:50 +00:00
|
|
|
|
2020-10-28 14:10:42 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README TODO
|
2008-07-22 17:33:50 +00:00
|
|
|
|
|
|
|
%changelog
|