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 http://bugs.opensuse.org/
#



Name:           perl-Mail-GPG
Version:        1.0.7
Release:        0
Summary:        Encrypt and Sign Mails using GnuPG
Source:         http://search.cpan.org/CPAN/authors/id/J/JR/JRED/Mail-GPG-%{version}.tar.gz
Patch1:         perl-Mail-GPG-fix_tests.patch
Url:            http://search.cpan.org/dist/Mail-GPG
Group:          Development/Libraries/Perl
License:        GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
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
%endif

%description
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.

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

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

%install
%perl_make_install
%perl_process_packlist

%check
%__make test

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

%files
%defattr(-,root,root)
%doc Changes README
%{_bindir}/mgpg-test
%dir %{perl_vendorlib}/Mail
%{perl_vendorlib}/Mail/GPG.pm
%{perl_vendorlib}/Mail/GPG
%doc %{perl_man3dir}/Mail::GPG.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Mail::GPG::*.%{perl_man3ext}%{ext_man}

%changelog