Switch to Python 3

https://src.fedoraproject.org/rpms/itstool/pull-request/3
This commit is contained in:
Miro Hrončok 2018-07-16 20:12:36 +02:00 committed by Debarshi Ray
parent 7336ee27a4
commit 3d50023dc6

View File

@ -1,6 +1,6 @@
Name: itstool
Version: 2.0.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: ITS-based XML translation tool
License: GPLv3+
@ -9,10 +9,9 @@ Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: python2-libxml2
BuildRequires: python2
BuildRequires: python2-devel
Requires: python2-libxml2
BuildRequires: python3-libxml2
BuildRequires: python3-devel
Requires: python3-libxml2
%description
ITS Tool allows you to translate XML documents with PO files, using rules from
@ -23,7 +22,7 @@ how to separate it into PO file messages.
%setup -q
%build
export PYTHON=%{__python2}
export PYTHON=%{__python3}
%configure
make %{?_smp_mflags}
@ -38,6 +37,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%doc %{_mandir}/man1/itstool.1.gz
%changelog
* Mon Jul 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.4-3
- Switch to Python 3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild