po4a/po4a.spec
Luiz Fernando Ranghetti 96efddcb29 Accepting request 853677 from home:pagarcia:po4a
- Update to version 0.62
- Install additional translated manpages: de, es, fr, it, ja, nl, pt_BR, ru
po4a tool:
 * Improve po_paths on misconfigurations, improve doc and error messages.
Asciidoc:
 * Unwrap all paragraphs by default (Github's #242).
   Introduce "forcewrap" option to re-enable line wrapping on output.
 * Support definition list continuations with indent (Github's #273)
DocBook:
 * Mark xreflabel attributes as translatable (GitHub's #267).
 
Translations:
Updated: Croatian, Chinese (simplified), Dutch, French, German, Hungarian, 
Italian, Norwegian Bokmål, Portuguese, Portuguese (Brazil), Russian, 
Serbian (cyrillic), Spanish and Ukrainian

OBS-URL: https://build.opensuse.org/request/show/853677
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=65
2020-12-08 14:12:50 +00:00

122 lines
3.3 KiB
RPMSpec

#
# spec file for package po4a
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: po4a
Version: 0.62
Release: 0
Summary: Framework to translate documentation and other materials
License: GPL-2.0-only
Group: Development/Tools/Other
URL: https://po4a.org/
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt-tools
BuildRequires: perl-Module-Build >= 0.40
BuildRequires: perl-SGMLS >= 1.03ii
BuildRequires: perl-Term-ReadKey
BuildRequires: perl-Test-Pod
BuildRequires: perl-Text-WrapI18N
BuildRequires: perl-Unicode-LineBreak
BuildRequires: perl-YAML-Tiny
BuildRequires: perl-base
BuildRequires: perl-gettext >= 1.01
BuildRequires: perl(Pod::Parser)
# for test suite
BuildRequires: docbook_4
BuildRequires: iso_ent
BuildRequires: opensp
Requires: %{name}-lang = %{version}
Requires: perl-SGMLS
Requires: perl-YAML-Tiny
Requires: perl(Pod::Parser)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%lang_package
%description
Po4a extracts the translatable material from its input in a PO file.
When the PO file is translated, it re-injects the translation in the structure of the document, and generates the translated document.
If a string is not translated (i.e. it was not translated or it is "fuzzy"
because the original document was updated), the original string is used.
This permits to provide always up-to-date documentation.
po4a supports currently the following formats:
* manpages
* POD
* XML (generic, DocBook, XHTML, Dia, Guide, or WML)
* SGML
* TeX (generic, LaTeX, or Texinfo)
* text (simple text files with some formatting, markdown, or AsciiDoc)
* INI
* YAML
* KernelHelp
%prep
%setup -q
%build
perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=%{buildroot} create_packlist=0
%find_lang %{name} --with-man --all-name
%check
# requires texlive, which is too heavy for the package
rm -rf t/fmt-tex.t t/fmt/tex
#run the tests
./Build test
%files
%defattr(644,root,root,755)
%doc NEWS README* TODO
%license COPYING
%attr(755,root,root) %{_bindir}/*
%dir %{perl_vendorlib}/Locale/
%{perl_vendorlib}/Locale/Po4a
%{_mandir}/man[1357]/*
%files lang -f %{name}.lang
%defattr(-,root,root)
%dir %{_mandir}/ca
%dir %{_mandir}/de
#%dir %{_mandir}/eo
%dir %{_mandir}/es
%dir %{_mandir}/fr
#%dir %{_mandir}/hr
#%dir %{_mandir}/hu
%dir %{_mandir}/it
%dir %{_mandir}/ja
#%dir %{_mandir}/nb
%dir %{_mandir}/nl
%dir %{_mandir}/pl
%dir %{_mandir}/pt
%dir %{_mandir}/pt_BR
%dir %{_mandir}/ru
%dir %{_mandir}/sr_Cyrl
%dir %{_mandir}/uk
%dir %{_mandir}/zh_CHS
%changelog