Files
perl-Mail-Audit/perl-Mail-Audit.spec
2025-08-12 18:15:12 +02:00

99 lines
3.3 KiB
RPMSpec

#
# spec file for package perl-Mail-Audit
#
# 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 Mail-Audit
Name: perl-Mail-Audit
Version: 2.228.0
Release: 0
# 2.228 -> normalize -> 2.228.0
%define cpan_version 2.228
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Library for creating easy mail filters
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::HomeDir) >= 0.61
BuildRequires: perl(File::Tempdir)
BuildRequires: perl(MIME::Entity)
BuildRequires: perl(MIME::Parser)
BuildRequires: perl(Mail::Internet)
BuildRequires: perl(Mail::Mailer)
BuildRequires: perl(Mail::POP3Client)
BuildRequires: perl(Mail::Send)
BuildRequires: perl(Parse::RecDescent)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(parent)
Requires: perl(File::HomeDir) >= 0.61
Requires: perl(File::Tempdir)
Requires: perl(MIME::Entity)
Requires: perl(MIME::Parser)
Requires: perl(Mail::Internet)
Requires: perl(Mail::Mailer)
Requires: perl(Mail::POP3Client)
Requires: perl(Mail::Send)
Requires: perl(Parse::RecDescent)
Requires: perl(parent)
Provides: perl(Mail::Audit) = %{version}
Provides: perl(Mail::Audit::KillDups) = %{version}
Provides: perl(Mail::Audit::MAPS) = %{version}
Provides: perl(Mail::Audit::MailInternet) = %{version}
Provides: perl(Mail::Audit::MimeEntity) = %{version}
Provides: perl(Mail::Audit::Util::Tempdir) = %{version}
Provides: perl(Mail::Audit::Vacation) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
_procmail_ is nasty. It has a tortuous and complicated recipe format, and I
don't like it. I wanted something flexible whereby I could filter my mail
using Perl tests.
Mail::Audit was inspired by Tom Christiansen's _audit_mail_ and
_deliverlib_ programs. It allows a piece of email to be logged, examined,
accepted into a mailbox, filtered, resent elsewhere, rejected, replied to,
and so on. It's designed to allow you to easily create filter programs to
stick in a _.forward_ file or similar.
Mail::Audit groks MIME; when appropriate, it subclasses MIME::Entity. Read
the MIME::Tools man page for details.
%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 FAQ README
%license LICENSE
%changelog