From cebd10a8a28445ea2b551361a7899e5f8272fd07 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:42:29 +0100 Subject: [PATCH] automatic update by autodist [release 0.36-1mamba;Mon Dec 16 2013] --- README.md | 3 +++ perl-Clone.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 perl-Clone.spec diff --git a/README.md b/README.md index b14be51..e538bde 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Clone +This module provides a clone() method which makes recursive copies of nested hash, array, scalar and +reference types, including tied variables and objects. + diff --git a/perl-Clone.spec b/perl-Clone.spec new file mode 100644 index 0000000..0faa9a9 --- /dev/null +++ b/perl-Clone.spec @@ -0,0 +1,71 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Clone +Version: 0.36 +Release: 1mamba +Summary: Clone - recursively copy Perl datatypes +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/G/GA/GARU/Clone-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::ParseXS) +BuildRequires: perl(Taint::Runtime) +BuildRequires: perl(Test::More) +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +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} + +find . -type f -exec chmod -c -x {} ';' + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorarch}/Clone.pm +%{perl_vendorarch}/auto/Clone/ +%{_mandir}/man3/*.3pm.gz +%doc Changes + +%changelog +* Mon Dec 16 2013 Automatic Build System 0.36-1mamba +- automatic update by autodist + +* Thu Sep 05 2013 Automatic Build System 0.35-1mamba +- automatic update by autodist + +* Sat Apr 27 2013 Automatic Build System 0.34-1mamba +- update to 0.34 + +* Mon Nov 12 2012 Silvan Calarco 0.31-2mamba +- perl 5.16 mass rebuild + +* Thu Feb 17 2011 gil 0.31-1mamba +- package created by autospec