Accepting request 918738 from home:elchevive:branches:devel:languages:perl
version update OBS-URL: https://build.opensuse.org/request/show/918738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=73
This commit is contained in:
parent
158253ca65
commit
69be3bf91f
@ -1,29 +0,0 @@
|
||||
From a69b48eda3ebd66eec30a34a377c7a00c6f8e36c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
|
||||
Date: Thu, 20 May 2021 08:48:25 +0200
|
||||
Subject: [PATCH] Instead of using a regex, use subsbtring matching for flags
|
||||
|
||||
This change mitigates #302 when perl exhibits the bug
|
||||
https://github.com/Perl/perl5/issues/18604
|
||||
|
||||
and seems to speed up flag matching.
|
||||
|
||||
fix #302
|
||||
---
|
||||
NEWS | 1 +
|
||||
lib/Locale/Po4a/Po.pm | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/Locale/Po4a/Po.pm b/lib/Locale/Po4a/Po.pm
|
||||
index 5127bf6ea..16c0689fe 100644
|
||||
--- a/lib/Locale/Po4a/Po.pm
|
||||
+++ b/lib/Locale/Po4a/Po.pm
|
||||
@@ -1467,7 +1467,7 @@ sub push_raw {
|
||||
$flags = " $flags ";
|
||||
$flags =~ s/,/ /g;
|
||||
foreach my $flag (@known_flags) {
|
||||
- if ( $flags =~ /\s$flag\s/ ) { # if flag to be set
|
||||
+ if (index($flags, " $flag ") != -1) { # if flag to be set
|
||||
unless ( defined( $self->{po}{$msgid}{'flags'} )
|
||||
&& $self->{po}{$msgid}{'flags'} =~ /\b$flag\b/ )
|
||||
{
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e21be3ee545444bae2fe6a44aeb9d320604708cc2e4c601bcb3cc440db75b4ce
|
||||
size 4067940
|
3
po4a-0.64.tar.gz
Normal file
3
po4a-0.64.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:34d14042e1925cf9a77649cb64f5b900125d2fc9ca5298c67889a76c2d3975e5
|
||||
size 4121565
|
20
po4a.changes
20
po4a.changes
@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 13 14:02:47 UTC 2021 - Luiz Fernando Ranghetti <elchevive@opensuse.org>
|
||||
|
||||
- Update to version 0.64
|
||||
- Remove a69b48eda3ebd66eec30a34a377c7a00c6f8e36c.patch (included in this
|
||||
release)
|
||||
|
||||
Asciidoc:
|
||||
* Detect sublevel description lists with :::
|
||||
* Don't split in attributes include:: and ifeval:: lines (Github's #298)
|
||||
|
||||
Pod:
|
||||
* Don't wrap textblocks, as it may break C<> markup (similar to Github's #242)
|
||||
|
||||
Core:
|
||||
* Mitigate Perl bug #18604 (simplify a regexp into a substring index) (Github's #302)
|
||||
* Improve the consistency of all our module lists (related to Github's #136)
|
||||
Thanks Viet Than.
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 10 20:17:45 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: po4a
|
||||
Version: 0.63
|
||||
Version: 0.64
|
||||
Release: 0
|
||||
Summary: Framework to translate documentation and other materials
|
||||
License: GPL-2.0-only
|
||||
@ -28,7 +28,6 @@ Group: Development/Tools/Other
|
||||
%endif
|
||||
URL: https://po4a.org/
|
||||
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: https://github.com/mquinson/po4a/commit/a69b48eda3ebd66eec30a34a377c7a00c6f8e36c.patch
|
||||
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: deb-perl-macros
|
||||
@ -108,7 +107,6 @@ po4a supports currently the following formats:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor
|
||||
|
Loading…
x
Reference in New Issue
Block a user