[packages/po4a] - updated to 0.44 - added tempfile patch (fix for File::Temp >= 0.23)

qboosh qboosh at pld-linux.org
Sat Jun 15 15:22:37 CEST 2013


commit 5c07f622ec95417c5ea9f00ba28f63be0c1ffb7d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 15 15:22:44 2013 +0200

    - updated to 0.44
    - added tempfile patch (fix for File::Temp >= 0.23)

 po4a-tempfile.patch | 15 +++++++++++++++
 po4a.spec           | 12 +++++++-----
 2 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/po4a.spec b/po4a.spec
index cd7b218..72f7719 100644
--- a/po4a.spec
+++ b/po4a.spec
@@ -2,13 +2,14 @@
 Summary:	Framework to translate documentation and other materials
 Summary(pl.UTF-8):	Szkielet do tłumaczenia dokumentacji i innych materiałów
 Name:		po4a
-Version:	0.41
+Version:	0.44
 Release:	1
 License:	GPL v2+
 Group:		Development/Tools
 # Source0Download: http://alioth.debian.org/frs/?group_id=30267
-Source0:	http://alioth.debian.org/frs/download.php/3472/%{name}-%{version}.tar.gz
-# Source0-md5:	93b3137502a749bdc3a059466f2a19d2
+Source0:	http://alioth.debian.org/frs/download.php/file/3786/%{name}-%{version}.tar.gz
+# Source0-md5:	ff7b6859d729a52a57a880d6cf6a7fcf
+Patch0:		%{name}-tempfile.patch
 URL:		http://alioth.debian.org/projects/po4a/
 BuildRequires:	perl-Locale-gettext >= 1.01
 BuildRequires:	perl-Module-Build
@@ -32,6 +33,7 @@ przewidywane, jak na przykład dokumentacja.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # fix #!%{_bindir}/env perl -w -> #!%{__perl}:
 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' po4a* scripts/*
@@ -76,13 +78,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/po4aman-display-po.1*
 %{_mandir}/man1/po4apod-display-po.1*
 %{_mandir}/man3/Locale::Po4a::*.3*
-%{_mandir}/man5/po4a-build.conf.5*
 %{_mandir}/man7/po4a.7*
-%{_mandir}/man7/po4a-runtime.7*
 %lang(ca) %{_mandir}/ca/man[1357]/*
+%lang(ca) %{_mandir}/de/man[1357]/*
 %lang(es) %{_mandir}/es/man[1357]/*
 %lang(fr) %{_mandir}/fr/man[1357]/*
 %lang(it) %{_mandir}/it/man[1357]/*
 %lang(pl) %{_mandir}/pl/man[1357]/*
 %lang(ja) %{_mandir}/ja/man[1357]/*
+%lang(pt) %{_mandir}/pt/man[1357]/*
 %lang(ru) %{_mandir}/ru/man[1357]/*
diff --git a/po4a-tempfile.patch b/po4a-tempfile.patch
new file mode 100644
index 0000000..e593ecf
--- /dev/null
+++ b/po4a-tempfile.patch
@@ -0,0 +1,15 @@
+--- po4a-0.44/lib/Locale/Po4a/Po.pm.orig	2013-06-15 09:13:34.160806393 +0200
++++ po4a-0.44/lib/Locale/Po4a/Po.pm	2013-06-15 09:15:42.584137049 +0200
+@@ -572,10 +572,9 @@
+ 
+     if (-e $filename) {
+         my ($tmp_filename);
+-        (undef,$tmp_filename)=File::Temp->tempfile($filename."XXXX",
+-                                                   DIR    => "/tmp",
++        $tmp_filename = File::Temp->new(TEMPLATE => $filename."XXXX",
+                                                    OPEN   => 0,
+-                                                   UNLINK => 0);
++                                                   UNLINK => 0)->filename;
+         $self->write($tmp_filename);
+         move_po_if_needed($tmp_filename, $filename);
+     } else {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/po4a.git/commitdiff/5c07f622ec95417c5ea9f00ba28f63be0c1ffb7d



More information about the pld-cvs-commit mailing list