init perl-File-Copy-Recursive

This commit is contained in:
lkx690 2020-01-10 15:31:19 +08:00
parent 1dd01f9ad7
commit 974f763c69
2 changed files with 55 additions and 0 deletions

Binary file not shown.

View File

@ -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 <likexin4@huawei.com> - 0.44-4
- package init