223bcc
Name: po4a
223bcc
Version: 0.44
223bcc
Release: 10%{?dist}
223bcc
Summary: A tool maintaining translations anywhere
223bcc
License: GPL+
223bcc
URL: http://alioth.debian.org/projects/po4a/
223bcc
223bcc
Source0: http://alioth.debian.org/frs/download.php/3723/%{name}-%{version}.tar.gz
223bcc
Patch0: 0001-Remove-defined-anachronism.patch
223bcc
# Patch sent upstream on 2013-04-17.
223bcc
Patch1: po4a-0.44-use-tempfile-correctly.patch
223bcc
223bcc
BuildArch: noarch
223bcc
BuildRequires: perl(Module::Build)
223bcc
BuildRequires: perl(Text::WrapI18N)
223bcc
BuildRequires: perl(SGMLS) >= 1.03ii
223bcc
BuildRequires: perl(Locale::gettext) >= 1.01
223bcc
BuildRequires: perl(Term::ReadKey)
223bcc
BuildRequires: perl(Pod::Parser)
223bcc
BuildRequires: /usr/bin/xsltproc
223bcc
BuildRequires: gettext
223bcc
BuildRequires: docbook-style-xsl
223bcc
223bcc
# Requires a pod2man which support --utf8
223bcc
# Seemingling added in perl-5.10.1
223bcc
BuildRequires: perl >= 4:5.10.1
223bcc
223bcc
# Required by the tests.
223bcc
BuildRequires: perl(Test::More)
223bcc
BuildRequires: /usr/bin/kpsewhich
223bcc
223bcc
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
223bcc
Requires: gettext
223bcc
223bcc
# Optional, used by Locale/Po4a/TeX.pm
223bcc
# Requires: /usr/bin/kpsewhich
223bcc
# Optional, used by po4a-build
223bcc
# Requires: /usr/bin/xsltproc
223bcc
# Optional, but package is quite useless without
223bcc
Requires: perl(Locale::gettext) >= 1.01
223bcc
223bcc
%description
223bcc
The po4a (po for anything) project goal is to ease translations (and
223bcc
more interestingly, the maintenance of translations) using gettext
223bcc
tools on areas where they were not expected like documentation.
223bcc
223bcc
%prep
223bcc
%setup -q -n %{name}-%{version}
223bcc
%patch0 -p1
223bcc
%patch1 -p1
223bcc
223bcc
%build
223bcc
export PO4AFLAGS="-v -v -v"
223bcc
%{__perl} ./Build.PL installdirs=vendor
223bcc
./Build
223bcc
223bcc
%install
223bcc
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
223bcc
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
223bcc
223bcc
# Fix bang path /usr/bin/env perl -> %{_bindir}/perl (RHBZ#987035).
223bcc
%{__perl} -p -i -e 's,#!\s*/usr/bin/env perl,#!%{_bindir}/perl,' \
223bcc
  $(find $RPM_BUILD_ROOT -type f -executable |
223bcc
    xargs grep -l "/usr/bin/env perl")
