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