File perl-Mail-GPG.spec of Package perl-Mail-GPG

# spec file for package perl-Mail-GPG
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           perl-Mail-GPG
Version:        1.0.7
Release:        0
Summary:        Encrypt and Sign Mails using GnuPG
Patch1:         perl-Mail-GPG-fix_tests.patch
Group:          Development/Libraries/Perl
License:        GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl-macros
BuildRequires:  make
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(MIME::Parser) >= 5.419
BuildRequires:  perl(MIME::Entity) >= 5.419
BuildRequires:  perl(MIME::QuotedPrint) >= 2.2
BuildRequires:  perl(GnuPG::Interface)
BuildRequires:  perl(Mail::Address)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Event)
Requires:       perl(MIME::Parser) >= 5.419
Requires:       perl(MIME::Entity) >= 5.419
Requires:       perl(MIME::QuotedPrint) >= 2.2
Requires:       perl(GnuPG::Interface)
Requires:       perl(Mail::Address)
Requires:       perl(Moose)
Requires:       perl(Event)
%if 0%{?suse_version} >= 1120
BuildArch:      noarch

This Perl modules handles all the details of encrypting and signing Mails
using GnuPG according to RFC 3156 and RFC 2440, that is OpenPGP MIME and
traditional armor signed/encrypted mails.

%setup -q -n "Mail-GPG-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}


%__make test

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc Changes README
%dir %{perl_vendorlib}/Mail
%doc %{perl_man3dir}/Mail::GPG.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Mail::GPG::*.%{perl_man3ext}%{ext_man}