641079
# Created by pyp2rpm-3.2.2
641079
%global pypi_name ansible-runner
641079
641079
%if 0%{?fedora} || 0%{?rhel} > 7
641079
%bcond_with    python2
641079
%bcond_without python3
641079
%else
641079
%bcond_without python2
641079
%bcond_with    python3
641079
%endif
641079
641079
Name:           python-%{pypi_name}
641079
Version:        2.0.0a1
641079
Release:        1%{?dist}
641079
Summary:        A tool and python library to interface with Ansible
641079
641079
License:        ASL 2.0
641079
URL:            https://github.com/ansible/ansible-runner
641079
# ansible-runner doesn't include the LICENSE file in the tarball on pythonhosted yet.
641079
# pulling from github intil the pythonhosted tarball is updated
641079
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
641079
# Source0:        https://github.com/ansible/%%{pypi_name}/archive/%%{version}/%%{pypi_name}-%%{version}.tar.gz
641079
BuildArch:      noarch
641079
641079
BuildRequires:  ansible >= 2.6
641079
%if %{with python2}
641079
BuildRequires:  python-daemon
641079
%if 0%{?el7}
641079
BuildRequires:  python-devel
641079
BuildRequires:  python-mock
641079
BuildRequires:  python-psutil
641079
BuildRequires:  pexpect >= 4.6
641079
BuildRequires:  python2-pytest
641079
BuildRequires:  PyYAML
641079
BuildRequires:  python-setuptools
641079
BuildRequires:  python-six
641079
%else
641079
BuildRequires:  python2-devel
641079
BuildRequires:  %{py2_dist mock}
641079
BuildRequires:  %{py2_dist psutil}
641079
BuildRequires:  %{py2_dist pexpect} >= 4.6
641079
BuildRequires:  %{py2_dist pytest}
641079
BuildRequires:  %{py2_dist PyYAML}
641079
BuildRequires:  %{py2_dist setuptools}
641079
BuildRequires:  %{py2_dist six}
641079
%endif
641079
%endif
641079
641079
%if %{with python3}
641079
BuildRequires:  python3-devel
641079
BuildRequires:  python3dist(mock)
641079
BuildRequires:  python3dist(psutil)
641079
BuildRequires:  python3dist(pexpect) >= 4.6
641079
BuildRequires:  python3dist(pytest)
641079
BuildRequires:  python3dist(pyyaml)
641079
BuildRequires:  python3dist(setuptools)
641079
BuildRequires:  python3dist(six)
641079
BuildRequires:  python3dist(python-daemon)
641079
%endif
641079
641079
%description
641079
Ansible Runner is a tool and python library that helps when interfacing with
641079
Ansible from other systems whether through a container image interface, as a
641079
standalone tool, or imported into a python project.
641079
641079
%if %{with python2}
641079
%package -n     python2-%{pypi_name}
641079
Summary:        %{summary}
641079
%{?python_provide:%python_provide python2-%{pypi_name}}
641079
641079
641079
Requires:       ansible >= 2.6
641079
Requires:       python-daemon
641079
%if 0%{?el7}
641079
Requires:       pexpect >= 4.6
641079
Requires:       python-psutil
641079
Requires:       PyYAML
641079
Requires:       python-setuptools
641079
Requires:       python-six
641079
%else
641079
Requires:       %{py2_dist pexpect} >= 4.6
641079
Requires:       %{py2_dist psutil}
641079
Requires:       %{py2_dist PyYAML}
641079
Requires:       %{py2_dist setuptools}
641079
Requires:       %{py2_dist six}
641079
%endif
641079
641079
%description -n python2-%{pypi_name}
641079
Ansible Runner is a tool and python library that helps when interfacing with
641079
Ansible from other systems whether through a container image interface, as a
641079
standalone tool, or imported into a python project.
641079
%endif
641079
641079
%if %{with python3}
641079
%package -n     python3-%{pypi_name}
641079
Summary:        %{summary}
641079
%{?python_provide:%python_provide python3-%{pypi_name}}
641079
641079
Requires:       ansible >= 2.6
641079
Requires:       python3-daemon
641079
Requires:       python3dist(pexpect) >= 4.6
641079
Requires:       python3dist(psutil)
641079
Requires:       python3dist(pyyaml)
641079
Requires:       python3dist(setuptools)
641079
Requires:       python3dist(six)
641079
641079
%description -n python3-%{pypi_name}
641079
Ansible Runner is a tool and python library that helps when interfacing with
641079
Ansible from other systems whether through a container image interface, as a
641079
standalone tool, or imported into a python project.
641079
%endif
641079
641079
%prep
641079
%autosetup -n %{pypi_name}-%{version}
641079
# Remove bundled egg-info
641079
rm -rf %{pypi_name}.egg-info
641079
641079
%build
641079
%if %{with python2}
641079
%py2_build
641079
%endif
641079
%if %{with python3}
641079
%py3_build
641079
%endif
641079
641079
%install
641079
# Must do the subpackages' install first because the scripts in /usr/bin are
641079
# overwritten with every setup.py install.
641079
641079
%if %{with python2}
641079
%py2_install
641079
cp %{buildroot}/%{_bindir}/ansible-runner %{buildroot}/%{_bindir}/ansible-runner-%{python2_version}
641079
ln -s %{_bindir}/ansible-runner-%{python2_version} %{buildroot}/%{_bindir}/ansible-runner-2
641079
%endif
641079
641079
%if %{with python3}
641079
%py3_install
641079
cp %{buildroot}/%{_bindir}/ansible-runner %{buildroot}/%{_bindir}/ansible-runner-%{python3_version}
641079
ln -s %{_bindir}/ansible-runner-%{python3_version} %{buildroot}/%{_bindir}/ansible-runner-3
641079
%endif
641079
641079
%check
641079
%if %{with python2}
641079
%{__python2} setup.py test ||:
641079
%endif
641079
%if %{with python3}
641079
py.test-3 -v test
641079
%endif
641079
641079
%if %{with python2}
641079
%files -n python2-%{pypi_name}
641079
%license LICENSE.md
641079
%doc README.md
641079
%{_bindir}/ansible-runner-2
641079
%{_bindir}/ansible-runner-%{python2_version}
641079
%{python2_sitelib}/ansible_runner
641079
%{python2_sitelib}/test
641079
%{python2_sitelib}/ansible_runner-%{version}-py?.?.egg-info
641079
%endif
641079
641079
%if %{with python3}
641079
%files -n python3-%{pypi_name}
641079
%license LICENSE.md
641079
%doc README.md
641079
%{_bindir}/ansible-runner-3
641079
%{_bindir}/ansible-runner-%{python3_version}
641079
%{python3_sitelib}/ansible_runner
641079
%{python3_sitelib}/test
641079
%{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info
641079
%endif
641079
%{_bindir}/ansible-runner
641079
641079
%changelog
641079
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 2.0.0a1
641079
- updating to version 2.0.0a1
641079
641079
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-4
641079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
641079
641079
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-3
641079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
641079
641079
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.4.6-2
641079
- Rebuilt for Python 3.9
641079
641079
* Thu May 07 2020 Dan Radez <dradez@redhat.com> - 1.4.6-1
641079
- updating to version 1.4.6
641079
641079
* Tue Mar 24 2020 Dan Radez <dradez@redhat.com> - 1.4.5-1
641079
- updating to version 1.4.5
641079
641079
* Wed Dec 04 2019 Yatin Karel <ykarel@redhat.com> - 1.4.4-2
641079
- Drop dependency on tox
641079
641079
* Tue Nov 05 2019 Dan Radez <dradez@redhat.com> - 1.4.4-1
641079
- updating to version 1.4.4
641079
641079
* Wed Oct 09 2019 Dan Radez <dradez@redhat.com> - 1.4.2-1
641079
- Updating to version 1.4.2
641079
641079
* Tue Oct 08 2019 Dan Radez <dradez@redhat.com> - 1.4.0-1
641079
- Updating to version 1.4.0
641079
641079
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.4-4
641079
- Rebuilt for Python 3.8.0rc1 (#1748018)
641079
641079
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.3.4-3
641079
- Rebuilt for Python 3.8
641079
641079
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-2
641079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
641079
641079
* Tue Apr 30 2019 Dan Radez <dradez@redhat.com> - 1.3.4-1
641079
- Updating to version 1.3.4
641079
641079
* Mon Apr 22 2019 Dan Radez <dradez@redhat.com> - 1.3.3-1
641079
- Updating to version 1.3.3
641079
641079
* Wed Apr 10 2019 Dan Radez <dradez@redhat.com> - 1.3.2-1
641079
- Updating to version 1.3.2
641079
641079
* Wed Mar 20 2019 Dan Radez <dradez@redhat.com> - 1.3.0-1
641079
- Updating to version 1.3
641079
641079
* Wed Feb 13 2019 Yatin Karel <ykarel@redhat.com> - 1.2.0-2
641079
- Enable python2 build for CentOS <= 7
641079
641079
* Mon Feb 04 2019 Dan Radez <dradez@redhat.com> - 1.2.0-1
641079
- Updating to version 1.2
641079
- removing python 2 from the spec for F30
641079
641079
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
641079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
641079
641079
* Tue Oct 23 2018 Dan Radez <dradez@redhat.com> - 1.1.2-1
641079
- Updating to version 1.1.2
641079
641079
* Wed Sep 12 2018 Dan Radez <dradez@redhat.com> - 1.1.0-1
641079
- Updating to version 1.1.0
641079
641079
* Wed Jul 25 2018 Dan Radez <dradez@redhat.com> - 1.0.5-1
641079
- Updating to version 1.0.5
641079
641079
* Wed Jul 25 2018 Dan Radez <dradez@redhat.com> - 1.0.4-4
641079
- 1.0.4 requires pexepct 4.6
641079
641079
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-3
641079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
641079
641079
* Tue Jul 03 2018 Iryna Shcherbina - 1.0.4-2
641079
- Fix Python 3 dependency from python2-ansible-runner
641079
641079
* Mon Jul 02 2018 Dan Radez <dradez@redhat.com> - 1.0.4-1
641079
- Updating to version 1.0.4
641079
641079
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 1.0.3-4
641079
- Rebuilt for Python 3.7
641079
641079
* Fri Jun 01 2018 Dan Radez <dradez@redhat.com> - 1.0.3-3
641079
- skip py3 on non-fedora
641079
641079
* Thu May 31 2018 Dan Radez <dradez@redhat.com> - 1.0.3-1
641079
- Updating to version 1.0.3
641079
641079
* Tue May 29 2018 Dan Radez <dradez@redhat.com> - 1.0.2-1
641079
- Updating to version 1.0.2
641079
- Package Requires versions updated
641079
- added py3 support
641079
641079
* Fri May 11 2018 Dan Radez <dradez@redhat.com> - 1.0.1-2
641079
- Adding conditionals so the same spec can be built on fedora and el7
641079
641079
* Fri May 04 2018 Dan Radez <dradez@redhat.com> - 1.0.1-1
641079
- Initial package. Python 2 support only initially.