!2 update to 0.33

From: @lyn1001 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-05-23 09:32:57 +00:00 committed by Gitee
commit 84c87f2f08
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 12 additions and 263 deletions

View File

@ -1,257 +0,0 @@
From f3ffdf1baa2a5400bdaadc44ef6015c3003a42bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 28 Aug 2019 09:56:10 +0200
Subject: [PATCH] Correct shebangs in tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/00prim.t | 2 +-
t/01tag.t | 2 +-
t/02seq.t | 2 +-
t/03seqof.t | 2 +-
t/04opt.t | 2 +-
t/05time.t | 2 +-
t/06bigint.t | 2 +-
t/07io.t | 2 +-
t/08set.t | 2 +-
t/09contr.t | 2 +-
t/10choice.t | 2 +-
t/11explicit.t | 2 +-
t/11indef.t | 2 +-
t/12der.t | 2 +-
t/13utf8.t | 2 +-
t/14any.t | 2 +-
t/15extseq.t | 2 +-
t/16extset.t | 2 +-
t/17extchoice.t | 2 +-
t/18tagdefault.t | 2 +-
t/99misc.t | 2 +-
t/x509.t | 2 +-
22 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/t/00prim.t b/t/00prim.t
index 904c9c6..cd18732 100644
--- a/t/00prim.t
+++ b/t/00prim.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/01tag.t b/t/01tag.t
index 40e28a0..dd375af 100644
--- a/t/01tag.t
+++ b/t/01tag.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/02seq.t b/t/02seq.t
index bc21712..531f2fe 100644
--- a/t/02seq.t
+++ b/t/02seq.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/03seqof.t b/t/03seqof.t
index 66683b6..a5e699b 100644
--- a/t/03seqof.t
+++ b/t/03seqof.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/04opt.t b/t/04opt.t
index 7f23fca..33fba19 100644
--- a/t/04opt.t
+++ b/t/04opt.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/05time.t b/t/05time.t
index f444e7f..fe6a179 100644
--- a/t/05time.t
+++ b/t/05time.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/06bigint.t b/t/06bigint.t
index f9aeba3..ab1164f 100644
--- a/t/06bigint.t
+++ b/t/06bigint.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test bigint INTEGER encoding/decoding
diff --git a/t/07io.t b/t/07io.t
index 706cf51..b4c0c58 100644
--- a/t/07io.t
+++ b/t/07io.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
use Convert::ASN1 qw(:io);
use IO::Socket;
diff --git a/t/08set.t b/t/08set.t
index b35a7ba..7554157 100644
--- a/t/08set.t
+++ b/t/08set.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sets
diff --git a/t/09contr.t b/t/09contr.t
index 2213c7e..72d25fc 100644
--- a/t/09contr.t
+++ b/t/09contr.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the decode on constructed values
diff --git a/t/10choice.t b/t/10choice.t
index 6ceeb6d..93d194f 100644
--- a/t/10choice.t
+++ b/t/10choice.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of choices
diff --git a/t/11explicit.t b/t/11explicit.t
index 7e24506..195958c 100644
--- a/t/11explicit.t
+++ b/t/11explicit.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
BEGIN { require 't/funcs.pl' }
diff --git a/t/11indef.t b/t/11indef.t
index 7c3886d..b0581d7 100644
--- a/t/11indef.t
+++ b/t/11indef.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that indefinite length encodings can be decoded
diff --git a/t/12der.t b/t/12der.t
index b7d1b79..4469bd1 100644
--- a/t/12der.t
+++ b/t/12der.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sets
diff --git a/t/13utf8.t b/t/13utf8.t
index 1f62042..c8bff82 100644
--- a/t/13utf8.t
+++ b/t/13utf8.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of utf8 strings
diff --git a/t/14any.t b/t/14any.t
index 4147764..799e1dc 100644
--- a/t/14any.t
+++ b/t/14any.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Check whether the ANY DEFINED BY syntax is working
diff --git a/t/15extseq.t b/t/15extseq.t
index 6060793..af934e2 100644
--- a/t/15extseq.t
+++ b/t/15extseq.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/16extset.t b/t/16extset.t
index c57ac0c..f3fbea7 100644
--- a/t/16extset.t
+++ b/t/16extset.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/17extchoice.t b/t/17extchoice.t
index 66bd9c5..a3ba5d9 100644
--- a/t/17extchoice.t
+++ b/t/17extchoice.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/18tagdefault.t b/t/18tagdefault.t
index 6a1fa3b..18fb1d8 100644
--- a/t/18tagdefault.t
+++ b/t/18tagdefault.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that default EXPLICIT tagging works.
diff --git a/t/99misc.t b/t/99misc.t
index 4b67aba..da3044a 100644
--- a/t/99misc.t
+++ b/t/99misc.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Misc tests from github reported issues
diff --git a/t/x509.t b/t/x509.t
index 3fd5ba0..f931385 100644
--- a/t/x509.t
+++ b/t/x509.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
print "1..26\n";
--
2.21.0

Binary file not shown.

BIN
Convert-ASN1-0.33.tar.gz Normal file

Binary file not shown.

View File

@ -1,19 +1,18 @@
%bcond_without perl_Convert_ASN1_enables_optional_test
Summary: ASN.1 encode/decode library
Name: perl-Convert-ASN1
Version: 0.27
Version: 0.33
Release: 1
License: GPL+ or Artistic
URL: https://metacpan.org/release/Convert-ASN1
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/Convert-ASN1-%{version}.tar.gz
Patch0: Convert-ASN1-0.27-Correct-shebangs-in-tests.patch
Patch1: Convert-ASN1-0.27-Use-temporary-output-files-for-tests.patch
Patch0: Convert-ASN1-0.27-Use-temporary-output-files-for-tests.patch
BuildArch: noarch
BuildRequires: coreutils make perl-generators perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) perl(warnings)
BuildRequires: perl(:VERSION) >= 5.4 perl(Carp) perl(constant) perl(Encode) perl(Exporter)
BuildRequires: perl(POSIX) perl(Socket) perl(Time::Local) perl(utf8) perl(vars) perl(bytes)
BuildRequires: perl(File::Temp) perl(IO::Socket) perl(Math::BigInt) >= 1.997
BuildRequires: perl(File::Temp) perl(IO::Socket) perl(Math::BigInt) >= 1.997 perl(Test::More) >= 0.90
%if %{with perl_Convert_ASN1_enables_optional_test}
BuildRequires: perl(Data::Dumper)
%endif
@ -38,8 +37,11 @@ with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Convert-ASN1-%{version}
%patch0 -p1
%patch1 -p1
chmod +x t/*.t
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -57,6 +59,7 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%check
unset YYDEBUG
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
@ -69,5 +72,8 @@ make test
%{_libexecdir}/%{name}
%changelog
* Wed May 18 2022 liyanan <liyanan@h-partners.com>- 0.33-1
- update to 0.33
* Sat Feb 20 2021 sunguoshuai <sunguoshuai@huawei.com> - 0.27-1
- package init