Name: itstool Version: 2.0.7 Release: %autorelease Summary: ITS-based XML translation tool License: GPL-3.0-or-later URL: http://itstool.org/ Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2 # See: https://github.com/itstool/itstool/issues/25 Patch0: https://sources.debian.org/data/main/i/itstool/2.0.5-2/debian/patches/fix_crash_912099.patch#/%{name}-2.0.5-fix-crash-wrong-encoding.patch # Filed upstream at https://github.com/itstool/itstool/pull/51 Patch1: 0001-Fix-insufficiently-quoted-regular-expressions.patch BuildArch: noarch BuildRequires: python3-libxml2 BuildRequires: python3-devel BuildRequires: make Requires: python3-libxml2 %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. %prep %setup -q %patch -P0 -p1 -b .encoding %patch -P1 -p1 -b .py312-regex %build export PYTHON=%{__python3} %configure %make_build %install %make_install %files %license COPYING COPYING.GPL3 %doc NEWS %{_bindir}/itstool %{_datadir}/itstool %{_mandir}/man1/itstool.1* %changelog %autochangelog