Files
perl-Email-Find/perl-Email-Find.spec
2025-08-12 18:13:49 +02:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Email-Find
#
# 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 Email-Find
Name: perl-Email-Find
Version: 0.100.0
Release: 0
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Find RFC 822 email addresses in plain text
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Email::Valid) >= 0.179
BuildRequires: perl(Mail::Address)
Requires: perl(Email::Valid) >= 0.179
Requires: perl(Mail::Address)
Provides: perl(Email::Find) = %{version}
Provides: perl(Email::Find::addrspec) = 0.90.0
%undefine __perllib_provides
%{perl_requires}
%description
Email::Find is a module for finding a _subset_ of RFC 822 email addresses
in arbitrary text (see "CAVEATS"). The addresses it finds are not
guaranteed to exist or even actually be email addresses at all (see
"CAVEATS"), but they will be valid RFC 822 syntax.
Email::Find will perform some heuristics to avoid some of the more obvious
red herrings and false addresses, but there's only so much which can be
done without a human.
%prep
%autosetup -n %{cpan_name}-%{cpan_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
%changelog