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