commit 3c9bb9daeb74d64e0c8cde7788acc09e356c1d3a Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Apr 21 14:00:06 2011 +0100 Pseudo-merge EPEL-5/EPEL-6/Fedora versions perl-Module-Signature.spec | 54 ++++++++++++++++++++++++------------------- 1 files changed, 30 insertions(+), 24 deletions(-) --- diff --git a/perl-Module-Signature.spec b/perl-Module-Signature.spec index 3c98382..a6335ab 100644 --- a/perl-Module-Signature.spec +++ b/perl-Module-Signature.spec @@ -1,66 +1,72 @@ Name: perl-Module-Signature Version: 0.67 -Release: 2%{?dist} +Release: 3%{?dist} Summary: CPAN signature management utilities and modules - Group: Development/Libraries License: CC0 URL: http://search.cpan.org/dist/Module-Signature/ -Source0: http://www.cpan.org/authors/id/A/AU/AUDREYT/Module-Signature-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Module-Signature-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch BuildRequires: gnupg +BuildRequires: perl(Digest::SHA) BuildRequires: perl(Digest::SHA1) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IPC::Run) BuildRequires: perl(Test::More) Requires: gnupg +Requires: perl(Digest::SHA) Requires: perl(Digest::SHA1) -# Optional, but no way to tell that to rpm at the moment :( +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Would prefer this to be Suggests: really... Requires: perl(PAR::Dist) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This package contains command line tools and utilities a module for checking and creating SIGNATURE files for Perl CPAN distributions. - %prep -%setup -q -n Module-Signature-%{version} +%setup -q -c -n Module-Signature +# Copy up documentation for convenience with %%doc +cp -a Module-Signature-%{version}/{AUTHORS,Changes,README,*.pub} . + +# Create a GPG directory for testing, to avoid using ~/.gnupg +mkdir --mode=0700 gnupghome %build -PERL_AUTOINSTALL=--skipdeps \ -%{__perl} Makefile.PL INSTALLDIRS=vendor --installdeps +export GNUPGHOME=$(pwd)/gnupghome +cd Module-Signature-%{version} +perl Makefile.PL INSTALLDIRS=vendor --skipdeps make %{?_smp_mflags} - +cd - %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -a -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +rm -rf %{buildroot} +make -C Module-Signature-%{version} pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null +chmod -R u+w %{buildroot} %check -make test - +export GNUPGHOME=$(pwd)/gnupghome +make -C Module-Signature-%{version} test TEST_SIGNATURE=1 %clean -rm -rf $RPM_BUILD_ROOT - +rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS Changes README *.pub %{_bindir}/cpansign %{perl_vendorlib}/Module/ -%{_mandir}/man[13]/*.[13]* - +%{_mandir}/man1/cpansign.1* +%{_mandir}/man3/Module::Signature.3pm* %changelog +* Thu Apr 21 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.67-3 +- Pseudo-merge EPEL-5/EPEL-6/Fedora versions + * Tue Apr 19 2011 Ville Skyttà <ville.skytta@xxxxxx> - 0.67-2 - Appease rpmbuild >= 4.9. -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel