2012-02-13 14:44:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package po4a
|
|
|
|
#
|
2022-01-12 17:08:37 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-02-13 14:44:45 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2012-02-13 14:58:58 +00:00
|
|
|
|
2019-11-22 21:29:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-13 14:44:45 +00:00
|
|
|
#
|
|
|
|
|
2012-02-13 14:58:58 +00:00
|
|
|
|
2012-02-13 14:44:45 +00:00
|
|
|
Name: po4a
|
2022-01-12 17:08:37 +00:00
|
|
|
Version: 0.66
|
2012-02-13 14:44:45 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Framework to translate documentation and other materials
|
2020-08-17 13:04:47 +00:00
|
|
|
License: GPL-2.0-only
|
2021-06-24 19:22:34 +00:00
|
|
|
%if "%{_vendor}" == "debbuild"
|
|
|
|
Group: text
|
|
|
|
%else
|
2012-02-13 14:44:45 +00:00
|
|
|
Group: Development/Tools/Other
|
2021-06-24 19:22:34 +00:00
|
|
|
%endif
|
2020-08-17 13:04:47 +00:00
|
|
|
URL: https://po4a.org/
|
2018-08-13 13:48:01 +00:00
|
|
|
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2013-06-24 18:54:05 +00:00
|
|
|
|
2021-06-24 19:22:34 +00:00
|
|
|
%if "%{_vendor}" == "debbuild"
|
|
|
|
BuildRequires: deb-perl-macros
|
|
|
|
BuildRequires: docbook
|
|
|
|
BuildRequires: docbook-xml
|
|
|
|
BuildRequires: docbook-xsl
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: libmodule-build-perl
|
|
|
|
BuildRequires: libpod-parser-perl
|
|
|
|
BuildRequires: libsgmls-perl
|
|
|
|
BuildRequires: libterm-readkey-perl
|
|
|
|
BuildRequires: libunicode-linebreak-perl
|
|
|
|
BuildRequires: libyaml-tiny-perl
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: texlive-binaries
|
|
|
|
BuildRequires: texlive-latex-base
|
|
|
|
BuildRequires: xsltproc
|
|
|
|
|
|
|
|
%else
|
2012-02-13 14:44:45 +00:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2012-03-23 19:22:17 +00:00
|
|
|
BuildRequires: libxslt-tools
|
2012-10-20 17:58:30 +00:00
|
|
|
BuildRequires: perl-Module-Build >= 0.40
|
|
|
|
BuildRequires: perl-SGMLS >= 1.03ii
|
2012-02-13 14:44:45 +00:00
|
|
|
BuildRequires: perl-Term-ReadKey
|
2020-09-03 13:30:26 +00:00
|
|
|
BuildRequires: perl-Test-Pod
|
2012-02-13 14:44:45 +00:00
|
|
|
BuildRequires: perl-Text-WrapI18N
|
2012-10-20 17:58:30 +00:00
|
|
|
BuildRequires: perl-Unicode-LineBreak
|
2020-08-17 13:04:47 +00:00
|
|
|
BuildRequires: perl-YAML-Tiny
|
2013-01-27 08:53:25 +00:00
|
|
|
BuildRequires: perl-base
|
|
|
|
BuildRequires: perl-gettext >= 1.01
|
2020-10-30 13:23:51 +00:00
|
|
|
BuildRequires: perl(Pod::Parser)
|
2012-02-13 14:44:45 +00:00
|
|
|
# for test suite
|
|
|
|
BuildRequires: docbook_4
|
|
|
|
BuildRequires: iso_ent
|
2021-06-24 19:22:34 +00:00
|
|
|
%endif
|
2012-02-13 14:44:45 +00:00
|
|
|
BuildRequires: opensp
|
2017-01-26 11:54:01 +00:00
|
|
|
|
2021-06-24 19:22:34 +00:00
|
|
|
%{perl_requires}
|
|
|
|
%if "%{_vendor}" == "debbuild"
|
|
|
|
#Requires: ${misc:Depends}
|
|
|
|
Requires: gettext
|
|
|
|
Requires: libpod-parser-perl
|
|
|
|
Requires: libsgmls-perl
|
|
|
|
Requires: libyaml-tiny-perl
|
|
|
|
Requires: opensp
|
|
|
|
Recommends: liblocale-gettext-perl
|
|
|
|
Recommends: libterm-readkey-perl
|
|
|
|
Recommends: libtext-wrapi18n-perl
|
|
|
|
Recommends: libunicode-linebreak-perl
|
|
|
|
%else
|
2021-09-16 14:17:07 +00:00
|
|
|
Requires: gettext-tools
|
2020-09-03 13:30:26 +00:00
|
|
|
Requires: perl-SGMLS
|
|
|
|
Requires: perl-YAML-Tiny
|
2020-11-10 08:51:18 +00:00
|
|
|
Requires: perl(Pod::Parser)
|
2012-02-13 14:44:45 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%lang_package
|
2021-06-24 19:22:34 +00:00
|
|
|
%endif
|
2012-02-13 14:44:45 +00:00
|
|
|
|
|
|
|
%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
|
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
|
|
|
* YAML
|
|
|
|
* KernelHelp
|
2012-02-13 14:44:45 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2012-02-13 15:38:14 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
2012-02-13 14:44:45 +00:00
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
2019-11-22 21:29:58 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2012-02-13 14:44:45 +00:00
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
|
|
|
|
%check
|
2013-01-27 08:53:25 +00:00
|
|
|
# requires texlive, which is too heavy for the package
|
2020-08-17 13:04:47 +00:00
|
|
|
rm -rf t/fmt-tex.t t/fmt/tex
|
Accepting request 669920 from home:elchevive:branches:devel:languages:perl
- updated to version 0.55
AsciiDoc:
* Fix Asciidoc unindented lists
* Make Asciidoc Tables nowrap and support current format
* Do not include table fences in pot file
* Add option to prevent translation of target of image blocks
Markdown:
* Improve markdown ruler parsing, and add test.
* Add markdown fenced code block parsing, and add test.
Sgml:
* Avoid deprecated unescaped left brace in regex to get ready for Perl 5.32.
(deb#903735)
TransTractor:
* Ensure to split lines before addendum operation without loss or addition of
newline. With this change, addendum behavior is more intuitive.(deb#518218)
Wml:
* Fix longstanding error regarding comments at the beginning of a file.
Xml, Docbook:
* Document XML tag behavior customization with example to help use case
specific customization. (deb#515763)
* Debug output enhancement to help people understand what exactly happening
inside po4a.
* Extensive POD and code comment additions and updates.
po4a tool:
* Add pot_in feature to support the secondary master file for the base of
POT/PO file generation.
Test:
* Add XML test cases with po4a including addendum, tag customization, and
pot_in feature.
Translations:
New translation to Chinese and Chinese Simplified
Updated: Dutch, Estonian, French German, Italian, Norwegian Bokmål,
Portuguese (Brazil), Russian, Spanish, Swedish, Ukrainian and Vietnamese.
OBS-URL: https://build.opensuse.org/request/show/669920
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=50
2019-02-01 19:33:32 +00:00
|
|
|
|
|
|
|
#run the tests
|
2012-02-13 14:44:45 +00:00
|
|
|
./Build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
2019-11-22 21:29:58 +00:00
|
|
|
%doc NEWS README* TODO
|
|
|
|
%license COPYING
|
2012-02-13 14:44:45 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
|
|
|
%dir %{perl_vendorlib}/Locale/
|
|
|
|
%{perl_vendorlib}/Locale/Po4a
|
2021-07-12 13:13:24 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man7/*
|
2012-03-21 13:40:23 +00:00
|
|
|
|
2012-02-13 14:44:45 +00:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2012-03-21 13:40:23 +00:00
|
|
|
%dir %{_mandir}/ca
|
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
|
|
|
%dir %{_mandir}/de
|
|
|
|
%dir %{_mandir}/es
|
|
|
|
%dir %{_mandir}/fr
|
|
|
|
%dir %{_mandir}/it
|
|
|
|
%dir %{_mandir}/ja
|
|
|
|
%dir %{_mandir}/nl
|
2012-03-21 13:40:23 +00:00
|
|
|
%dir %{_mandir}/pl
|
2012-10-21 16:59:13 +00:00
|
|
|
%dir %{_mandir}/pt
|
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
|
|
|
%dir %{_mandir}/pt_BR
|
|
|
|
%dir %{_mandir}/ru
|
|
|
|
%dir %{_mandir}/sr_Cyrl
|
2018-08-13 13:48:01 +00:00
|
|
|
%dir %{_mandir}/uk
|
Accepting request 669920 from home:elchevive:branches:devel:languages:perl
- updated to version 0.55
AsciiDoc:
* Fix Asciidoc unindented lists
* Make Asciidoc Tables nowrap and support current format
* Do not include table fences in pot file
* Add option to prevent translation of target of image blocks
Markdown:
* Improve markdown ruler parsing, and add test.
* Add markdown fenced code block parsing, and add test.
Sgml:
* Avoid deprecated unescaped left brace in regex to get ready for Perl 5.32.
(deb#903735)
TransTractor:
* Ensure to split lines before addendum operation without loss or addition of
newline. With this change, addendum behavior is more intuitive.(deb#518218)
Wml:
* Fix longstanding error regarding comments at the beginning of a file.
Xml, Docbook:
* Document XML tag behavior customization with example to help use case
specific customization. (deb#515763)
* Debug output enhancement to help people understand what exactly happening
inside po4a.
* Extensive POD and code comment additions and updates.
po4a tool:
* Add pot_in feature to support the secondary master file for the base of
POT/PO file generation.
Test:
* Add XML test cases with po4a including addendum, tag customization, and
pot_in feature.
Translations:
New translation to Chinese and Chinese Simplified
Updated: Dutch, Estonian, French German, Italian, Norwegian Bokmål,
Portuguese (Brazil), Russian, Spanish, Swedish, Ukrainian and Vietnamese.
OBS-URL: https://build.opensuse.org/request/show/669920
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=50
2019-02-01 19:33:32 +00:00
|
|
|
%dir %{_mandir}/zh_CHS
|
2013-01-27 08:53:25 +00:00
|
|
|
|
2012-02-13 14:44:45 +00:00
|
|
|
%changelog
|