Add 0001-Remove-defined-anachronism.patch.
- Modernize spec.
This commit is contained in:
parent
d8435ba6b1
commit
005c3cf828
25
0001-Remove-defined-anachronism.patch
Normal file
25
0001-Remove-defined-anachronism.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 1df9c6543540b033edb37ead08f02b82b1ef71df Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@fedoraproject.org>
|
||||
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
|
||||
|
11
po4a.spec
11
po4a.spec
@ -1,11 +1,12 @@
|
||||
Name: po4a
|
||||
Version: 0.42
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A tool maintaining translations anywhere
|
||||
Group: Applications/System
|
||||
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
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Module::Build)
|
||||
@ -42,6 +43,7 @@ tools on areas where they were not expected like documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} ./Build.PL installdirs=vendor
|
||||
@ -58,9 +60,6 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
@ -82,6 +81,10 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/*/man7/po4a-runtime.7*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.42-3
|
||||
- Add 0001-Remove-defined-anachronism.patch.
|
||||
- Modernize spec.
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user