2011-05-26 22:42:51 +02:00
|
|
|
#
|
2011-08-03 10:44:14 +02:00
|
|
|
# spec file for package itstool
|
2011-05-26 22:42:51 +02:00
|
|
|
#
|
2021-10-19 11:00:09 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-05-26 22:42:51 +02: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.
|
|
|
|
|
2018-12-21 09:46:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-26 22:42:51 +02:00
|
|
|
#
|
|
|
|
|
2012-03-11 18:38:13 +01:00
|
|
|
|
2011-05-26 22:42:51 +02:00
|
|
|
Name: itstool
|
2021-10-19 11:00:09 +02:00
|
|
|
Version: 2.0.7
|
2012-02-06 10:03:38 +01:00
|
|
|
Release: 0
|
2011-05-26 22:50:28 +02:00
|
|
|
Summary: Tool to translate XML documents using PO files
|
2018-12-21 09:46:55 +01:00
|
|
|
License: GPL-3.0-or-later
|
2011-05-26 22:42:51 +02:00
|
|
|
Group: Development/Tools/Other
|
2018-12-21 09:46:55 +01:00
|
|
|
URL: http://itstool.org
|
2011-05-26 22:42:51 +02:00
|
|
|
Source: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
|
2018-12-21 09:46:55 +01:00
|
|
|
BuildRequires: python3-base
|
2021-10-19 11:00:09 +02:00
|
|
|
BuildArch: noarch
|
2019-11-18 11:49:17 +01:00
|
|
|
%if 0%{?sle_version}
|
|
|
|
BuildRequires: python3-libxml2-python
|
|
|
|
Requires: python3-libxml2-python
|
|
|
|
%else
|
2019-09-24 10:56:15 +02:00
|
|
|
BuildRequires: python3-libxml2
|
|
|
|
Requires: python3-libxml2
|
2019-11-18 11:49:17 +01:00
|
|
|
%endif
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%description
|
2011-05-26 22:50:28 +02:00
|
|
|
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).
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2018-12-21 09:46:55 +01:00
|
|
|
sed -i -e "/^echo.*import/s/python/python3/" configure
|
|
|
|
export PYTHON=%{_bindir}/python3
|
2011-05-26 22:42:51 +02:00
|
|
|
%configure
|
2021-10-19 11:00:09 +02:00
|
|
|
%make_build
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%install
|
2018-12-21 09:46:55 +01:00
|
|
|
%make_install PYTHON=%{_bindir}/python3
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%files
|
2018-12-21 09:46:55 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog NEWS
|
2011-05-26 22:42:51 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
2011-07-01 10:36:52 +02:00
|
|
|
%{_mandir}/man1/itstool.1%{?ext_man}
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%changelog
|