Blame SPECS/po4a.spec

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