Accepting request 66077 from devel:languages:perl
Accepted submit request 66077 from user licensedigger OBS-URL: https://build.opensuse.org/request/show/66077 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Package-Stash?expand=0&rev=6
This commit is contained in:
commit
04ae866e07
@ -1,126 +0,0 @@
|
||||
diff -ruN Package-Stash-0.13-orig/t/01-basic.t Package-Stash-0.13/t/01-basic.t
|
||||
--- Package-Stash-0.13-orig/t/01-basic.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/01-basic.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
use Package::Stash;
|
||||
@@ -324,4 +324,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/02-extension.t Package-Stash-0.13/t/02-extension.t
|
||||
--- Package-Stash-0.13-orig/t/02-extension.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/02-extension.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
{
|
||||
@@ -70,4 +70,4 @@
|
||||
|
||||
ok(!defined($Foo::{baz}), '... the %baz slot has still not been created');
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/03-io.t Package-Stash-0.13/t/03-io.t
|
||||
--- Package-Stash-0.13-orig/t/03-io.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/03-io.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
{
|
||||
@@ -47,4 +47,4 @@
|
||||
is($stash->get_package_symbol('baz'), *Foo::foo{IO}, "got the right baz");
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/04-get.t Package-Stash-0.13/t/04-get.t
|
||||
--- Package-Stash-0.13-orig/t/04-get.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/04-get.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use Package::Stash;
|
||||
|
||||
@@ -63,4 +63,4 @@
|
||||
"got the right variable");
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/05-isa.t Package-Stash-0.13/t/05-isa.t
|
||||
--- Package-Stash-0.13-orig/t/05-isa.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/05-isa.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use Package::Stash;
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
@{$stash->get_package_symbol('@ISA')} = @ISA;
|
||||
isa_ok('Foo', 'Bar');
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/06-addsub.t Package-Stash-0.13/t/06-addsub.t
|
||||
--- Package-Stash-0.13-orig/t/06-addsub.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/06-addsub.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
|
||||
@@ -42,4 +42,4 @@
|
||||
is $DB::sub{'Foo::dunk'}, sprintf "%s:%d-%d", "FileName", 100, 199,
|
||||
'... got the right %DB::sub value for dunk with specified args';
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -ruN Package-Stash-0.13-orig/t/10-synopsis.t Package-Stash-0.13/t/10-synopsis.t
|
||||
--- Package-Stash-0.13-orig/t/10-synopsis.t 2010-10-31 17:03:48.000000000 +0100
|
||||
+++ Package-Stash-0.13/t/10-synopsis.t 2010-11-11 22:40:40.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use Package::Stash;
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
my $namespace = $stash->namespace;
|
||||
is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly");
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3a79341f166344a1955ac969e999db611b43600ebf4e1437d18d7a6928f63fae
|
||||
size 17102
|
3
Package-Stash-0.28.tar.gz
Normal file
3
Package-Stash-0.28.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:490a859eea23279113dd004aa084c64984cf368b571fa95337d0e7950d5d6c6c
|
||||
size 29299
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 31 08:10:57 UTC 2011 - coolo@novell.com
|
||||
|
||||
- update to 0.28, see Changes:
|
||||
- META.json fixes (mst)
|
||||
- also skip the package-stash-conflicts script (Father Chrysostomos)
|
||||
- make the namespace cache lazy and weak, in case the stash is deleted
|
||||
- but, this doesn't work on 5.8, so disable the namespace caching
|
||||
entirely there
|
||||
- make the leak tests author-only, since some smokers run release tests
|
||||
- make the leak tests release-only, since they keep randomly failing on
|
||||
platforms i don't have access to. people are encouraged to submit
|
||||
patches for these if they are affected.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:34:16 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl-Package-Stash (Version 0.13)
|
||||
# spec file for package perl-Package-Stash (Version 0.28)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -15,51 +15,51 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Package-Stash
|
||||
%define cpan_name Package-Stash
|
||||
Summary: Routines for manipulating stashes
|
||||
Version: 0.13
|
||||
Release: 2
|
||||
Version: 0.28
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
%define cpan_name Package-Stash
|
||||
Summary: routines for manipulating stashes
|
||||
Url: http://search.cpan.org/dist/Package-Stash/
|
||||
#Source: http://www.cpan.org/modules/by-module/Package/Package-Stash-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
Patch: %{cpan_name}-0.13-Build_n_Test.patch
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%if 0%{?suse_version} < 1130
|
||||
BuildRequires: perl(Test::More)
|
||||
%else
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
%endif
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
#
|
||||
BuildRequires: perl(Package::DeprecationManager)
|
||||
BuildRequires: perl(Package::Stash::XS) >= 0.22
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::Requires)
|
||||
Requires: perl(Package::DeprecationManager)
|
||||
Requires: perl(Package::Stash::XS) >= 0.22
|
||||
Requires: perl(Scalar::Util)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
|
||||
incredibly messy, and easy to get wrong. This module hides all of that
|
||||
behind a simple API.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Jesse Luehrs <doy at tozt dot net>
|
||||
NOTE: Most methods in this class require a variable specification that
|
||||
includes a sigil. If this sigil is absent, it is assumed to represent the
|
||||
IO slot.
|
||||
|
||||
Due to limitations in the typeglob API available to perl code, and to
|
||||
typeglob manipulation in perl being quite slow, this module provides two
|
||||
implementations - one in pure perl, and one using XS. The XS implementation
|
||||
is to be preferred for most usages; the pure perl one is provided for cases
|
||||
where XS modules are not a possibility. The current implementation in use
|
||||
can be set by setting '$ENV{PACKAGE_STASH_IMPLEMENTATION}' or
|
||||
'$Package::Stash::IMPLEMENTATION' before loading Package::Stash (with the
|
||||
environment variable taking precedence), otherwise, it will use the XS
|
||||
implementation if possible, falling back to the pure perl one.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%if 0%{?suse_version} < 1130
|
||||
%patch -p1
|
||||
## skip t/05-isa.t
|
||||
%{__mv} t/05-isa.t t/05-isa.tmv
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@ -70,18 +70,14 @@ Authors:
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes dist.ini LICENSE META.json README weaver.ini
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes LICENSE README weaver.ini
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user