forked from pool/itstool
- Switch to python3 version: + Add python3-base BuildRequires: unlike python2, py3 is not implicit in the buildroot yet. + Export PYTHON=python3 before configure. + Replace libxml2-python (Build)?Requires with python3-libxml2-python. - Update to version 2.0.4: + Fixed a massive performance issue. - Add itstool-2.0.4-no-freedoc.patch: Do not free xmlDocs, avoid crashes (gh#itstool/itstool#17). - Update to version 2.0.3: + Added: - Python 3 support. Keeping Python 2 support for now. - --path option for extra paths for ITS files. + Fixed: - --keep-entities mode after some libxml2 changes. - UTF-8 handling for translated attributes. + Don't error out (except under -s) for mismatched placeholders. OBS-URL: https://build.opensuse.org/request/show/536558 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/itstool?expand=0&rev=24
63 lines
2.0 KiB
RPMSpec
63 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package itstool
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: itstool
|
|
Version: 2.0.4
|
|
Release: 0
|
|
Summary: Tool to translate XML documents using PO files
|
|
License: GPL-3.0+
|
|
Group: Development/Tools/Other
|
|
Url: http://itstool.org
|
|
Source: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
|
|
# PATCH-FIX-UPSTREAM itstool-2.0.4-no-freedoc.patch boo#1064286 gh#itstool/itstool#17 jmatejek@suse.com -- Do not double free
|
|
Patch0: itstool-2.0.4-no-freedoc.patch
|
|
BuildRequires: python3-base
|
|
BuildRequires: python3-libxml2-python
|
|
Requires: python3-libxml2-python
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
ITS Tool extracts messages from XML files and outputs PO template files, then
|
|
merges translations from MO files to create translated XML files. It determines
|
|
what to translate and how to chunk it into messages using the W3C
|
|
Internationalization Tag Set (ITS).
|
|
|
|
%prep
|
|
%setup -q
|
|
# remove itstool - we patch itstool.in and want to ensure we get the right version
|
|
rm itstool
|
|
%patch0 -p1
|
|
|
|
%build
|
|
export PYTHON=%{_bindir}/python3
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog COPYING COPYING.GPL3 NEWS
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}/
|
|
%{_mandir}/man1/itstool.1%{?ext_man}
|
|
|
|
%changelog
|