rpms/perl-Net-SCP/devel perl-Net-SCP.spec,1.10,1.11

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Fri Nov 3 21:32:54 UTC 2006


Author: steve

Update of /cvs/extras/rpms/perl-Net-SCP/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16445

Modified Files:
	perl-Net-SCP.spec 
Log Message:
Cleanup to more closely match cpanspec output.


Index: perl-Net-SCP.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Net-SCP/devel/perl-Net-SCP.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- perl-Net-SCP.spec	28 Aug 2006 04:24:48 -0000	1.10
+++ perl-Net-SCP.spec	3 Nov 2006 21:32:23 -0000	1.11
@@ -1,62 +1,55 @@
-%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
-
 Name:           perl-Net-SCP
 Version:        0.07
-Release:        4%{dist}
-
+Release:        5%{?dist}
 Summary:        Perl extension for secure copy protocol
-
 License:        GPL or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Net-SCP/
-Source0:        http://www.cpan.org/authors/id/I/IV/IVAN/Net-SCP-0.07.tar.gz
+Source0:        http://www.cpan.org/authors/id/I/IV/IVAN/Net-SCP-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
-BuildRequires:  perl(Net::SSH), perl(String::ShellQuote)
+BuildRequires:  perl(Net::SSH)
+BuildRequires:  perl(String::ShellQuote)
 Requires:       openssh-clients
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 This module implements a Perl interface to scp.
 
-
 %prep
 %setup -q -n Net-SCP-%{version}
 chmod 644 Changes README SCP.pm
 
-
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
-
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-make install \
-  PERL_INSTALL_ROOT=%{buildroot} \
-  INSTALLARCHLIB=%{buildroot}%{perl_archlib}
-find %{buildroot} -type f -a \( -name perllocal.pod -o -name .packlist \
-  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w %{buildroot}/*
+rm -rf $RPM_BUILD_ROOT
 
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
-%check || :
-make test
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
+%{_fixperms} $RPM_BUILD_ROOT/*
 
-%clean
-rm -rf %{buildroot}
+%check
+make test
 
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorlib}/Net
-%{_mandir}/man3/*.3*
-
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
 
 %changelog
+* Thu Nov 02 2006 Steven Pritchard <steve at kspei.com> 0.07-5
+- Cleanup to more closely match cpanspec output.
+
 * Mon Aug 27 2006 Michael J. Knox <michael[AT]knox.net.nz> - 0.07-4
 - Rebuild for FC6
 




More information about the scm-commits mailing list