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

71 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Mail-GnuPG
#
# 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-GnuPG
Name: perl-Mail-GnuPG
Version: 0.230.0
Release: 0
# 0.23 -> normalize -> 0.230.0
%define cpan_version 0.23
#Upstream: This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; version 2 http://www.opensource.org/licenses/gpl-license.php b) the "Artistic License" http://www.opensource.org/licenses/artistic-license.php This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
License: Artistic-1.0 OR GPL-2.0-or-later
Summary: Process email with GPG
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DD/DDB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(GnuPG::Interface)
BuildRequires: perl(MIME::Entity)
BuildRequires: perl(MIME::Parser)
BuildRequires: perl(Mail::Address)
BuildRequires: perl(Module::Build) >= 0.42
BuildRequires: perl(Test::Pod)
Requires: perl(GnuPG::Interface)
Requires: perl(MIME::Entity)
Requires: perl(MIME::Parser)
Requires: perl(Mail::Address)
Requires: perl(Test::Pod)
Provides: perl(Mail::GnuPG) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Use GnuPG::Interface to process or create PGP signed or encrypted email.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog