[po4a/f13/master] - Upstream update. - Reflect upstream having changed to Module::Build.

corsepiu corsepiu at fedoraproject.org
Wed Dec 8 07:57:57 UTC 2010


commit 081b1d8a6256d3aef5261e29d8c44ae73e17d467
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Wed Dec 8 08:57:43 2010 +0100

    - Upstream update.
    - Reflect upstream having changed to Module::Build.

 .gitignore |    2 +-
 po4a.spec  |   62 ++++++++++++++++++++++++++++++++++-------------------------
 sources    |    2 +-
 3 files changed, 38 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7a94de1..eaf54ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-po4a-0.35.tar.gz
+/po4a-0.41.tar.gz
diff --git a/po4a.spec b/po4a.spec
index 9a69f3b..7885eb6 100644
--- a/po4a.spec
+++ b/po4a.spec
@@ -1,59 +1,62 @@
 Name: po4a
-Version: 0.35
-Release: 14%{?dist}
+Version: 0.41
+Release: 1%{?dist}
 Summary: A tool maintaining translations anywhere
 Group: Applications/System
-# Nothing in the source tree specifies a version of the GPL.
 License: GPL+
 URL: http://alioth.debian.org/projects/po4a/
-Source0: http://alioth.debian.org/frs/download.php/2809/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Source0: http://alioth.debian.org/frs/download.php/3472/%{name}-%{version}.tar.gz
+
 BuildArch: noarch
 BuildRequires: perl(Module::Build)
 BuildRequires: perl(Text::WrapI18N)
 BuildRequires: perl(SGMLS) >= 1.03ii
-BuildRequires: perl(Locale::gettext) >= 1.01, gettext
+BuildRequires: perl(Locale::gettext) >= 1.01
 BuildRequires: perl(Term::ReadKey)
+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: docbook-dtds
+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
+%setup -q -n %{name}-%{version}
 
 %build
-perl Build.PL --installdirs vendor
+%{__perl} ./Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-find %{buildroot} -type f \( -name .packlist -or -name perllocal.pod \
-  -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 
-%{_fixperms} %{buildroot}
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %find_lang %{name}
 
-# ugly fix to get the translated man pages in utf-8
-for file in  %{buildroot}%{_mandir}/*/man*/*.gz; do
-  gunzip -c $file | iconv -f latin1 -t utf8 | gzip -c > $file.new
-  mv -f $file.new $file
-done
-
 %check
-# The tests are unclean
-./Build test ||:
+./Build test
 
 %clean
 rm -rf %{buildroot}
@@ -67,15 +70,22 @@ rm -rf %{buildroot}
 %{perl_vendorlib}/Locale
 %{_mandir}/man1/po4a*.1*
 %{_mandir}/man1/msguntypot.1*
-%{_mandir}/man3/Locale::Po4a::*.3pm*
+%{_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::*.3pm*
+%{_mandir}/*/man3/Locale::Po4a::*.3*
+%{_mandir}/*/man5/po4a-build.conf.5*
 %{_mandir}/*/man7/po4a.7*
-
+%{_mandir}/*/man7/po4a-runtime.7*
 
 %changelog
+* Wed Dec 08 2010 Ralf Corsépius <corsepiu at fedoraproject.org> - 0.41-1
+- Upstream update.
+- Reflect upstream having changed to Module::Build.
+
 * Mon Dec  7 2009 Stepan Kasal <skasal at redhat.com> - 0.35-14
 - rebuild against perl 5.10.1
 
diff --git a/sources b/sources
index d22fd04..f726eef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3ad10ddc756ec55649599e2e0a32c886  po4a-0.35.tar.gz
+93b3137502a749bdc3a059466f2a19d2  po4a-0.41.tar.gz


More information about the scm-commits mailing list