diff --git a/po4a.changes b/po4a.changes index ced804b..ab4ab8e 100644 --- a/po4a.changes +++ b/po4a.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +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 diff --git a/po4a.diff b/po4a.diff new file mode 100644 index 0000000..ac2416f --- /dev/null +++ b/po4a.diff @@ -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; diff --git a/po4a.spec b/po4a.spec index 1d5444d..564265b 100644 --- a/po4a.spec +++ b/po4a.spec @@ -28,6 +28,7 @@ Group: Development/Tools/Other %endif URL: https://po4a.org/ Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz +Patch0: po4a.diff %if "%{_vendor}" == "debbuild" BuildRequires: deb-perl-macros @@ -110,6 +111,7 @@ po4a supports currently the following formats: %prep %setup -q +%patch -P0 %build perl Build.PL installdirs=vendor