From d81ce1b5c76787845d9f3d821ba8cddd63a17262 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:25:46 +0100 Subject: [PATCH] rebuilt with python3 [release 2.9.13-2mamba;Tue Sep 08 2020] --- ansible.spec | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/ansible.spec b/ansible.spec index a7e83a7..b678cdc 100644 --- a/ansible.spec +++ b/ansible.spec @@ -1,6 +1,6 @@ Name: ansible Version: 2.9.13 -Release: 1mamba +Release: 2mamba Summary: A radically simple IT automation system Group: System/Libraries Vendor: openmamba @@ -10,12 +10,15 @@ URL: https://www.ansible.com/ Source: https://pypi.debian.net/ansible/ansible-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -Requires: python >= %python_version -Requires: PyYAML -Requires: python-paramiko -Requires: python-Jinja2 +Requires: python3 >= %python3_version +Requires: PyYAML-py3 +Requires: python-paramiko-py3 +Requires: python-Jinja2-py3 +Requires: python-netaddr-py3 +Requires: python-markupsafe-py3 +Requires: python-cryptography-py3 Provides: python-ansible Obsoletes: python-ansible BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -31,23 +34,26 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %setup -q %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python3} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ +%{__python3} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ + --install-headers=%{python3_inc} \ + --install-lib=%{python3_sitearch} \ --record=%{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/ansible_test/_data/injector/ansible-inventory +%{python3_sitearch}/ansible_test/_data/injector/ansible-inventory %doc COPYING %changelog +* Tue Sep 08 2020 Silvan Calarco 2.9.13-2mamba +- rebuilt with python3 + * Fri Sep 04 2020 Automatic Build System 2.9.13-1mamba - automatic version update by autodist