f2afb6
Name:           itstool
f2afb6
Version:        2.0.6
f2afb6
Release:        7%{?dist}
f2afb6
Summary:        ITS-based XML translation tool
f2afb6
f2afb6
License:        GPLv3+
f2afb6
URL:            http://itstool.org/
f2afb6
Source0:        http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
f2afb6
# See:  https://github.com/itstool/itstool/issues/25
f2afb6
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
f2afb6
f2afb6
BuildArch:      noarch
f2afb6
f2afb6
BuildRequires:  python3-libxml2
f2afb6
BuildRequires:  python3-devel
f2afb6
BuildRequires: make
f2afb6
Requires:       python3-libxml2
f2afb6
f2afb6
%description
f2afb6
ITS Tool allows you to translate XML documents with PO files, using rules from
f2afb6
the W3C Internationalization Tag Set (ITS) to determine what to translate and
f2afb6
how to separate it into PO file messages.
f2afb6
f2afb6
%prep
f2afb6
%setup -q
f2afb6
%patch0 -p 1 -b .encoding
f2afb6
f2afb6
%build
f2afb6
export PYTHON=%{__python3}
f2afb6
%configure
f2afb6
%make_build
f2afb6
f2afb6
%install
f2afb6
%make_install
f2afb6
f2afb6
%files
f2afb6
%license COPYING COPYING.GPL3
f2afb6
%doc NEWS
f2afb6
%{_bindir}/itstool
f2afb6
%{_datadir}/itstool
f2afb6
%{_mandir}/man1/itstool.1*
f2afb6
f2afb6
%changelog
f2afb6
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.6-7
f2afb6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f2afb6
  Related: rhbz#1991688
f2afb6
f2afb6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.6-6
f2afb6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f2afb6
f2afb6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-5
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f2afb6
f2afb6
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-4
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f2afb6
f2afb6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f2afb6
f2afb6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-2
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f2afb6
f2afb6
* Sun Apr 07 2019 Kalev Lember <klember@redhat.com> - 2.0.6-1
f2afb6
- Update to 2.0.6
f2afb6
f2afb6
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-3
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f2afb6
f2afb6
* Sun Jan 06 2019 Björn Esser <besser82@fedoraproject.org> - 2.0.5-2
f2afb6
- Add a patch from Debian to fix wrong encoding of output message
f2afb6
f2afb6
* Tue Dec 04 2018 Kalev Lember <klember@redhat.com> - 2.0.5-1
f2afb6
- Update to 2.0.5
f2afb6
- Use make_build and make_install macros
f2afb6
f2afb6
* Mon Jul 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.0.4-4
f2afb6
- Fix libxml2 related segfaults
f2afb6
f2afb6
* Mon Jul 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.4-3
f2afb6
- Switch to Python 3
f2afb6
f2afb6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f2afb6
f2afb6
* Tue Jul 10 2018 Kalev Lember <klember@redhat.com> - 2.0.4-1
f2afb6
- Update to 2.0.4
f2afb6
- Use license macro for COPYING
f2afb6
f2afb6
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.2-9
f2afb6
- Update Python 2 dependency declarations to new packaging standards
f2afb6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f2afb6
f2afb6
* Mon Feb 05 2018 Petr Viktorin <pviktori@redhat.com> - 2.0.2-8
f2afb6
- Be more explicit about Python build dependencies
f2afb6
  (Require python2-devel, tell autotools that PYTHON is python2)
f2afb6
f2afb6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f2afb6
f2afb6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f2afb6
f2afb6
* Wed Jan 18 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.0.2-5
f2afb6
- Add BuildRequires: python to fix FTBFS (BZ#1414545).
f2afb6
f2afb6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f2afb6
f2afb6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2afb6
f2afb6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f2afb6
f2afb6
* Sat May 17 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.2-1
f2afb6
- Update to 2.0.2
f2afb6
f2afb6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2afb6
f2afb6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f2afb6
f2afb6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f2afb6
f2afb6
* Mon Jul 02 2012 Kalev Lember <kalevlember@gmail.com> 1.2.0-1
f2afb6
- Update to 1.2.0
f2afb6
f2afb6
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> 1.1.2-1
f2afb6
- Update to itstool 1.1.2
f2afb6
f2afb6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
f2afb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f2afb6
f2afb6
* Mon Sep 19 2011 Shaun McCance <shaunm@gnome.org> 1.1.1-1
f2afb6
- Update to itstool 1.1.1
f2afb6
f2afb6
* Sun Aug 07 2011 Rahul Sundaram <sundaram@fedoraproject.org> 1.1.0-2
f2afb6
- Add requires on libxml2-python since itstool uses it
f2afb6
- Drop redundant defattr
f2afb6
- Add NEWS to doc
f2afb6
f2afb6
* Mon Jun 27 2011 Shaun McCance <shaunm@gnome.org> 1.1.0-1
f2afb6
- Update to itstool 1.1.0
f2afb6
f2afb6
* Sun May 8 2011 Shaun McCance <shaunm@gnome.org> 1.0.1-1
f2afb6
- Initial packaging