From 1c34ac771959a9ed0c04d21724096442ba97e95e Mon Sep 17 00:00:00 2001 From: corsepiu Date: Thu, 18 Jan 2007 02:52:44 +0000 Subject: [PATCH] auto-import perl-File-Copy-Recursive-0.30-1 on branch devel from perl-File-Copy-Recursive-0.30-1.src.rpm --- .cvsignore | 1 + perl-File-Copy-Recursive.spec | 49 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 51 insertions(+) create mode 100644 perl-File-Copy-Recursive.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f0551e5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-Copy-Recursive-0.30.tar.gz diff --git a/perl-File-Copy-Recursive.spec b/perl-File-Copy-Recursive.spec new file mode 100644 index 0000000..27ca6fb --- /dev/null +++ b/perl-File-Copy-Recursive.spec @@ -0,0 +1,49 @@ +Name: perl-File-Copy-Recursive +Version: 0.30 +Release: 1%{?dist} +Summary: Extension for recursively copying files and directories +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Copy-Recursive/ +Source0: http://www.cpan.org/modules/by-module/File/File-Copy-Recursive-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Spec) + +%description +This module copies and moves directories recursively to an optional depth and +attempts to preserve each file or directory's mode. + +%prep +%setup -q -n File-Copy-Recursive-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%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/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/File +%{_mandir}/man3/* + +%changelog +* Wed Jan 17 2007 Ralf Corsépius - 0.30-1 +- Initial Fedora submission. diff --git a/sources b/sources index e69de29..ba69007 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d764baa2507d4ab4471174d80589de1f File-Copy-Recursive-0.30.tar.gz