Summary: ITS-based XML translation tool Summary(pl.UTF-8): Narzędzie do tłumaczenia XML-a oparte na ITS Name: itstool Version: 2.0.7 Release: 3 License: GPL v3+ Group: Applications/Text Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2 # Source0-md5: 267a3bdc72a2d8abb1b824f2ea32ee9b Patch0: %{name}-fix-crash-wrong-encoding.patch Patch1: fix-untrunslated-nodes.patch URL: http://itstool.org/ BuildRequires: python3 BuildRequires: python3-libxml2 Requires: python3 Requires: python3-libxml2 Requires: python3-modules BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description ITS Tool allows you to translate XML documents with PO files, using rules from the W3C Internationalization Tag Set (ITS) to determine what to translate and how to separate it into PO file messages. %description -l pl.UTF-8 ITS Tool pozwala na tłumaczenie dokumentów XML przy użyciu plików PO, z wykorzystaniem reguł ITS (W3C Internationalization Tag Set) do określania, co ma być tłumaczone i jak powinno być rozdzielone na komunikaty w pliku PO. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure \ PYTHON="%{__python3}" %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog NEWS %attr(755,root,root) %{_bindir}/itstool %{_datadir}/itstool %{_mandir}/man1/itstool.1*