forked from pool/perl-Set-Object
73 lines
2.3 KiB
RPMSpec
73 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Set-Object
|
|
#
|
|
# Copyright (c) 2025 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 Set-Object
|
|
Name: perl-Set-Object
|
|
Version: 1.420.0
|
|
Release: 0
|
|
# 1.42 -> normalize -> 1.420.0
|
|
%define cpan_version 1.42
|
|
License: Artistic-2.0
|
|
Summary: Unordered collections (sets) of Perl Objects
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(Set::Object) = %{version}
|
|
Provides: perl(Set::Object::Weak)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This modules implements a set of objects, that is, an unordered collection
|
|
of objects without duplication.
|
|
|
|
The term _objects_ is applied loosely - for the sake of Set::Object,
|
|
anything that is a reference is considered an object.
|
|
|
|
Set::Object 1.09 and later includes support for inserting scalars
|
|
(including the empty string, but excluding 'undef') as well as objects.
|
|
This can be thought of as (and is currently implemented as) a degenerate
|
|
hash that only has keys and no values. Unlike objects placed into a
|
|
Set::Object, scalars that are inserted will be flattened into strings, so
|
|
will lose any magic (eg, tie) or other special bits that they went in with;
|
|
only strings come out.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
%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 examples README
|
|
%license LICENSE
|
|
|
|
%changelog
|