File perl-Clone-Choose.spec of Package Clone-Choose
%define cpan_name Clone-Choose
Name: perl-Clone-Choose
Version: 0.010
Release: 1
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Clone::Choose - Choose appropriate clone utility
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIXED/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl-Test-Without-Module
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)
%description
Clone::Choose checks several different modules which provides a clone() function and selects an appropriate one. The default preference is
Clone
Storable
Clone::PP
This list might evolve in future. Please see "EXPORTS" how to pick a particular one.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
#%perl_make_install
#%perl_process_packlist
#%perl_gen_filelist
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find %{buildroot} -type f -name "perllocal.pod" -exec rm -f {} \;
find %{buildroot} -type f -name ".packlist" -exec rm -f {} \;
rm -rf %{buildroot}/usr/share/man/
find %{buildroot} -type f | sed "s#%{buildroot}##g" > %{buildroot}/../%{name}-filelist
%files -f %{buildroot}/../%{name}-filelist
%changelog