forked from pool/perl-Convert-ASN1
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:
@@ -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";
|
||||
|
@@ -1,3 +1,3 @@
|
||||
---
|
||||
patches:
|
||||
Convert-ASN1-0.22-test.diff:
|
||||
perl-Convert-ASN1-0.31-test.patch:
|
||||
|
18
perl-Convert-ASN1-0.31-test.patch
Normal file
18
perl-Convert-ASN1-0.31-test.patch
Normal 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;
|
@@ -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>
|
||||
|
||||
|
@@ -16,21 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Convert-ASN1
|
||||
Name: perl-Convert-ASN1
|
||||
Version: 0.31
|
||||
Release: 0
|
||||
%define cpan_name Convert-ASN1
|
||||
Summary: ASN.1 Encode/Decode library
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
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
|
||||
# MANUAL BEGIN
|
||||
Patch0: Convert-ASN1-0.22-test.diff
|
||||
# MANUAL END
|
||||
Patch0: perl-Convert-ASN1-0.31-test.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Math::BigInt) >= 1.997
|
||||
@@ -42,12 +38,11 @@ Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER
|
||||
rules.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%patch0
|
||||
%autosetup -p1 -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -58,7 +53,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc ChangeLog examples mkparse OldChanges parser.y README.md
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user