From 9b6bef04148158250280b9ff343d4c07a253c36a07aa12fcf2e4b87bcec1cdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 18:06:16 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-Devel-Cycle revision 57d44ba275d9f653f4b96d0da33134e2 --- .gitattributes | 23 +++++++++++++++ Devel-Cycle-1.12.tar.gz | 3 ++ Devel-Cycle-pm.patch | 11 +++++++ Devel-Cycle-t.patch | 35 ++++++++++++++++++++++ cpanspec.yml | 20 +++++++++++++ perl-Devel-Cycle.changes | 32 ++++++++++++++++++++ perl-Devel-Cycle.spec | 63 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 187 insertions(+) create mode 100644 .gitattributes create mode 100644 Devel-Cycle-1.12.tar.gz create mode 100644 Devel-Cycle-pm.patch create mode 100644 Devel-Cycle-t.patch create mode 100644 cpanspec.yml create mode 100644 perl-Devel-Cycle.changes create mode 100644 perl-Devel-Cycle.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/Devel-Cycle-1.12.tar.gz b/Devel-Cycle-1.12.tar.gz new file mode 100644 index 0000000..437df49 --- /dev/null +++ b/Devel-Cycle-1.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd3365c4d898b2b2bddbb78a46d507a18cca8490a290199547dab7f1e7390bc2 +size 7276 diff --git a/Devel-Cycle-pm.patch b/Devel-Cycle-pm.patch new file mode 100644 index 0000000..ac85ff2 --- /dev/null +++ b/Devel-Cycle-pm.patch @@ -0,0 +1,11 @@ +--- lib/Devel/Cycle.old 2009-08-24 08:54:45.000000000 -0400 ++++ lib/Devel/Cycle.pm 2010-04-16 20:53:30.000000000 -0400 +@@ -215,7 +215,7 @@ + sub _get_type { + my $thingy = shift; + return unless ref $thingy; +- return 'SCALAR' if UNIVERSAL::isa($thingy,'SCALAR') || UNIVERSAL::isa($thingy,'REF'); ++ return 'SCALAR' if UNIVERSAL::isa($thingy,'SCALAR') || UNIVERSAL::isa($thingy,'REF') || UNIVERSAL::isa($thingy,'Regexp'); + return 'ARRAY' if UNIVERSAL::isa($thingy,'ARRAY'); + return 'HASH' if UNIVERSAL::isa($thingy,'HASH'); + return 'CODE' if UNIVERSAL::isa($thingy,'CODE'); diff --git a/Devel-Cycle-t.patch b/Devel-Cycle-t.patch new file mode 100644 index 0000000..ee5edcc --- /dev/null +++ b/Devel-Cycle-t.patch @@ -0,0 +1,35 @@ +--- t/Devel-Cycle.old 2008-07-08 21:26:35.000000000 -0400 ++++ t/Devel-Cycle.t 2010-04-16 20:39:04.000000000 -0400 +@@ -5,7 +5,7 @@ + + # change 'tests => 1' to 'tests => last_test_to_print'; + +-use Test::More tests => 12; ++use Test::More tests => 13; + use Scalar::Util qw(weaken isweak); + BEGIN { use_ok('Devel::Cycle') }; + +@@ -87,6 +87,7 @@ + } + + { ++ no warnings qw{ once }; + *FOOBAR = *FOOBAR if 0; # cease -w + my $test2 = { glob => \*FOOBAR }; + +@@ -101,6 +102,15 @@ + is("@warnings", "", "Warn only once"); + } + ++{ ++ my $test_re = qr{foo}xms; ++ ++ my @warnings; ++ local $SIG{__WARN__} = sub { push @warnings, @_ }; ++ find_cycle($test_re); ++ ok( !@warnings, 'No warnings on Regex' ); ++} ++ + package foo; + use overload q("") => sub{ return 1 }; # show false alarm + diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..b49a120 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + Devel-Cycle-pm.patch: + Devel-Cycle-t.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Devel-Cycle.changes b/perl-Devel-Cycle.changes new file mode 100644 index 0000000..e0ee022 --- /dev/null +++ b/perl-Devel-Cycle.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Thu Apr 16 17:31:19 UTC 2015 - coolo@suse.com + +- updated to 1.12 + see /usr/share/doc/packages/perl-Devel-Cycle/Changes + + 1.12 Fri Nov 14 08:56:23 EST 2014 + - Moved to GitHub at https://github.com/lstein/Devel-Cycle + +------------------------------------------------------------------- +Tue Nov 30 19:20:09 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Fri Nov 19 15:33:16 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps +- add pm, t patch (rt.cpan.org#56681) + https://rt.cpan.org/Public/Bug/Display.html?id=56681 + +------------------------------------------------------------------- +Tue Oct 19 08:38:32 UTC 2010 - coolo@novell.com + +- add perl as explicit buildrequire + +------------------------------------------------------------------- +Tue Nov 24 17:39:04 CET 2009 - rschweikert@novell.com + +- Initial build, version 1.11 + diff --git a/perl-Devel-Cycle.spec b/perl-Devel-Cycle.spec new file mode 100644 index 0000000..40335cf --- /dev/null +++ b/perl-Devel-Cycle.spec @@ -0,0 +1,63 @@ +# +# spec file for package perl-Devel-Cycle +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: perl-Devel-Cycle +Version: 1.12 +Release: 0 +%define cpan_name Devel-Cycle +Summary: Find memory cycles in objects +License: GPL-1.0+ or Artistic-1.0 +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Devel-Cycle/ +Source0: http://www.cpan.org/authors/id/L/LD/LDS/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: Devel-Cycle-pm.patch +Patch1: Devel-Cycle-t.patch +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +%{perl_requires} + +%description +This is a simple developer's tool for finding circular references in +objects and other types of references. Because of Perl's reference-count +based memory management, circular references will cause memory leaks. + +%prep +%setup -q -n %{cpan_name}-%{version} +%patch0 +%patch1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README + +%changelog