diff --git a/Clone-0.45.tar.gz b/Clone-0.45.tar.gz new file mode 100644 index 0000000..d4b1df2 --- /dev/null +++ b/Clone-0.45.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb6ee348afa95432e4878893b46752549e70dc68fe6d9e430d1d2e99079a9e6 +size 16130 diff --git a/perl-Clone.spec b/perl-Clone.spec index 675d86a..efcc62b 100644 --- a/perl-Clone.spec +++ b/perl-Clone.spec @@ -1,57 +1,90 @@ -%define name perl-Clone -%define version 1.0 -%define release 1 -Summary: This is what perl-Clone does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Name: perl-Clone +Version: 0.45 +Release: 2%{?org_tag}%{?dist} +Summary: Recursively copy Perl datatypes +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Clone/ +Source0: http://www.cpan.org/authors/id/R/RD/RDF/Clone-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(B::COW) >= 0.004 +# Run-time: +BuildRequires: perl(AutoLoader) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Tests: +BuildRequires: perl(Test::More) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +# Optional tests: +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Hash::Util::FieldHash) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Taint::Runtime) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%{?perl_default_filter} + %description -This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied variables and objects. - -clone() takes a scalar argument and an optional parameter that can be used to limit the depth of the copy. To duplicate lists, arrays or hashes, pass them in by reference. +This module provides a clone() method which makes recursive +copies of nested hash, array, scalar and reference types, +including tied variables and objects. - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +clone() takes a scalar argument and an optional parameter that +can be used to limit the depth of the copy. To duplicate lists, +arrays or hashes, pass them in by reference. %prep - -%setup -q +%setup -q -n Clone-%{version} +find . -type f -exec chmod -c -x {} + %build +%{__perl} Makefile.PL --skipdeps INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test %clean -cd .. -rm -rf %{name}-%{version} +rm -rf %{buildroot} -%pre +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Clone* +%{_mandir}/man3/* -%preun +%changelog +* Thu Jan 23 2025 Jean-Philippe Pialasse 0.45-2.sme +- import to SME11 -%post +* Thu Jan 13 2022 Gavin Carr 0.45-1 +- Update to version 0.45. -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Sun Apr 29 2018 Gavin Carr 0.39-1 +- Update to version 0.39. + +* Mon Feb 07 2011 Gavin Carr 0.31-1 +- Specfile autogenerated by cpanspec 1.78.