2011-12-11 17:16:32 +00:00
#
# spec file for package perl-Mail-GnuPG
#
2024-07-24 20:21:04 +00:00
# Copyright (c) 2024 SUSE LLC
2011-12-11 17:16:32 +00:00
#
# 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.
2019-03-01 21:52:58 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-12-11 17:16:32 +00:00
#
2024-07-24 20:21:04 +00:00
%define cpan_name Mail-GnuPG
2011-12-11 17:16:32 +00:00
Name : perl-Mail-GnuPG
2024-07-24 20:21:04 +00:00
Version : 0.230.0
2011-12-11 17:16:32 +00:00
Release : 0
2024-07-24 20:21:04 +00:00
# 0.23 -> normalize -> 0.230.0
%define cpan_version 0.23
2019-03-01 21:52:58 +00:00
#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.
2019-03-01 21:54:29 +00:00
License : Artistic-1.0 OR GPL-2.0-or-later
2024-07-24 20:21:04 +00:00
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
2019-03-01 21:52:58 +00:00
Source1 : cpanspec.yml
2025-08-12 18:15:14 +02:00
Source100 : README.md
2019-03-01 21:52:58 +00:00
BuildArch : noarch
BuildRequires : perl
2011-12-11 17:16:32 +00:00
BuildRequires : perl-macros
BuildRequires : perl(GnuPG::Interface)
2019-03-01 21:52:58 +00:00
BuildRequires : perl(MIME::Entity)
BuildRequires : perl(MIME::Parser)
2011-12-11 17:16:32 +00:00
BuildRequires : perl(Mail::Address)
2024-07-24 20:21:04 +00:00
BuildRequires : perl(Module::Build) >= 0.42
2019-03-01 21:52:58 +00:00
BuildRequires : perl(Test::Pod)
2011-12-11 17:16:32 +00:00
Requires : perl(GnuPG::Interface)
2019-03-01 21:52:58 +00:00
Requires : perl(MIME::Entity)
Requires : perl(MIME::Parser)
2011-12-11 17:16:32 +00:00
Requires : perl(Mail::Address)
2019-03-01 21:52:58 +00:00
Requires : perl(Test::Pod)
2024-07-24 20:21:04 +00:00
Provides : perl(Mail::GnuPG) = %{version}
%undefine __perllib_provides
2019-03-01 21:52:58 +00:00
%{perl_requires}
2011-12-11 17:16:32 +00:00
%description
Use GnuPG::Interface to process or create PGP signed or encrypted email.
%prep
2024-07-24 20:21:04 +00:00
%autosetup -n %{cpan_name} -%{cpan_version}
2011-12-11 17:16:32 +00:00
%build
2024-07-24 20:21:04 +00:00
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
2011-12-11 17:16:32 +00:00
%check
./Build test
2019-03-01 21:52:58 +00:00
%install
2024-07-24 20:21:04 +00:00
./Build install --destdir=%{buildroot} --create_packlist=0
2019-03-01 21:52:58 +00:00
%perl_gen_filelist
2011-12-11 17:16:32 +00:00
2019-03-01 21:52:58 +00:00
%files -f %{name}.files
%doc Changes README
2011-12-11 17:16:32 +00:00
%changelog