71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
Name: perl-File-Copy-Recursive
|
|
Version: 0.45
|
|
Release: 2%{?dist}
|
|
Summary: Perl 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/authors/id/D/DM/DMUEY/File-Copy-Recursive-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
BuildRequires: perl(inc::Module::Install)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(File::Copy)
|
|
BuildRequires: perl(File::Glob)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(Path::Tiny)
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::File)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
BuildRequires: perl(Test::Warnings)
|
|
Requires: perl(Cwd)
|
|
Requires: perl(File::Copy)
|
|
Requires: perl(File::Glob)
|
|
Requires: perl(File::Spec)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
This module copies and moves directories recursively (or single files,
|
|
well... singley) 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 -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes META.json README README.md
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Fri Jan 24 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.45-2.sme
|
|
- update release
|
|
|
|
* Tue Jan 21 2025 Koozali 0.45-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|