|
|
5ebd242 |
# Created by pyp2rpm-3.2.2
|
|
|
5ebd242 |
%global pypi_name network-runner
|
|
|
5ebd242 |
%global ansible_role network-runner
|
|
|
5ebd242 |
|
|
|
5ebd242 |
Name: python-%{pypi_name}
|
|
|
e30846a |
Version: 0.1.7
|
|
|
e4fb6ee |
Release: 2%{?dist}
|
|
|
5ebd242 |
Summary: Abstraction and Python API for Ansible Networking
|
|
|
5ebd242 |
|
|
|
5ebd242 |
License: ASL 2.0
|
|
|
5ebd242 |
URL: https://github.com/ansible-network/%{pypi_name}
|
|
|
5ebd242 |
Source0: https://github.com/ansible-network/%{pypi_name}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
5ebd242 |
BuildArch: noarch
|
|
|
5ebd242 |
|
|
|
5ebd242 |
BuildRequires: ansible >= 2.6
|
|
|
5ebd242 |
BuildRequires: python3-devel
|
|
|
5ebd242 |
BuildRequires: python3dist(ansible-runner)
|
|
|
03701e3 |
BuildRequires: python3dist(mock)
|
|
|
03701e3 |
BuildRequires: python3dist(pytest)
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%description
|
|
|
5ebd242 |
Network Runner is a set of ansible roles and python library that
|
|
|
5ebd242 |
abstracts Ansible Networking operations. It interfaces
|
|
|
5ebd242 |
programatically through ansible-runner.
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%package -n python3-%{pypi_name}
|
|
|
5ebd242 |
Summary: %{summary}
|
|
|
5ebd242 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
5ebd242 |
|
|
|
5ebd242 |
Requires: python3dist(ansible-runner)
|
|
|
5ebd242 |
# Python code cannot work without the ansible roles
|
|
|
5ebd242 |
Requires: ansible-role-%{ansible_role} = %{version}-%{release}
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%description -n python3-%{pypi_name}
|
|
|
5ebd242 |
Network Runner is a set of ansible roles and python library that
|
|
|
5ebd242 |
abstracts Ansible Networking operations. It interfaces
|
|
|
5ebd242 |
programatically through ansible-runner.
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%package -n ansible-role-%{ansible_role}
|
|
|
5ebd242 |
Summary: Role for Python Network Runner Library
|
|
|
5ebd242 |
|
|
|
5ebd242 |
Requires: ansible >= 2.6
|
|
|
5ebd242 |
# No cross sub-package dependency.
|
|
|
5ebd242 |
# Can be installed and used without python package.
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%description -n ansible-role-%{ansible_role}
|
|
|
5ebd242 |
Role for Python Network Runner Library
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%prep
|
|
|
5ebd242 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
5ebd242 |
# Remove bundled egg-info
|
|
|
5ebd242 |
rm -rf %{pypi_name}.egg-info
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%build
|
|
|
5ebd242 |
%py3_build
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%install
|
|
|
5ebd242 |
%py3_install
|
|
|
5ebd242 |
|
|
|
03701e3 |
%check
|
|
|
03701e3 |
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%files -n python3-%{pypi_name}
|
|
|
5ebd242 |
%license LICENSE
|
|
|
5ebd242 |
%doc README.rst
|
|
|
5ebd242 |
%{python3_sitelib}/network_runner
|
|
|
5ebd242 |
%{python3_sitelib}/network_runner-%{version}-py?.?.egg-info
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%files -n ansible-role-%{ansible_role}
|
|
|
5ebd242 |
%license LICENSE
|
|
|
5ebd242 |
%doc %{_sysconfdir}/ansible/roles/%{ansible_role}/README.md
|
|
|
5ebd242 |
%{_sysconfdir}/ansible/roles/%{ansible_role}/
|
|
|
5ebd242 |
|
|
|
5ebd242 |
%changelog
|
|
|
e4fb6ee |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.7-2
|
|
|
e4fb6ee |
- Rebuilt for Python 3.8
|
|
|
e4fb6ee |
|
|
|
e30846a |
* Mon Aug 19 2019 Dan Radez <dradez@redhat.com> - 0.1.7-1
|
|
|
e30846a |
- Updated to 0.1.7
|
|
|
e30846a |
|
|
|
2d46a2c |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-3
|
|
|
2d46a2c |
- Rebuilt for Python 3.8
|
|
|
2d46a2c |
|
|
|
ddc28fb |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-2
|
|
|
ddc28fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ddc28fb |
|
|
|
537e940 |
* Tue May 07 2019 Dan Radez <dradez@redhat.com> - 0.1.6-1
|
|
|
537e940 |
- Updated to 0.1.6
|
|
|
537e940 |
|
|
|
537e940 |
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 0.1.5-1
|
|
|
03701e3 |
- Updated to 0.1.5
|
|
|
03701e3 |
- added %check
|
|
|
537e940 |
|
|
|
5ebd242 |
* Wed Mar 20 2019 Dan Radez <dradez@redhat.com> - 0.1.1-1
|
|
|
5ebd242 |
- Initial package.
|