fix rebuilt with python3 [release 2.0.6-3mamba;Sat Nov 28 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 23:59:46 +01:00
parent e2132bd03c
commit 2e00f03b5b

View File

@ -1,6 +1,6 @@
Name: itstool
Version: 2.0.6
Release: 1mamba
Release: 3mamba
Summary: A tool to translate XML documents with PO files
Group: Development/Tools
Vendor: openmamba
@ -12,8 +12,9 @@ Patch0: itstool-2.0.4-x86-segfault.patch
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: python-libxml2
Requires: python27
BuildRequires: python-libxml2-py3
Requires: python-libxml2-py3
Requires: python3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -23,10 +24,12 @@ ITS Tool allows you to translate your XML documents with PO files, using rules f
%setup -q
#%patch0 -p1
sed -i "s|%{_bindir}/python|%{_bindir}/python2.7|" itstool.in
sed -i "s|%{_bindir}/python|%{__python3}|" itstool.in
%build
%configure
%configure \
PYTHON=%{__python3}
%make
%install
@ -46,6 +49,12 @@ sed -i "s|%{_bindir}/python|%{_bindir}/python2.7|" itstool.in
%doc COPYING
%changelog
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-3mamba
- fix rebuilt with python3
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-2mamba
- rebuilt with python3
* Tue Sep 17 2019 Automatic Build System <autodist@mambasoft.it> 2.0.6-1mamba
- automatic version update by autodist