7 Commits

Author SHA256 Message Date
37ea2f96c7 Accepting request 1268669 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1268669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/po4a?expand=0&rev=34
2025-04-14 10:55:35 +00:00
a14fb4e256 - Update licence tag to GPL-2.0-or-later to match the
actual package licence.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=86
2025-04-11 16:33:05 +00:00
c80eb3b637 Accepting request 1184865 from devel:languages:perl
- Add a workaround to fix building against perl-5.40.0 which added
  a warning for accidental usage of UNIVERSAL::import()
  * new patch: po4a.diff

OBS-URL: https://build.opensuse.org/request/show/1184865
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/po4a?expand=0&rev=33
2024-07-02 16:14:28 +00:00
a5ad0808ed OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=84 2024-07-02 12:46:20 +00:00
cd757752c0 Add a workaround to fix building against perl-5.40.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=83
2024-07-02 12:45:22 +00:00
5b39cfa997 Accepting request 1183661 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1183661
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/po4a?expand=0&rev=32
2024-06-29 13:16:23 +00:00
c86a7a8c64 update to latet 0.73; sadly does not yet fix the issues with Perl 5.40
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=81
2024-06-27 17:27:05 +00:00
5 changed files with 86 additions and 7 deletions

Binary file not shown.

BIN
po4a-0.73.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,69 @@
-------------------------------------------------------------------
Thu Apr 10 20:17:56 UTC 2025 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>
- Update licence tag to GPL-2.0-or-later to match the
actual package licence.
-------------------------------------------------------------------
Tue Jul 2 13:51:42 CEST 2024 - mls@suse.de
- Add a workaround to fix building against perl-5.40.0 which added
a warning for accidental usage of UNIVERSAL::import()
* new patch: po4a.diff
-------------------------------------------------------------------
Sat Jun 22 18:28:32 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 0.73:
+ Try to not fail when writing UTF po files with old Perl
versions.
+ Improve various error messages to help users debugging encoding
issues.
- Changes from version 0.72:
+ TransTractor:
- Remove one source of supirious error reports when writing
files.
+ Asciidoc:
- Support a cleanspaces option to remove extra spaces in
wrapped lines.
+ Man/Groff:
- Handle ~ as non-breaking space.
- Properly handle \c escape sequence in .TP parameters.
+ Markdown:
- Treat tables as verbatim paragraphs.
+ All scripts:
- Add an option -w/--width to rewrap text on an arbitrary
column.
+ po4a main script only:
- Fix the behavior of --translate-only.
+ Documentation:
- Fix typos.
- Kill outdated documentation on Pod parameters.
- Changes from version 0.71:
+ po4a main script:
- Fix the parsing of nested simple and double quotes mixed with
escaped spaces.
- Properly parse config files iteratively redefining the same
alias to enrich it.
- Don't eat up quotes around parameters containing spaces, as
they are needed later on when passing parameters to msgmerge
and friends.
+ Gemtext:
- New module.
+ Documentation:
- Fix many typos introduced in previous release.
+ General:
- Better error messages on encoding errors. It remains fragile,
but at least we try to display an error message.
- Changes from version 0.70:
+ Major cleanup:
- Greatly simplify the code by using PerlIO instead of messing
up with encodings manually. This is a very intrusive change,
and even if all tests of our comprehensive suite pass, expect
issues with this on some corner cases, such as projects not
using UTF-8 but a mixture of encodings.
-------------------------------------------------------------------
Mon Jan 16 07:06:48 UTC 2023 - Dirk Müller <dmueller@suse.com>

11
po4a.diff Normal file
View File

@@ -0,0 +1,11 @@
--- lib/Locale/Po4a/TransTractor.pm.orig 2024-07-02 11:29:25.396972130 +0000
+++ lib/Locale/Po4a/TransTractor.pm 2024-07-02 11:29:48.916941692 +0000
@@ -5,6 +5,8 @@ require Exporter;
package Locale::Po4a::TransTractor;
use DynaLoader;
+sub import {};
+
use 5.16.0;
use strict;
use warnings;

View File

@@ -1,7 +1,7 @@
#
# spec file for package po4a
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
Name: po4a
Version: 0.69
Version: 0.73
Release: 0
Summary: Framework to translate documentation and other materials
License: GPL-2.0-only
License: GPL-2.0-or-later
%if "%{_vendor}" == "debbuild"
Group: text
%else
@@ -28,6 +28,8 @@ Group: Development/Tools/Other
%endif
URL: https://po4a.org/
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Workaround for build error with perl 5.40, see https://github.com/mquinson/po4a/issues/508
Patch0: po4a.diff
%if "%{_vendor}" == "debbuild"
BuildRequires: deb-perl-macros
@@ -110,6 +112,7 @@ po4a supports currently the following formats:
%prep
%setup -q
%patch -P0
%build
perl Build.PL installdirs=vendor
@@ -153,7 +156,6 @@ rm -rf t/fmt-tex.t t/fmt/tex
%dir %{_mandir}/ru
%dir %{_mandir}/sr_Cyrl
%dir %{_mandir}/uk
%dir %{_mandir}/zh_CHS
%dir %{_mandir}/zh_Hant
%changelog