Sync from SUSE:SLFO:Main perl-Devel-Cycle revision 57d44ba275d9f653f4b96d0da33134e2

This commit is contained in:
Adrian Schröter 2024-05-03 18:06:16 +02:00
commit 9b6bef0414
7 changed files with 187 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
Devel-Cycle-1.12.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

11
Devel-Cycle-pm.patch Normal file
View File

@ -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');

35
Devel-Cycle-t.patch Normal file
View File

@ -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

20
cpanspec.yml Normal file
View File

@ -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

32
perl-Devel-Cycle.changes Normal file
View File

@ -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

63
perl-Devel-Cycle.spec Normal file
View File

@ -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