itstool/itstool.spec
2023-10-27 14:35:28 +08:00

55 lines
1.4 KiB
RPMSpec

Name: itstool
Version: 2.0.4
Release: 7
Summary: ITS-based XML translation tool
License: GPLv3+
URL: http://itstool.org/
Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
Patch0: fix-segfaults.patch
Patch1: fix-Cannot-apply-preserveSpace-to-an-attribute.patch
Patch2: Auto-update-to-INSTALL-file.patch
BuildArch: noarch
BuildRequires: python3-libxml2 python3-devel git
Requires: python3-libxml2
%description
ITS Tool allows you to translate your 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
%package help
Summary: Help manual for %{name}
%description help
The %{name}-help package conatins man manual etc
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%build
export PYTHON=%{__python3}
%configure
%make_build
%install
%make_install
%files
%license COPYING COPYING.GPL3
%{_bindir}/itstool
%{_datadir}/itstool
%files help
%doc NEWS
%doc %{_mandir}/man1/itstool.1.gz
%changelog
* Thu Oct 26 2023 fandehui fandehui@xfusion.com - 2.0.4-7
- Auto update to INSTALL file
* Fri Oct 20 2023 fandehui fandehui@xfusion.com - 2.0.4.6
- fix Can't apply preserveSpace to an attribute
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.4-5
- Package init