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
This commit is contained in:
2010-08-08 15:03:07 +00:00
committed by Git OBS Bridge
parent eb4c9b2a39
commit 66989a83b1
3 changed files with 31 additions and 0 deletions
+7
View File
@@ -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
+2
View File
@@ -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
+22
View File
@@ -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