79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Email-Fingerprint
|
|
#
|
|
# 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 Email-Fingerprint
|
|
Name: perl-Email-Fingerprint
|
|
Version: 0.490.0
|
|
Release: 0
|
|
# 0.49 -> normalize -> 0.490.0
|
|
%define cpan_version 0.49
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Calculate a digest for recognizing duplicate emails
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BU/BUDNEY/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Std)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
BuildRequires: perl(File::Path) >= 2.08
|
|
BuildRequires: perl(File::Slurp) >= 0.10
|
|
BuildRequires: perl(List::MoreUtils) >= 0.40
|
|
BuildRequires: perl(LockFile::Simple) >= 0.200
|
|
BuildRequires: perl(Mail::Header) >= 1.400
|
|
BuildRequires: perl(Test::Exception) >= 0.07
|
|
BuildRequires: perl(Test::Warn) >= 0.90
|
|
Requires: perl(Class::Std)
|
|
Requires: perl(File::Path) >= 2.08
|
|
Requires: perl(List::MoreUtils) >= 0.40
|
|
Requires: perl(LockFile::Simple) >= 0.200
|
|
Requires: perl(Mail::Header) >= 1.400
|
|
Provides: perl(Email::Fingerprint) = %{version}
|
|
Provides: perl(Email::Fingerprint::App::EliminateDups) = %{version}
|
|
Provides: perl(Email::Fingerprint::Cache) = %{version}
|
|
Provides: perl(Email::Fingerprint::Cache::AnyDBM) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Calculate a digest for recognizing duplicate emails
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%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 examples README
|
|
|
|
%changelog
|