From 52c45af5293df2c04eac6b84453ac267cdb3fc44d21b11399079aa4cb70919fe Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 4 Jun 2013 08:39:45 +0000 Subject: [PATCH] Accepting request 177287 from home:coolo:update-perl - updated to 0.34 - Stop skipping SvROK handling for all magical scalars. This fixes RT issues 67105, 79730 and 80201 (FLORA). - making the Changes file compliant to the CPAN::Changes spec (GARU). - Fixing tests when Scalar::Util::weaken is not available. As a result, tests should now pass even in odd OpenBSD versions (GARU). - removed dubious documentation on the optional parameter until it is 'fixed'. Right now it just increases the refcount when it's 0, and clones otherwise (which isn't exactly what it says). This fixes RT issue 57773 (GARU). - updated remark on Storable's dclone() to address RT issue 50174 (GARU) - updated Makefile.PL to include test dependencies (GARU) OBS-URL: https://build.opensuse.org/request/show/177287 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Clone?expand=0&rev=23 --- Clone-0.31.tar.gz | 3 --- Clone-0.34.tar.gz | 3 +++ perl-Clone.changes | 16 +++++++++++++++ perl-Clone.spec | 50 +++++++++++++++++++--------------------------- 4 files changed, 39 insertions(+), 33 deletions(-) delete mode 100644 Clone-0.31.tar.gz create mode 100644 Clone-0.34.tar.gz diff --git a/Clone-0.31.tar.gz b/Clone-0.31.tar.gz deleted file mode 100644 index 1b9cd65..0000000 --- a/Clone-0.31.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94432ba5cadbf9f78fb29a23f68481e70e24d2e77f1f669f2919b00cc3a15f39 -size 11753 diff --git a/Clone-0.34.tar.gz b/Clone-0.34.tar.gz new file mode 100644 index 0000000..56650dd --- /dev/null +++ b/Clone-0.34.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3da2320ae650765b415a5e11edde4a0768491487fccad544e5c7566645146362 +size 13192 diff --git a/perl-Clone.changes b/perl-Clone.changes index 535630d..b9a8674 100644 --- a/perl-Clone.changes +++ b/perl-Clone.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Jun 3 15:40:26 UTC 2013 - coolo@suse.com + +- updated to 0.34 + - Stop skipping SvROK handling for all magical scalars. This fixes + RT issues 67105, 79730 and 80201 (FLORA). + - making the Changes file compliant to the CPAN::Changes spec (GARU). + - Fixing tests when Scalar::Util::weaken is not available. As a + result, tests should now pass even in odd OpenBSD versions (GARU). + - removed dubious documentation on the optional parameter until + it is 'fixed'. Right now it just increases the refcount when it's 0, + and clones otherwise (which isn't exactly what it says). This + fixes RT issue 57773 (GARU). + - updated remark on Storable's dclone() to address RT issue 50174 (GARU) + - updated Makefile.PL to include test dependencies (GARU) + ------------------------------------------------------------------- Fri Nov 18 11:10:34 UTC 2011 - coolo@suse.com diff --git a/perl-Clone.spec b/perl-Clone.spec index 75d4054..69a69b3 100644 --- a/perl-Clone.spec +++ b/perl-Clone.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Clone # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,40 +15,43 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Clone +Version: 0.34 +Release: 0 %define cpan_name Clone -Summary: Recursively copy Perl datatypes -Version: 0.31 -Release: 8 -License: GPL+ or Artistic +Summary: recursively copy Perl datatypes +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Clone/ -#Source: http://www.cpan.org/authors/id/R/RD/RDF/Clone-0.31.tar.gz -Source: %{cpan_name}-%{version}.tar.gz +Source: http://www.cpan.org/authors/id/G/GA/GARU/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +#BuildRequires: perl(Clone) +#BuildRequires: perl(Hash::Util::FieldHash) +%{perl_requires} %description This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied variables and objects. -For a slower, but more flexible solution see Storable's dclone(). +clone() takes a scalar argument and duplicates it. To duplicate lists, +arrays or hashes, pass them in by reference. e.g. + + my $copy = clone (\@array); + + # or + + my %copy = %{ clone (\%hash) }; %prep %setup -q -n %{cpan_name}-%{version} -### rpmlint: -# spurious-executable-perm -# script-without-shebang -%{__chmod} 0644 Changes *.{xs,pm} +find . -type f -print0 | xargs -0 chmod 644 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check @@ -56,24 +59,11 @@ For a slower, but more flexible solution see Storable's dclone(). %install %perl_make_install -### since 11.4 perl_process_packlist -### removes .packlist, perllocal.pod files -%if 0%{?suse_version} > 1130 %perl_process_packlist -%else -# do not perl_process_packlist -# remove .packlist file -%{__rm} -f $RPM_BUILD_ROOT%perl_vendorarch/auto/Clone/.packlist -# remove perllocal.pod file -%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod -%endif %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) +%defattr(-,root,root,755) %doc Changes %changelog