From 66989a83b1bc11a54bbd6a77339dd3cbd2c2c280069b9848ca4b2163faa04ba7 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Sun, 8 Aug 2010 15:03:07 +0000 Subject: [PATCH] Accepting request 44923 from home:computersalat:devel:perl Copy from home:computersalat:devel:perl/perl-CPANPLUS-Dist-RPM via accept of submit request 44923 revision 2. Request was accepted with message: self accept OBS-URL: https://build.opensuse.org/request/show/44923 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CPANPLUS-Dist-RPM?expand=0&rev=2 --- perl-CPANPLUS-Dist-RPM.changes | 7 +++++++ perl-CPANPLUS-Dist-RPM.spec | 2 ++ CPANPLUS-Dist-RPM-locale.patch | 22 ++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 CPANPLUS-Dist-RPM-locale.patch diff --git a/perl-CPANPLUS-Dist-RPM.changes b/perl-CPANPLUS-Dist-RPM.changes index 9e6bb77..fbed239 100644 --- a/perl-CPANPLUS-Dist-RPM.changes +++ b/perl-CPANPLUS-Dist-RPM.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Aug 8 15:01:41 UTC 2010 - chris@computersalat.de + +- added locale patch + o Set locale to en_US.UTF8 so that dates in changelog will be correct + if using another locale. Also ensures writing out UTF8. + ------------------------------------------------------------------- Tue Aug 3 16:00:16 UTC 2010 - chris@computersalat.de diff --git a/perl-CPANPLUS-Dist-RPM.spec b/perl-CPANPLUS-Dist-RPM.spec index 13d7521..6963a38 100644 --- a/perl-CPANPLUS-Dist-RPM.spec +++ b/perl-CPANPLUS-Dist-RPM.spec @@ -26,6 +26,7 @@ License: GPL+ or Artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/CPANPLUS-Dist-RPM/ Source: http://www.cpan.org/modules/by-module/CPANPLUS/CPANPLUS-Dist-RPM-%{version}.tar.gz +Patch0: %{cpan_name}-locale.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -91,6 +92,7 @@ Authors: %prep %setup -q -n %{cpan_name}-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor diff --git a/CPANPLUS-Dist-RPM-locale.patch b/CPANPLUS-Dist-RPM-locale.patch new file mode 100644 index 0000000..c51785c --- /dev/null +++ b/CPANPLUS-Dist-RPM-locale.patch @@ -0,0 +1,22 @@ +diff -ruN CPANPLUS-Dist-RPM-0.0.8-orig/lib/CPANPLUS/Dist/RPM.pm CPANPLUS-Dist-RPM-0.0.8/lib/CPANPLUS/Dist/RPM.pm +--- CPANPLUS-Dist-RPM-0.0.8-orig/lib/CPANPLUS/Dist/RPM.pm 2009-01-17 21:19:29.000000000 +0100 ++++ CPANPLUS-Dist-RPM-0.0.8/lib/CPANPLUS/Dist/RPM.pm 2010-08-08 16:53:35.000000000 +0200 +@@ -28,12 +28,17 @@ + use Path::Class; + use Pod::POM; + use Pod::POM::View::Text; +-use POSIX qw{ strftime }; ++use POSIX qw{ strftime locale_h}; + use Readonly; + use Software::LicenseUtils; + use Text::Autoformat; + use Template; + ++# Set locale to en_US.UTF8 so that dates in changelog will be correct ++# if using another locale. Also ensures writing out UTF8. (Thanks to ++# Roy-Magne Mo for pointing out the problem and providing a solution.) ++setlocale(LC_ALL, "en_US.UTF-8"); ++ + our $VERSION = '0.0.8'; + + # debugging