diff --git a/Clone-0.45.tar.gz b/Clone-0.45.tar.gz new file mode 100644 index 0000000..db33064 Binary files /dev/null and b/Clone-0.45.tar.gz differ diff --git a/perl-Clone.spec b/perl-Clone.spec new file mode 100644 index 0000000..a8ceb35 --- /dev/null +++ b/perl-Clone.spec @@ -0,0 +1,70 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Clone +Version: 0.45 +Release: 2 +Summary: Recursively copy Perl datatypes +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Clone/ +Source0: http://www.cpan.org/authors/id/A/AT/ATOOMIC/Clone-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module provides a clone() method which makes recursive copies of +nested hash, array, scalar and reference types, including tied variables +and objects. + +%package help +Summary: Recursively copy Perl datatypes +Provides: perl-Clone-doc + +%description help +This module provides a clone() method which makes recursive copies of +nested hash, array, scalar and reference types, including tied variables +and objects. + +%prep +%setup -q -n Clone-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +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 -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%check +make test +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes META.json README.md +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Clone* + +%files help +%{_mandir}/* + +%changelog +* Fri Jul 10 2020 chengzihan - 0.45-2 +- Package init diff --git a/perl-Clone.yaml b/perl-Clone.yaml new file mode 100644 index 0000000..d323f9e --- /dev/null +++ b/perl-Clone.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: Clone +tag_prefix: "^" +seperator: "."