!1 init perl-File-Copy-Recursive
Merge pull request !1 from lkx690/master
This commit is contained in:
commit
005c8c98ba
BIN
File-Copy-Recursive-0.44.tar.gz
Normal file
BIN
File-Copy-Recursive-0.44.tar.gz
Normal file
Binary file not shown.
55
perl-File-Copy-Recursive.spec
Normal file
55
perl-File-Copy-Recursive.spec
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user