commit cbffe79b9866ef13766915695542650239b385c2 Author: Ruediger Landmann <r.landmann@xxxxxxxxxx> Date: Mon Mar 18 17:39:31 2013 +1000 Add patch to convert gettext %1 to maketext [_1] gettexttomakettext.patch | 14 ++++++++++++++ perl-Locale-Maketext-Gettext.spec | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletions(-) --- diff --git a/gettexttomakettext.patch b/gettexttomakettext.patch new file mode 100644 index 0000000..d6e71e0 --- /dev/null +++ b/gettexttomakettext.patch @@ -0,0 +1,14 @@ +diff -ru Locale-Maketext-Gettext-1.27/lib/Locale/Maketext/Gettext.pm Locale-Maketext-Gettext-1.27-patched/lib/Locale/Maketext/Gettext.pm +--- Locale-Maketext-Gettext-1.27/lib/Locale/Maketext/Gettext.pm 2009-04-28 03:46:23.000000000 +1000 ++++ Locale-Maketext-Gettext-1.27-patched/lib/Locale/Maketext/Gettext.pm 2013-03-08 12:31:37.166997436 +1000 +@@ -354,6 +354,10 @@ + # Translated message + $strt = substr($content, $off, $len); + ++ # Convert gettext params %1 to maketext params [_1] ++ $stro =~ s/\%(\d+)/\[_$1\]/g; ++ $strt =~ s/\%(\d+)/\[_$1\]/g; ++ + # Hash it + $_{$stro} = $strt; + } diff --git a/perl-Locale-Maketext-Gettext.spec b/perl-Locale-Maketext-Gettext.spec index 6bfbcf6..94bcdbb 100644 --- a/perl-Locale-Maketext-Gettext.spec +++ b/perl-Locale-Maketext-Gettext.spec @@ -1,6 +1,6 @@ Name: perl-Locale-Maketext-Gettext Version: 1.27 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Joins the gettext and Maketext frameworks License: GPL+ or Artistic Group: Development/Libraries @@ -13,6 +13,7 @@ BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Patch0: gettexttomakettext.patch %description Locale::Maketext::Gettext joins the GNU gettext and Maketext frameworks. It @@ -52,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/* %changelog +* Mon Mar 18 2013 Rüdiger Landmann <rlandman@xxxxxxxxxx> 1.27-11 +- Add patch to convert gettext %1 to maketext [_1] + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.27-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild @@ -78,5 +82,6 @@ rm -rf $RPM_BUILD_ROOT * Mon Sep 21 2009 Rüdiger Landmann <rlandman@xxxxxxxxxx> 1.27-2 - added BuildRequires: perl(Test::More) and BuildRequires: perl(Test::Pod) + * Mon Sep 07 2009 Rüdiger Landmann <rlandman@xxxxxxxxxx> 1.27-1 - Specfile autogenerated by cpanspec 1.78. -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel