From 1d3de6c019e411d13ec8b0a12c1ccd983093d93b Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jul 29 2013 18:17:26 +0000 Subject: import po4a-0.44-9.el7.src.rpm --- diff --git a/.po4a.metadata b/.po4a.metadata new file mode 100644 index 0000000..583f7b6 --- /dev/null +++ b/.po4a.metadata @@ -0,0 +1 @@ +9fe3ba724287bc97b59c5b756f7d54e57da7db0d SOURCES/po4a-0.44.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Remove-defined-anachronism.patch b/SOURCES/0001-Remove-defined-anachronism.patch new file mode 100644 index 0000000..95aa794 --- /dev/null +++ b/SOURCES/0001-Remove-defined-anachronism.patch @@ -0,0 +1,25 @@ +From 1df9c6543540b033edb37ead08f02b82b1ef71df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= +Date: Mon, 11 Mar 2013 12:51:08 +0100 +Subject: [PATCH] Remove 'defined' anachronism + +--- + lib/Locale/Po4a/Sgml.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Locale/Po4a/Sgml.pm b/lib/Locale/Po4a/Sgml.pm +index 3e9f2a6..a8165b9 100644 +--- a/lib/Locale/Po4a/Sgml.pm ++++ b/lib/Locale/Po4a/Sgml.pm +@@ -366,7 +366,7 @@ sub parse_file { + # - protect entities from expansion (ie "&release;") + my $origfile=""; + my $i=0; +- while (defined(@{$self->{TT}{doc_in}}) && $i < @{$self->{TT}{doc_in}}) { ++ while (@{$self->{TT}{doc_in}} && $i < @{$self->{TT}{doc_in}}) { + $origfile .= ${$self->{TT}{doc_in}}[$i]; + $i+=2; + } +-- +1.8.1.4 + diff --git a/SOURCES/po4a-0.44-use-tempfile-correctly.patch b/SOURCES/po4a-0.44-use-tempfile-correctly.patch new file mode 100644 index 0000000..3019af3 --- /dev/null +++ b/SOURCES/po4a-0.44-use-tempfile-correctly.patch @@ -0,0 +1,88 @@ +diff -ur po4a-0.44.old/lib/Locale/Po4a/Po.pm po4a-0.44/lib/Locale/Po4a/Po.pm +--- po4a-0.44.old/lib/Locale/Po4a/Po.pm 2012-10-21 00:03:24.000000000 +0100 ++++ po4a-0.44/lib/Locale/Po4a/Po.pm 2013-04-17 11:26:54.749652129 +0100 +@@ -572,7 +572,8 @@ + + if (-e $filename) { + my ($tmp_filename); +- (undef,$tmp_filename)=File::Temp->tempfile($filename."XXXX", ++ my $basename = basename($filename); ++ (undef,$tmp_filename)=File::Temp::tempfile($basename."XXXX", + DIR => "/tmp", + OPEN => 0, + UNLINK => 0); +diff -ur po4a-0.44.old/lib/Locale/Po4a/Wml.pm po4a-0.44/lib/Locale/Po4a/Wml.pm +--- po4a-0.44.old/lib/Locale/Po4a/Wml.pm 2012-10-21 00:03:24.000000000 +0100 ++++ po4a-0.44/lib/Locale/Po4a/Wml.pm 2013-04-17 11:27:43.904492845 +0100 +@@ -81,7 +81,7 @@ + sub read { + my ($self,$filename)=@_; + my $tmp_filename; +- (undef,$tmp_filename)=File::Temp->tempfile("po4aXXXX", ++ (undef,$tmp_filename)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => ".xml", + OPEN => 0, +diff -ur po4a-0.44.old/po4a po4a-0.44/po4a +--- po4a-0.44.old/po4a 2012-10-21 00:03:24.000000000 +0100 ++++ po4a-0.44/po4a 2013-04-17 11:26:05.938810267 +0100 +@@ -1209,7 +1209,7 @@ + chdir $po4a_opts{"srcdir"} + if (defined $po4a_opts{"srcdir"}); + if ($po4a_opts{"split"}) { +- (undef,$pot_filename)=File::Temp->tempfile("po4aXXXX", ++ (undef,$pot_filename)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => ".pot", + OPEN => 0, +@@ -1239,7 +1239,7 @@ + # Create a temporary POT, and check if the old one needs to be + # updated (unless --force was specified). + unless ($po4a_opts{"force"}) { +- (undef,$tmp_file)=File::Temp->tempfile("po4aXXXX", ++ (undef,$tmp_file)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => ".pot", + OPEN => 0, +@@ -1270,7 +1270,7 @@ + # Generate a complete .po + foreach my $lang (sort keys %po_filename) { + my $tmp_bigpo; +- (undef,$tmp_bigpo)=File::Temp->tempfile("po4aXXXX", ++ (undef,$tmp_bigpo)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => "-$lang.po", + OPEN => 0, +@@ -1336,7 +1336,7 @@ + my $tmp_file; + # Create a temporary PO, and check if the old one needs to be + # updated (unless --force was specified). +- (undef,$tmp_file)=File::Temp->tempfile("po4aXXXX", ++ (undef,$tmp_file)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => ".po", + OPEN => 0, +diff -ur po4a-0.44.old/po4a-updatepo po4a-0.44/po4a-updatepo +--- po4a-0.44.old/po4a-updatepo 2012-10-21 00:03:24.000000000 +0100 ++++ po4a-0.44/po4a-updatepo 2013-04-17 11:26:05.938810267 +0100 +@@ -248,7 +248,7 @@ + if $_ eq '-' && !-e '-'} @pofiles; + + my ($pot_filename); +-(undef,$pot_filename)=File::Temp->tempfile("po4a-updatepoXXXX", ++(undef,$pot_filename)=File::Temp::tempfile("po4a-updatepoXXXX", + DIR => "/tmp", + SUFFIX => ".pot", + OPEN => 0, +diff -ur po4a-0.44.old/scripts/msguntypot po4a-0.44/scripts/msguntypot +--- po4a-0.44.old/scripts/msguntypot 2012-10-21 00:03:24.000000000 +0100 ++++ po4a-0.44/scripts/msguntypot 2013-04-17 11:26:05.939810264 +0100 +@@ -195,7 +195,7 @@ + + # Get all po files and report differences in them + my ($pofile); +-(undef,$pofile)=File::Temp->tempfile("po4aXXXX", ++(undef,$pofile)=File::Temp::tempfile("po4aXXXX", + DIR => "/tmp", + SUFFIX => ".po", + OPEN => 0, diff --git a/SPECS/po4a.spec b/SPECS/po4a.spec new file mode 100644 index 0000000..7804286 --- /dev/null +++ b/SPECS/po4a.spec @@ -0,0 +1,193 @@ +Name: po4a +Version: 0.44 +Release: 9%{?dist} +Summary: A tool maintaining translations anywhere +License: GPL+ +URL: http://alioth.debian.org/projects/po4a/ + +Source0: http://alioth.debian.org/frs/download.php/3723/%{name}-%{version}.tar.gz +Patch0: 0001-Remove-defined-anachronism.patch +# Patch sent upstream on 2013-04-17. +Patch1: po4a-0.44-use-tempfile-correctly.patch + +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Text::WrapI18N) +BuildRequires: perl(SGMLS) >= 1.03ii +BuildRequires: perl(Locale::gettext) >= 1.01 +BuildRequires: perl(Term::ReadKey) +BuildRequires: perl(Pod::Parser) +BuildRequires: /usr/bin/xsltproc +BuildRequires: gettext +BuildRequires: docbook-style-xsl + +# Requires a pod2man which support --utf8 +# Seemingling added in perl-5.10.1 +BuildRequires: perl >= 4:5.10.1 + +# Required by the tests. +BuildRequires: perl(Test::More) +BuildRequires: /usr/bin/kpsewhich + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: gettext + +# Optional, used by Locale/Po4a/TeX.pm +# Requires: /usr/bin/kpsewhich +# Optional, used by po4a-build +# Requires: /usr/bin/xsltproc +# Optional, but package is quite useless without +Requires: perl(Locale::gettext) >= 1.01 + +%description +The po4a (po for anything) project goal is to ease translations (and +more interestingly, the maintenance of translations) using gettext +tools on areas where they were not expected like documentation. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 +%patch1 -p1 + +%build +export PO4AFLAGS="-v -v -v" +%{__perl} ./Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' + +# Fix bang path /usr/bin/env perl -> %{_bindir}/perl (RHBZ#987035). +%{__perl} -p -i -e 's,#!\s*/usr/bin/env perl,#!%{_bindir}/perl,' \ + $(find $RPM_BUILD_ROOT -type f -executable | + xargs grep -l "/usr/bin/env perl") + +%{_fixperms} $RPM_BUILD_ROOT/* + +%find_lang %{name} + +%check +# Disabled: broken for unknown reasons in Fedora > 19. +rm t/24-tex.t + +./Build test + + +%files -f %{name}.lang +%doc README* COPYING TODO +%{_bindir}/po4a* +%{_bindir}/msguntypot +%{perl_vendorlib}/Locale +%{_mandir}/man1/po4a*.1* +%{_mandir}/man1/msguntypot.1* +%{_mandir}/man3/Locale::Po4a::*.3* +#%{_mandir}/man5/po4a-build.conf*.5* +#%{_mandir}/man7/po4a-runtime.7* +%{_mandir}/man7/po4a.7* +%{_mandir}/*/man1/po4a*.1* +%{_mandir}/*/man1/msguntypot.1* +%{_mandir}/*/man3/Locale::Po4a::*.3* +%{_mandir}/*/man5/po4a-build.conf.5* +%{_mandir}/*/man7/po4a.7* +%{_mandir}/*/man7/po4a-runtime.7* + +%changelog +* Mon Jul 29 2013 Richard W.M. Jones - 0.44-9 +- Fix bang path /usr/bin/env perl -> %{_bindir}/perl (RHBZ#987035). +- Increase verbosity of po4a when building to help diagnose build errors. +- +BR Pod::Parser. +- Disable 24-tex.t which does not run and does not produce any + useful diagnostics either. + +* Thu Jul 18 2013 Petr Pisar - 0.44-2 +- Perl 5.18 rebuild + +* Wed Apr 17 2013 Richard W.M. Jones - 0.44-1 +- New upstream version 0.44. +- Fix incorrect use of File::Temp->tempfile (RHBZ#953066). +- Tidy up the spec file. +- po4a-build.conf.5 and po4a-runtime.7 man pages are no longer + installed in the English version for some (unknown) reason. + +* Mon Mar 11 2013 Ralf Corsépius - 0.42-3 +- Add 0001-Remove-defined-anachronism.patch. +- Modernize spec. + +* Thu Feb 14 2013 Fedora Release Engineering - 0.42-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Ralf Corsépius - 0.42-1 +- Upstream update. + +* Tue Jun 12 2012 Petr Pisar - 0.41-5 +- Perl 5.16 rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.41-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jun 21 2011 Marcela Mašláňová - 0.41-3 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.41-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 08 2010 Ralf Corsépius - 0.41-1 +- Upstream update. +- Reflect upstream having changed to Module::Build. +- Remove po4a-0.40.1.diff. + +* Fri Oct 15 2010 Ralf Corsépius - 0.40.1-1 +- Upstream update. +- Add po4a-v0.40.1.diff (add missing file t/compare-po.pl) +- Make testsuite working. +- Spec overhaul. +- Eliminate /usr/bin/env perl. +- Require perl >= 5.10.1 + +* Wed Jun 02 2010 Marcela Maslanova - 0.35-15 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 0.35-14 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 0.35-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.35-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 14 2009 Axel Thimm - 0.35-11 +- Update to 0.35. + +* Tue Jan 13 2009 Ralf Corsépius - 0.34-10 +- Add BuildRequires: perl(Test::More), BuildRequires: docbook-dtds. +- Activate tests. +- Fix Source0:-URL. +- Spec file cosmetics. + +* Sun Aug 24 2008 Axel Thimm - 0.34-9 +- Update to 0.34. + +* Sun Jun 01 2008 Ralf Corsépius - 0.32-8 +- Let package own %%{perl_vendorlib}/Locale (BZ 449258). + +* Thu May 22 2008 Ralf Corsépius - 0.32-7 +- Remove || : in %%check due to rpm not accepting it anymore. + +* Thu May 22 2008 Ralf Corsépius - 0.32-6 +- Add: "Requires: perl(:MODULE_COMPAT_...)" (BZ 442548). + +* Wed May 21 2008 Tom "spot" Callaway - 0.32-5 +- fix license tag + +* Mon Aug 20 2007 Axel Thimm - 0.32-4 +- Update to 0.32. +- fixes a possible race condition under /tmp (no CVE yet). + +* Thu Dec 28 2006 Axel Thimm - 0.29-3 +- Update to 0.29. + +* Sat Feb 18 2006 Axel Thimm +- Initial build. +