diff --git a/File-Copy-Recursive-0.44.tar.gz b/File-Copy-Recursive-0.44.tar.gz new file mode 100644 index 0000000..b8e92e7 Binary files /dev/null and b/File-Copy-Recursive-0.44.tar.gz differ diff --git a/perl-File-Copy-Recursive.spec b/perl-File-Copy-Recursive.spec new file mode 100644 index 0000000..a67035e --- /dev/null +++ b/perl-File-Copy-Recursive.spec @@ -0,0 +1,55 @@ +%bcond_with test +Name: perl-File-Copy-Recursive +Version: 0.44 +Release: 4 +Summary: Perl extension for recursively copying files and directories +License: GPL+ or Artistic +URL: https://metacpan.org/release/File-Copy-Recursive +Source0: https://cpan.metacpan.org/modules/by-module/File/File-Copy-Recursive-%{version}.tar.gz +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) perl(File::Glob) +BuildRequires: %{__perl} %{__make} perl-generators perl(Carp) perl(Cwd) perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Glob) perl(File::Spec) +BuildRequires: perl(File::Temp) perl(Path::Tiny) perl(strict) perl(vars) perl(warnings) + +%if %{with test} +BuildRequires: perl(Test::Deep) perl(Test::Exception) perl(Test::Fatal) perl(Test::File) +BuildRequires: perl(Test::More) perl(Test::Warnings) +%endif + +%description +This module has 3 functions, one to copy files only, one to copy directories +only and one to do either depending on the argument's type. + +%package help +Summary: Help documentation for the %{name} + +%description help +Help documentation for the %{name}. + +%prep +%autosetup -n File-Copy-Recursive-%{version} -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +%make_build + +%install +%{__make} pure_install DESTDIR=%{buildroot} +chmod -R u+w %{buildroot}/* + +%check +%if %{with test} +%{__make} test +%endif + +%files +%{perl_vendorlib}/* + +%files help +%doc Changes README +%{_mandir}/man3/* + +%changelog +* Wed Jan 8 2020 likexin - 0.44-4 +- package init