Project not found: home:glaubitz:branches:devel:languages:python:azure3

File perl-WordListRole-Bloom.spec of Package perl-WordListRole-Bloom

#
# spec file for package perl-WordListRole-Bloom
#
# Copyright (c) 2022 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 WordListRole-Bloom
Name:           perl-WordListRole-Bloom
Version:        0.007
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Provide word_exists() that uses bloom filter
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Algorithm::BloomFilter)
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(Role::Tiny)
Requires:       perl(Algorithm::BloomFilter)
Requires:       perl(File::ShareDir)
Requires:       perl(Role::Tiny)
%{perl_requires}

%description
This role provides an alternative 'word_exists()' method that checks a
bloom filter located in the distribution share directory (_share/bloom_).
This provides a low startup-overhead way to check an item against a big
list (e.g. millions). Note that testing using a bloom filter can result in
a false positive (i.e. 'word_exists()' returns true but the word is not
actually in the list.

%prep
%autosetup  -n %{cpan_name}-%{version}

%build
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 README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by