Blame SPECS/po4a.spec

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