forked from pool/perl-Hash-MultiValue
Accepting request 66730 from devel:languages:perl
Accepted submit request 66730 from user babelworx OBS-URL: https://build.opensuse.org/request/show/66730 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Hash-MultiValue?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Hash-MultiValue-0.08.tar.bz2
Normal file
3
Hash-MultiValue-0.08.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:39b5aa7483aa598288f0b0f3655df0ee78297fa2b269398612e6dbe36046a31c
|
||||||
|
size 42718
|
16
perl-Hash-MultiValue.changes
Normal file
16
perl-Hash-MultiValue.changes
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 30 19:20:18 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- switch to perl_requires macro
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 22 01:25:28 UTC 2010 - dbahi@novell.com
|
||||||
|
|
||||||
|
- remove done_testing; add qw(no_plan) for some tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 21 00:59:08 UTC 2010 - dbahi@novell.com
|
||||||
|
|
||||||
|
- initial package 0.08
|
||||||
|
* created by cpanspec 1.78
|
||||||
|
|
70
perl-Hash-MultiValue.spec
Normal file
70
perl-Hash-MultiValue.spec
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Hash-MultiValue (Version 0.08)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 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
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: perl-Hash-MultiValue
|
||||||
|
%define cpan_name Hash-MultiValue
|
||||||
|
Summary: Store multiple values per key
|
||||||
|
Version: 0.08
|
||||||
|
Release: 1
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Url: http://search.cpan.org/dist/Hash-MultiValue/
|
||||||
|
#Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Hash-MultiValue-%{version}.tar.gz
|
||||||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
Patch0: test-more-no-plan.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{perl_requires}
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl >= 5.8.1
|
||||||
|
Requires: perl >= 5.8.1
|
||||||
|
|
||||||
|
%description
|
||||||
|
Hash::MultiValue is an object (and a plain hash reference) that may contain
|
||||||
|
multiple values per key, inspired by MultiDict of WebOb.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
|
%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_gen_filelist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes README
|
||||||
|
|
||||||
|
%changelog
|
62
test-more-no-plan.patch
Normal file
62
test-more-no-plan.patch
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
---
|
||||||
|
t/hash.t | 4 +---
|
||||||
|
t/multi.t | 2 +-
|
||||||
|
t/ref.t | 2 --
|
||||||
|
t/write.t | 5 +----
|
||||||
|
4 files changed, 3 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
Index: Hash-MultiValue-0.08/t/hash.t
|
||||||
|
===================================================================
|
||||||
|
--- Hash-MultiValue-0.08.orig/t/hash.t 2010-01-30 17:15:59.000000000 -0500
|
||||||
|
+++ Hash-MultiValue-0.08/t/hash.t 2010-09-21 21:18:29.880648006 -0400
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
use strict;
|
||||||
|
-use Test::More;
|
||||||
|
+use Test::More qw(no_plan);
|
||||||
|
use Hash::MultiValue;
|
||||||
|
|
||||||
|
my $hash = Hash::MultiValue->new(
|
||||||
|
@@ -62,5 +62,3 @@
|
||||||
|
is_deeply [ $hash->keys ], [ qw(foo foo bar baz) ];
|
||||||
|
is_deeply [ $hash->values ], [ qw(b c bba 34) ];
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-done_testing;
|
||||||
|
Index: Hash-MultiValue-0.08/t/multi.t
|
||||||
|
===================================================================
|
||||||
|
--- Hash-MultiValue-0.08.orig/t/multi.t 2010-01-30 17:15:59.000000000 -0500
|
||||||
|
+++ Hash-MultiValue-0.08/t/multi.t 2010-09-21 21:18:29.880648006 -0400
|
||||||
|
@@ -24,4 +24,4 @@
|
||||||
|
};
|
||||||
|
ok $@;
|
||||||
|
|
||||||
|
-done_testing;
|
||||||
|
+done_testing();
|
||||||
|
Index: Hash-MultiValue-0.08/t/ref.t
|
||||||
|
===================================================================
|
||||||
|
--- Hash-MultiValue-0.08.orig/t/ref.t 2010-02-11 06:04:15.000000000 -0500
|
||||||
|
+++ Hash-MultiValue-0.08/t/ref.t 2010-09-21 21:18:51.605659147 -0400
|
||||||
|
@@ -9,5 +9,3 @@
|
||||||
|
my $h = Hash::MultiValue->new;
|
||||||
|
is ref $h, 'HASH';
|
||||||
|
|
||||||
|
-done_testing;
|
||||||
|
-
|
||||||
|
Index: Hash-MultiValue-0.08/t/write.t
|
||||||
|
===================================================================
|
||||||
|
--- Hash-MultiValue-0.08.orig/t/write.t 2009-12-16 15:43:35.000000000 -0500
|
||||||
|
+++ Hash-MultiValue-0.08/t/write.t 2010-09-21 21:18:29.884649263 -0400
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
use strict;
|
||||||
|
-use Test::More;
|
||||||
|
+use Test::More qw(no_plan);
|
||||||
|
use Hash::MultiValue;
|
||||||
|
|
||||||
|
my $hash = Hash::MultiValue->new(
|
||||||
|
@@ -26,6 +26,3 @@
|
||||||
|
$hash->clear;
|
||||||
|
is_deeply $hash, {};
|
||||||
|
isa_ok $hash, 'Hash::MultiValue';
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-done_testing;
|
Reference in New Issue
Block a user