Blame SPECS/po4a.spec

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