223bcc
223bcc
%{_fixperms} $RPM_BUILD_ROOT/*
223bcc
223bcc
%find_lang %{name}
223bcc
223bcc
%check
223bcc
# Disabled: broken for unknown reasons in Fedora > 19.
223bcc
rm t/24-tex.t
223bcc
223bcc
./Build test
223bcc
223bcc
223bcc
%files -f %{name}.lang
223bcc
%doc README* COPYING TODO
223bcc
%{_bindir}/po4a*
223bcc
%{_bindir}/msguntypot
223bcc
%{perl_vendorlib}/Locale
223bcc
%{_mandir}/man1/po4a*.1*
223bcc
%{_mandir}/man1/msguntypot.1*
223bcc
%{_mandir}/man3/Locale::Po4a::*.3*
223bcc
#%{_mandir}/man5/po4a-build.conf*.5*
223bcc
#%{_mandir}/man7/po4a-runtime.7*
223bcc
%{_mandir}/man7/po4a.7*
223bcc
%{_mandir}/*/man1/po4a*.1*
223bcc
%{_mandir}/*/man1/msguntypot.1*
223bcc
%{_mandir}/*/man3/Locale::Po4a::*.3*
223bcc
%{_mandir}/*/man5/po4a-build.conf.5*
223bcc
%{_mandir}/*/man7/po4a.7*
223bcc
%{_mandir}/*/man7/po4a-runtime.7*
223bcc
223bcc
%changelog
223bcc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.44-10
223bcc
- Mass rebuild 2013-12-27
223bcc
223bcc
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 0.44-9
223bcc
- Fix bang path /usr/bin/env perl -> %{_bindir}/perl (RHBZ#987035).
223bcc
- Increase verbosity of po4a when building to help diagnose build errors.
223bcc
- +BR Pod::Parser.
223bcc
- Disable 24-tex.t which does not run and does not produce any
223bcc
  useful diagnostics either.
223bcc
223bcc
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.44-2
223bcc
- Perl 5.18 rebuild
223bcc
223bcc
* Wed Apr 17 2013 Richard W.M. Jones <rjones@redhat.com> - 0.44-1
223bcc
- New upstream version 0.44.
223bcc
- Fix incorrect use of File::Temp->tempfile (RHBZ#953066).
223bcc
- Tidy up the spec file.
223bcc
- po4a-build.conf.5 and po4a-runtime.7 man pages are no longer
223bcc
  installed in the English version for some (unknown) reason.
223bcc
223bcc
* Mon Mar 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.42-3
223bcc
- Add 0001-Remove-defined-anachronism.patch.
223bcc
- Modernize spec.
223bcc
223bcc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42-2
223bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
223bcc
223bcc
* Wed Jul 18 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.42-1
223bcc
- Upstream update.
223bcc
223bcc
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.41-5
223bcc
- Perl 5.16 rebuild
223bcc
223bcc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-4
223bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
223bcc
223bcc
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.41-3
223bcc
- Perl mass rebuild
223bcc
223bcc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-2
223bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
223bcc
223bcc
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.41-1
223bcc
- Upstream update.
223bcc
- Reflect upstream having changed to Module::Build.
223bcc
- Remove po4a-0.40.1.diff.
223bcc
223bcc
* Fri Oct 15 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.40.1-1
223bcc
- Upstream update.
223bcc
- Add po4a-v0.40.1.diff (add missing file t/compare-po.pl)
223bcc
- Make testsuite working.
223bcc
- Spec overhaul.
223bcc
- Eliminate /usr/bin/env perl.
223bcc
- Require perl >= 5.10.1
223bcc
223bcc
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.35-15
223bcc
- Mass rebuild with perl-5.12.0
223bcc
223bcc
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.35-14
223bcc
- rebuild against perl 5.10.1
223bcc
223bcc
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-13
223bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
223bcc
223bcc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-12
223bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
223bcc
223bcc
* Sat Feb 14 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.35-11
223bcc
- Update to 0.35.
223bcc
223bcc
* Tue Jan 13 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.34-10
223bcc
- Add BuildRequires: perl(Test::More), BuildRequires: docbook-dtds.
223bcc
- Activate tests.
223bcc
- Fix Source0:-URL.
223bcc
- Spec file cosmetics.
223bcc
223bcc
* Sun Aug 24 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.34-9
223bcc
- Update to 0.34.
223bcc
223bcc
* Sun Jun 01 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-8
223bcc
- Let package own %%{perl_vendorlib}/Locale (BZ 449258).
223bcc
223bcc
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-7
223bcc
- Remove || : in %%check due to rpm not accepting it anymore.
223bcc
223bcc
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-6
223bcc
- Add: "Requires: perl(:MODULE_COMPAT_...)" (BZ 442548).
223bcc
223bcc
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.32-5
223bcc
- fix license tag
223bcc
223bcc
* Mon Aug 20 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.32-4
223bcc
- Update to 0.32.
223bcc
- fixes a possible race condition under /tmp (no CVE yet).
223bcc
223bcc
* Thu Dec 28 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.29-3
223bcc
- Update to 0.29.
223bcc
223bcc
* Sat Feb 18 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
223bcc
- Initial build.
223bcc