8
0

Accepting request 903065 from home:pmonrealgonzalez:branches:devel:languages:perl

- Fix autoupdate: Update spec file
- Rebase Convert-ASN1-0.22-test.diff and rename it to
  perl-Convert-ASN1-0.31-test.patch

OBS-URL: https://build.opensuse.org/request/show/903065
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-ASN1?expand=0&rev=34
This commit is contained in:
2021-06-29 11:15:58 +00:00
committed by Git OBS Bridge
parent 65a5d5f713
commit faac7f1777
5 changed files with 31 additions and 26 deletions

View File

@@ -1,14 +0,0 @@
Index: t/00prim.t
===================================================================
--- t/00prim.t.orig
+++ t/00prim.t
@@ -178,7 +178,8 @@ my %BSTR = (
[pack("B*",'011011111101110111'), 7, pack("B*", '01101110')]
);
-while(($result,$val) = each %BSTR) {
+foreach $result (sort(keys %BSTR)) {
+ $val = $BSTR{$result};
print "# BIT STRING ", unpack("B*", ref($val) ? $val->[0] : $val),
" ",(ref($val) ? $val->[1] : $val),"\n";

View File

@@ -1,3 +1,3 @@
--- ---
patches: patches:
Convert-ASN1-0.22-test.diff: perl-Convert-ASN1-0.31-test.patch:

View File

@@ -0,0 +1,18 @@
Index: Convert-ASN1-0.31/t/00prim.t
===================================================================
--- Convert-ASN1-0.31.orig/t/00prim.t
+++ Convert-ASN1-0.31/t/00prim.t
@@ -178,9 +178,10 @@ my %BSTR = (
[pack("B*",'011011111101110111'), 7, pack("B*", '01101110')]
);
-while(($result,$val) = each %BSTR) {
- print "# BIT STRING ", unpack("B*", ref($val) ? $val->[0] : $val),
- " ",(ref($val) ? $val->[1] : $val),"\n";
+foreach $result (sort(keys %BSTR)) {
+ $val = $BSTR{$result};
+ print "# BIT STRING ", unpack("B*", ref($val) ? $val->[0] : $val),
+ " ",(ref($val) ? $val->[1] : $val),"\n";
btest $test++, $asn->prepare('bit BIT STRING') or warn $asn->error;
stest $test++, $result, $asn->encode( bit => $val) or warn $asn->error;

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 29 10:34:45 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
- Fix autoupdate: Update spec file
- Rebase Convert-ASN1-0.22-test.diff and rename it to
perl-Convert-ASN1-0.31-test.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 3 17:40:16 UTC 2021 - Pedro Monreal <pmonreal@suse.com> Thu Jun 3 17:40:16 UTC 2021 - Pedro Monreal <pmonreal@suse.com>

View File

@@ -16,21 +16,17 @@
# #
%define cpan_name Convert-ASN1
Name: perl-Convert-ASN1 Name: perl-Convert-ASN1
Version: 0.31 Version: 0.31
Release: 0 Release: 0
%define cpan_name Convert-ASN1
Summary: ASN.1 Encode/Decode library Summary: ASN.1 Encode/Decode library
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Convert-ASN1-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
# MANUAL BEGIN Patch0: perl-Convert-ASN1-0.31-test.patch
Patch0: Convert-ASN1-0.22-test.diff
# MANUAL END
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Math::BigInt) >= 1.997 BuildRequires: perl(Math::BigInt) >= 1.997
@@ -42,12 +38,11 @@ Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER
rules. rules.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -p1 -n %{cpan_name}-%{version}
%patch0
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%check %check
make test make test
@@ -58,7 +53,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog examples mkparse OldChanges parser.y README.md %doc ChangeLog examples mkparse OldChanges parser.y README.md
%license LICENSE %license LICENSE