commit fdbd8e00bfe7dc4aaa53204e395f3d35f8606f3f
Author: Ralf Corsépius <corse...@fedoraproject.org>
Date:   Mon Jan 17 17:15:20 2011 +0100

    - Upstream update.
    - Reflect upstream Source0-URL having changed.
    - Reflect upstream having changed to Module::Build.

 .gitignore           |    1 +
 perl-Mail-GnuPG.spec |   44 ++++++++++++++++++++++++++------------------
 sources              |    2 +-
 3 files changed, 28 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 444c405..3e102d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Mail-GnuPG-0.15.tar.gz
+/Mail-GnuPG-0.16.tar.gz
diff --git a/perl-Mail-GnuPG.spec b/perl-Mail-GnuPG.spec
index 5365319..ab5d0fc 100644
--- a/perl-Mail-GnuPG.spec
+++ b/perl-Mail-GnuPG.spec
@@ -1,24 +1,27 @@
-Name:          perl-Mail-GnuPG
-Summary:       Process email with GPG
-Version:       0.15
-Release:       6%{?dist}
+Name:          perl-Mail-GnuPG
+Summary:       Process email with GPG
+Version:       0.16
+Release:       1%{?dist}
 License:       GPLv2 or Artistic
-Group:                 Development/Libraries
-URL:           http://search.cpan.org/dist/Mail-GnuPG/
+Group:         Development/Libraries
+URL:           http://search.cpan.org/dist/Mail-GnuPG/
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:     noarch
+BuildArch:     noarch
 
-Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-Source0:       
http://search.cpan.org/CPAN/authors/id/R/RS/RSPIER/Mail-GnuPG-%{version}.tar.gz
+Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Source0:       
http://www.cpan.org/authors/id/D/DD/DDB/Mail-GnuPG-%{version}.tar.gz
 
-BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires: perl(GnuPG::Interface)
+BuildRequires: perl(Mail::Address)
 BuildRequires: perl(MIME::Entity)
 BuildRequires: perl(MIME::Parser)
-BuildRequires: perl(Mail::Address)
+BuildRequires: perl(Module::Build)
 
 # Required by the tests
+BuildRequires: perl(Test::More)
 BuildRequires: perl(Test::Pod) >= 0.95
+BuildRequires: /usr/bin/gpg
+BuildRequires: /usr/bin/gpg-agent /usr/libexec/gpg-preset-passphrase
 
 %description
 Use GnuPG::Interface to process or create PGP signed or encrypted email.
@@ -29,21 +32,21 @@ iconv -f iso-8859-1 -t utf-8 README > README~
 mv README~ README
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+%{__perl} Build.PL installdirs=vendor
+./Build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %check
-make test
+GPG_PRESET_PASSPHRASE=/usr/libexec/gpg-preset-passphrase ./Build test
 
 %files
 %defattr(-,root,root)
@@ -52,6 +55,11 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Jan 17 2011 Ralf Corsépius < corse...@fedoraproject.org> - 0.16-1
+- Upstream update.
+- Reflect upstream Source0-URL having changed.
+- Reflect upstream having changed to Module::Build.
+
 * Mon May 03 2010 Marcela Maslanova <mmasl...@redhat.com> - 0.15-6
 - Mass rebuild with perl-5.12.0
 
diff --git a/sources b/sources
index 29441e6..9bc6a84 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7f18a7af0d8998a3f362e8e12abe16a2  Mail-GnuPG-0.15.tar.gz
+ab13896e4410563c2c4f92f7de6684ae  Mail-GnuPG-0.16.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to