!18 upgrade version to 0.031
From: @hongjinghao Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
d4e678ff07
@ -1,31 +0,0 @@
|
|||||||
From 33e0c0e1de3fdecb4a627eaa1662871e13e041d2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Leon Timmermans <fawaka@gmail.com>
|
|
||||||
Date: Fri, 4 Feb 2022 13:29:58 +0100
|
|
||||||
Subject: [PATCH] Simplify the upgrade-to-next-stable logic
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/experimental.pm | 8 ++------
|
|
||||||
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/experimental.pm b/lib/experimental.pm
|
|
||||||
index 41b3994..9fa4461 100644
|
|
||||||
--- a/lib/experimental.pm
|
|
||||||
+++ b/lib/experimental.pm
|
|
||||||
@@ -72,12 +72,8 @@ sub _enable {
|
|
||||||
croak "Can't enable unknown feature $pragma";
|
|
||||||
}
|
|
||||||
elsif ($] < $min_version{$pragma}) {
|
|
||||||
- my $stable = $min_version{$pragma};
|
|
||||||
- if ($stable->{version}[1] % 2) {
|
|
||||||
- $stable = version->new(
|
|
||||||
- "5.".($stable->{version}[1]+1).'.0'
|
|
||||||
- );
|
|
||||||
- }
|
|
||||||
+ my $stable = $min_version{$pragma}->stringify;
|
|
||||||
+ $stable =~ s/^ 5\. ([0-9]?[13579]) \. \d+ $/"5." . ($1 + 1) . ".0"/xe;
|
|
||||||
croak "Need perl $stable or later for feature $pragma";
|
|
||||||
}
|
|
||||||
elsif ($] >= ($removed_in_version{$pragma} || 7)) {
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
experimental-0.031.tar.gz
Normal file
BIN
experimental-0.031.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,11 @@
|
|||||||
Name: perl-experimental
|
Name: perl-experimental
|
||||||
Version: 0.025
|
Version: 0.031
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Experimental features made easy
|
Summary: Experimental features made easy
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/experimental/
|
URL: http://search.cpan.org/dist/experimental/
|
||||||
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0001: backport-Simplify-the-upgrade-to-next-stable-logic.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: make perl-generators perl-interpreter
|
BuildRequires: make perl-generators perl-interpreter
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
@ -39,6 +37,8 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
# fix https://gitee.com/src-openeuler/perl-experimental/issues/I7W5LD
|
||||||
|
mv ${RPM_BUILD_ROOT}/usr/share/man/man3/stable.3pm ${RPM_BUILD_ROOT}/usr/share/man/man3/experimental-stable.3pm
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -53,6 +53,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 27 2023 hongjinghao <hongjinghao@huawei.com> - 0.031-1
|
||||||
|
- Upgrade to 0.031
|
||||||
|
|
||||||
* Tue Oct 25 2022 hongjinghao <hongjinghao@huawei.com> - 0.025-2
|
* Tue Oct 25 2022 hongjinghao <hongjinghao@huawei.com> - 0.025-2
|
||||||
- Simplify code's logic
|
- Simplify code's logic
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version_control: github
|
||||||
src_repo: Dual-Life/experimental
|
src_repo: Dual-Life/experimental
|
||||||
tag_prefix: ^v
|
tag_prefix: ^v
|
||||||
seperator: .
|
separator: .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user