Author: pghmcfc Update of /cvs/pkgs/rpms/perl-Net-SSH-Perl/EL-6 In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv18870/EL-6 Modified Files: perl-Net-SSH-Perl.spec Log Message: Don't clobber ~/.gnupg during build Index: perl-Net-SSH-Perl.spec =================================================================== RCS file: /cvs/pkgs/rpms/perl-Net-SSH-Perl/EL-6/perl-Net-SSH-Perl.spec,v retrieving revision 1.14 retrieving revision 1.15 diff -u -p -r1.14 -r1.15 --- perl-Net-SSH-Perl.spec 26 Jul 2009 13:46:37 -0000 1.14 +++ perl-Net-SSH-Perl.spec 13 May 2010 14:16:59 -0000 1.15 @@ -1,14 +1,10 @@ # IDEA is a patent-encumbered alogorithm so default to not supporting it # To include support for the IDEA algorithm, use: rpmbuild --with IDEA -# Noarch package doesn't provide debuginfo but the default script -# interferes with signature checking so disable it completely -%define debug_package %{nil} - Summary: SSH (Secure Shell) client Name: perl-Net-SSH-Perl Version: 1.34 -Release: 4%{?dist} +Release: 7%{?dist} License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Net-SSH-Perl/ @@ -52,17 +48,26 @@ Net::SSH::Perl is an all-Perl module imp client. It is compatible with both the SSH-1 and SSH-2 protocols. %prep -%setup -q -n Net-SSH-Perl-%{version} +%setup -q -c -n Net-SSH-Perl + +# Copy up documentation for convenience with %%doc +%{__cp} -a Net-SSH-Perl-%{version}/{Changes,README,LICENSE,eg,ToDo} . # Avoid extra deps from examples %{__chmod} -x eg/* +# Create a GPG directory for testing, to avoid using ~/.gnupg +%{__mkdir} --mode=0700 gnupghome +export GNUPGHOME=$(pwd)/gnupghome +%{__gpg} --import %{SOURCE1} + # Remove Crypt::IDEA dep if we're not supporting the IDEA algorithm %define bogusreq 'perl(Crypt::IDEA)' %global reqfilt /bin/sh -c "%{__perl_requires} | %{__grep} -Fvx %{bogusreq}" %{!?_with_IDEA:%define __perl_requires %{reqfilt}} %build +cd Net-SSH-Perl-%{version} ( # Protocol support (select one) # 1=SSH1 2=SSH2 3=Both @@ -74,18 +79,20 @@ client. It is compatible with both the S ) | %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} - -%check -# Critic and POD tests currently fail -%{__gpg} --import %{SOURCE1} -LC_ALL=en_US %{__make} test TEST_AUTHOR=1 TEST_CRITIC=0 TEST_SIGNATURE=1 TEST_SPELL=1 +cd - %install %{__rm} -rf %{buildroot} -%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +%{__make} -C Net-SSH-Perl-%{version} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' -/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';' -%{__chmod} -R u+w %{buildroot}/* +/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null +%{__chmod} -R u+w %{buildroot} + +%check +# Critic and POD tests currently fail +export GNUPGHOME=$(pwd)/gnupghome +LC_ALL=en_US %{__make} -C Net-SSH-Perl-%{version} test \ + TEST_AUTHOR=1 TEST_CRITIC=0 TEST_SIGNATURE=1 TEST_SPELL=1 %clean %{__rm} -rf %{buildroot} @@ -97,6 +104,15 @@ LC_ALL=en_US %{__make} test TEST_AUTHOR= %{_mandir}/man3/Net::SSH::Perl*.3pm* %changelog +* Thu May 13 2010 Paul Howarth <paul@xxxxxxxxxxxx> 1.34-7 +- Don't clobber ~/.gnupg during build + +* Tue May 04 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 1.34-6 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal <skasal@xxxxxxxxxx> - 1.34-5 +- Rebuild against perl 5.10.1 + * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.34-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild -- 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