44561e
Name: po4a
86297c
Version: 0.63
86297c
Release: 1%{?dist}
44561e
Summary: A tool maintaining translations anywhere
44561e
License: GPL+
86297c
URL: https://po4a.org/
44561e
86297c
Source0: https://github.com/mquinson/po4a/archive/v%{version}/%{name}-%{version}.tar.gz
44561e
44561e
BuildArch: noarch
44561e
BuildRequires: %{_bindir}/xsltproc
44561e
BuildRequires: coreutils
44561e
BuildRequires: docbook-style-xsl
44561e
BuildRequires: findutils
44561e
BuildRequires: grep
44561e
# Requires a pod2man which supports --utf8
44561e
# Seemingly added in perl-5.10.1
44561e
BuildRequires: perl-interpreter >= 4:5.10.1
44561e
BuildRequires: perl-generators
44561e
BuildRequires: perl(lib)
44561e
BuildRequires: perl(Encode)
44561e
BuildRequires: perl(ExtUtils::Install)
44561e
BuildRequires: perl(File::Basename)
44561e
BuildRequires: perl(File::Copy)
44561e
BuildRequires: perl(File::Path)
44561e
BuildRequires: perl(File::Spec)
44561e
BuildRequires: perl(File::stat)
44561e
BuildRequires: perl(Module::Build)
44561e
BuildRequires: perl(Pod::Man)
44561e
44561e
# Run-time:
44561e
BuildRequires: %{_bindir}/nsgmls
44561e
BuildRequires: gettext
44561e
BuildRequires: perl(Carp)
44561e
BuildRequires: perl(Config)
44561e
BuildRequires: perl(Cwd)
44561e
BuildRequires: perl(DynaLoader)
44561e
BuildRequires: perl(Encode::Guess)
44561e
BuildRequires: perl(Exporter)
44561e
BuildRequires: perl(Fcntl)
44561e
BuildRequires: perl(File::Temp)
44561e
BuildRequires: perl(Getopt::Long)
44561e
BuildRequires: perl(Getopt::Std)
44561e
BuildRequires: perl(IO::File)
44561e
BuildRequires: perl(Pod::Parser)
44561e
BuildRequires: perl(Pod::Usage)
44561e
BuildRequires: perl(POSIX)
44561e
BuildRequires: perl(SGMLS) >= 1.03ii
44561e
BuildRequires: perl(strict)
44561e
BuildRequires: perl(subs)
44561e
BuildRequires: perl(Time::Local)
44561e
BuildRequires: perl(vars)
44561e
BuildRequires: perl(warnings)
44561e
# hope texlive-kpseas-bin missing deps was fixed
44561e
# epel7 doesn't have /usr/share/texlive/texmf-dist/web2c/texmf.cnf
44561e
BuildRequires: texlive-kpathsea
44561e
BuildRequires: texlive-kpathsea-bin
86297c
BuildRequires: tex(article.cls)
44561e
44561e
BuildRequires: perl(I18N::Langinfo)
44561e
BuildRequires: perl(Locale::gettext) >= 1.01
44561e
BuildRequires: perl(Term::ReadKey)
44561e
BuildRequires: perl(Text::WrapI18N)
44561e
BuildRequires: perl(Unicode::GCString)
44561e
44561e
# Required by the tests:
44561e
BuildRequires: perl(Test::More)
86297c
BuildRequires: perl(YAML::Tiny)
44561e
44561e
44561e
Requires: %{_bindir}/nsgmls
44561e
Requires: %{_bindir}/xsltproc
44561e
Requires: gettext
44561e
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
44561e
# hope texlive-kpseas-bin missing deps was fixed
44561e
# epel7 doesn't have /usr/share/texlive/texmf-dist/web2c/texmf.cnf
44561e
Requires: texlive-kpathsea
44561e
Requires: texlive-kpathsea-bin
44561e
44561e
# Optional, but package is quite useless without
44561e
Requires: perl(Locale::gettext) >= 1.01
44561e
# Optional run-time:
44561e
Requires: perl(I18N::Langinfo)
44561e
Requires: perl(Term::ReadKey)
44561e
Requires: perl(Text::WrapI18N)
44561e
Requires: perl(Unicode::GCString)
44561e
44561e
%description
44561e
The po4a (po for anything) project goal is to ease translations (and
44561e
more interestingly, the maintenance of translations) using gettext
44561e
tools on areas where they were not expected like documentation.
44561e
44561e
%prep
86297c
%autosetup -p1
44561e
chmod +x scripts/*
44561e
44561e
%build
44561e
export PO4AFLAGS="-v -v -v"
86297c
LANG=C.utf8
44561e
%{__perl} ./Build.PL installdirs=vendor
44561e
./Build
44561e
44561e
%install
86297c
LANG=C.utf8
44561e
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
44561e
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
44561e
44561e
%{_fixperms} $RPM_BUILD_ROOT/*
44561e
%find_lang %{name}
44561e
44561e
%check
86297c
LANG=C.utf8
86297c
#./Build test
44561e
44561e
44561e
%files -f %{name}.lang
44561e
%doc README* TODO
44561e
%license COPYING
44561e
%{_bindir}/po4a*
44561e
%{_bindir}/msguntypot
44561e
%{perl_vendorlib}/Locale
44561e
%{_mandir}/man1/po4a*.1*
44561e
%{_mandir}/man1/msguntypot.1*
44561e
%{_mandir}/man3/Locale::Po4a::*.3*
86297c
#{_mandir}/man5/po4a-build.conf*.5*
86297c
#{_mandir}/man7/po4a-runtime.7*
44561e
%{_mandir}/man7/po4a.7*
44561e
%{_mandir}/*/man1/po4a*.1*
44561e
%{_mandir}/*/man1/msguntypot.1*
44561e
%{_mandir}/*/man3/Locale::Po4a::*.3*
86297c
#{_mandir}/*/man5/po4a-build.conf.5*
86297c
#{_mandir}/*/man7/po4a-runtime.7*
44561e
%{_mandir}/*/man7/po4a.7*
44561e
44561e
%changelog
86297c
* Wed May 19 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-1
86297c
- Rebase RHEL 8 package to same as Fedora
86297c
  resolves: rhbz#1959750
86297c
86297c
* Tue Feb 23 2021 Sérgio Basto <sergio@serjux.com> - 0.63-1
86297c
- Update po4a to 0.63 (#1905315)
86297c
86297c
* Tue Feb 16 2021 Sérgio Basto <sergio@serjux.com> - 0.62-1
86297c
- Update po4a to 0.62 (#1905315)
86297c
86297c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-2
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
86297c
86297c
* Wed Aug 05 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.61-1
86297c
- Update to 0.61 (#1866407)
86297c
86297c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.60-2
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
86297c
86297c
* Sun Jul 26 2020 Sérgio Basto <sergio@serjux.com> - 0.60-1
86297c
- Update po4a to 0.60 (#1857579)
86297c
86297c
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.59.1-2
86297c
- Perl 5.32 rebuild
86297c
86297c
* Mon May 25 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.59.1-1
86297c
- Update to 0.59.1 (#1830920)
86297c
86297c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.57-2
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
86297c
86297c
* Sat Oct 26 2019 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.57-1
86297c
- Update to 0.57 (#1765793)
86297c
86297c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.56-2
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
86297c
86297c
* Sat Jun 08 2019 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.56-1
86297c
- Update to 0.56 (#1718505)
86297c
86297c
* Sat Jun 01 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.54-4
86297c
- Perl 5.30 rebuild
86297c
86297c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.54-3
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
86297c
86297c
* Mon Nov 19 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.54-2
86297c
- Use C.UTF-8 locale
86297c
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
86297c
86297c
* Mon Sep 24 2018 Sérgio Basto <sergio@serjux.com> - 0.54-1
86297c
- Update po4a to 0.54 (#1582687)
86297c
- Fix warning "Output of 'msggrep' might be incorrect" with set LANG=en_US.utf8
86297c
- Remove HTML test, which does no longer pass
86297c
86297c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.52-6
86297c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
86297c
86297c
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-5
86297c
- Perl 5.28 rebuild
86297c
44561e
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.52-4
44561e
- Escape macros in %%changelog
44561e
44561e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.52-3
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
44561e
44561e
* Sat Dec 02 2017 Sérgio Basto <sergio@serjux.com> - 0.52-2
44561e
- Add to Requires all optional run-time perl modules (#1515239)
44561e
- Readd Requires of perl-gettext on epel7 since rhbz #1196539 is fixed but RHEL7.4
44561e
  also already ships poa4 except in ppc64 see rhbz #1497544
44561e
44561e
* Sun Aug 27 2017 Fedora Release Monitoring  <release-monitoring@fedoraproject.org> - 0.52-1
44561e
- Update to 0.52 (#1485710)
44561e
44561e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.51-2
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
44561e
44561e
* Mon Jun 26 2017 Sérgio Basto <sergio@serjux.com> - 0.51-1
44561e
- Update to 0.51 (#1436674)
44561e
44561e
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.47-5
44561e
- Perl 5.26 rebuild
44561e
- Fix building on Perl without '.' in @INC
44561e
44561e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-4
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
44561e
44561e
* Tue May 17 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.47-3
44561e
- Perl 5.24 rebuild
44561e
44561e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-2
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
44561e
44561e
* Thu Sep 10 2015 Sérgio Basto <sergio@serjux.com> - 0.47-1
44561e
- Update to 0.47
44561e
44561e
* Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 0.45-7
44561e
- Specify all dependencies
44561e
44561e
* Wed Jun 17 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.45-6
44561e
- Add po4a-0.45-perl-5.22-hacks.diff
44561e
  (Address perl-5.22 FTBFS; RHBZ #1230977).
44561e
- Add %%license.
44561e
44561e
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-5
44561e
- Perl 5.22 rebuild
44561e
44561e
* Sun Apr 19 2015 Sérgio Basto <sergio@serjux.com> - 0.45-4
44561e
- Temporary workaround for epel-7 until have perl-gettext in epel-7
44561e
44561e
* Sat Jan 17 2015 Sérgio Basto <sergio@serjux.com> - 0.45-3
44561e
- fix buildrequires for epel7
44561e
44561e
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-2
44561e
- Perl 5.20 rebuild
44561e
44561e
* Thu Jul 10 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.45-1
44561e
- Upstream update.
44561e
- Remove 0001-Remove-defined-anachronism.patch,
44561e
  po4a-0.44-use-tempfile-correctly.patch.
44561e
- Reflect upstream URL having changed.
44561e
- Reflect Source0-URL having changed.
44561e
44561e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-13
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44561e
44561e
* Thu Aug  8 2013 Richard W.M. Jones <rjones@redhat.com> - 0.44-12
44561e
- Fix upstream source URL.
44561e
44561e
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 0.44-11
44561e
- Perl 5.18 rebuild
44561e
44561e
* Tue Jul 30 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.44-10
44561e
- Add BR: /usr/share/texlive/texmf-dist/web2c/texmf.cnf.
44561e
- Re-enable t/24-tex.t (Cause for breakdown is texlive packing mess).
44561e
- Add BR: perl(Unicode::GCString).
44561e
- Move shebang fixing into %%build.
44561e
- Fix Source0-URL.
44561e
- Spec-file cosmetics.
44561e
44561e
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 0.44-9
44561e
- Fix bang path /usr/bin/env perl -> %%{_bindir}/perl (RHBZ#987035).
44561e
- Increase verbosity of po4a when building to help diagnose build errors.
44561e
- +BR Pod::Parser.
44561e
- Disable 24-tex.t which does not run and does not produce any
44561e
  useful diagnostics either.
44561e
44561e
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.44-2
44561e
- Perl 5.18 rebuild
44561e
44561e
* Wed Apr 17 2013 Richard W.M. Jones <rjones@redhat.com> - 0.44-1
44561e
- New upstream version 0.44.
44561e
- Fix incorrect use of File::Temp->tempfile (RHBZ#953066).
44561e
- Tidy up the spec file.
44561e
- po4a-build.conf.5 and po4a-runtime.7 man pages are no longer
44561e
  installed in the English version for some (unknown) reason.
44561e
44561e
* Mon Mar 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.42-3
44561e
- Add 0001-Remove-defined-anachronism.patch.
44561e
- Modernize spec.
44561e
44561e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42-2
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
44561e
44561e
* Wed Jul 18 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.42-1
44561e
- Upstream update.
44561e
44561e
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.41-5
44561e
- Perl 5.16 rebuild
44561e
44561e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-4
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
44561e
44561e
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.41-3
44561e
- Perl mass rebuild
44561e
44561e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-2
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
44561e
44561e
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.41-1
44561e
- Upstream update.
44561e
- Reflect upstream having changed to Module::Build.
44561e
- Remove po4a-0.40.1.diff.
44561e
44561e
* Fri Oct 15 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.40.1-1
44561e
- Upstream update.
44561e
- Add po4a-v0.40.1.diff (add missing file t/compare-po.pl)
44561e
- Make testsuite working.
44561e
- Spec overhaul.
44561e
- Eliminate /usr/bin/env perl.
44561e
- Require perl >= 5.10.1
44561e
44561e
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.35-15
44561e
- Mass rebuild with perl-5.12.0
44561e
44561e
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.35-14
44561e
- rebuild against perl 5.10.1
44561e
44561e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-13
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
44561e
44561e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-12
44561e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
44561e
44561e
* Sat Feb 14 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.35-11
44561e
- Update to 0.35.
44561e
44561e
* Tue Jan 13 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.34-10
44561e
- Add BuildRequires: perl(Test::More), BuildRequires: docbook-dtds.
44561e
- Activate tests.
44561e
- Fix Source0:-URL.
44561e
- Spec file cosmetics.
44561e
44561e
* Sun Aug 24 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.34-9
44561e
- Update to 0.34.
44561e
44561e
* Sun Jun 01 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-8
44561e
- Let package own %%{perl_vendorlib}/Locale (BZ 449258).
44561e
44561e
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-7
44561e
- Remove || : in %%check due to rpm not accepting it anymore.
44561e
44561e
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-6
44561e
- Add: "Requires: perl(:MODULE_COMPAT_...)" (BZ 442548).
44561e
44561e
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.32-5
44561e
- fix license tag
44561e
44561e
* Mon Aug 20 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.32-4
44561e
- Update to 0.32.
44561e
- fixes a possible race condition under /tmp (no CVE yet).
44561e
44561e
* Thu Dec 28 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.29-3
44561e
- Update to 0.29.
44561e
44561e
* Sat Feb 18 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
44561e
- Initial build.
44561e