Blame SPECS/python-network-runner.spec

a9ef2a
# Created by pyp2rpm-3.2.2
a9ef2a
%global pypi_name network-runner
a9ef2a
%global ansible_role network-runner
a9ef2a
a9ef2a
Name:           python-%{pypi_name}
a9ef2a
Version:        0.3.4
9a4e17
Release:        2%{?dist}
a9ef2a
Summary:        Abstraction and Python API for Ansible Networking
a9ef2a
a9ef2a
License:        ASL 2.0
a9ef2a
URL:            https://github.com/ansible-network/%{pypi_name}
a9ef2a
Source0:        https://github.com/ansible-network/%{pypi_name}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
a9ef2a
BuildArch:      noarch
a9ef2a
ecad6a
BuildRequires:  (ansible >= 2.6 or ansible-core >= 2.11)
a9ef2a
BuildRequires:  python3-devel
a9ef2a
BuildRequires:  python3dist(ansible-runner)
a9ef2a
BuildRequires:  python3dist(mock)
a9ef2a
BuildRequires:  python3dist(pytest)
a9ef2a
a9ef2a
%description
a9ef2a
Network Runner is a set of ansible roles and python library that
a9ef2a
abstracts Ansible Networking operations. It interfaces
a9ef2a
programatically through ansible-runner.
a9ef2a
a9ef2a
%package -n     python3-%{pypi_name}
a9ef2a
Summary:        %{summary}
a9ef2a
%{?python_provide:%python_provide python3-%{pypi_name}}
a9ef2a
a9ef2a
Requires:       python3dist(ansible-runner)
a9ef2a
# Python code cannot work without the ansible roles
a9ef2a
Requires:  ansible-role-%{ansible_role} = %{version}-%{release}
a9ef2a
a9ef2a
%description -n python3-%{pypi_name}
a9ef2a
Network Runner is a set of ansible roles and python library that
a9ef2a
abstracts Ansible Networking operations. It interfaces
a9ef2a
programatically through ansible-runner.
a9ef2a
a9ef2a
%package -n ansible-role-%{ansible_role}
a9ef2a
Summary:   Role for Python Network Runner Library
a9ef2a
9a4e17
Requires:  (ansible >= 2.6 or ansible-core >= 2.11)
a9ef2a
# No cross sub-package dependency.
a9ef2a
# Can be installed and used without python package.
a9ef2a
a9ef2a
%description -n ansible-role-%{ansible_role}
a9ef2a
Role for Python Network Runner Library
a9ef2a
a9ef2a
%prep
a9ef2a
%autosetup -n %{pypi_name}-%{version}
a9ef2a
# Remove bundled egg-info
a9ef2a
rm -rf %{pypi_name}.egg-info
a9ef2a
a9ef2a
%build
a9ef2a
%py3_build
a9ef2a
a9ef2a
%install
a9ef2a
%py3_install
a9ef2a
a9ef2a
%check
a9ef2a
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
a9ef2a
a9ef2a
%files -n python3-%{pypi_name}
a9ef2a
%license LICENSE
a9ef2a
%doc README.rst
a9ef2a
%{python3_sitelib}/network_runner
a9ef2a
%{python3_sitelib}/network_runner-%{version}-py%{python3_version}.egg-info
a9ef2a
a9ef2a
%files -n ansible-role-%{ansible_role}
a9ef2a
%license LICENSE
a9ef2a
%doc %{_sysconfdir}/ansible/roles/%{ansible_role}/README.md
a9ef2a
%{_sysconfdir}/ansible/roles/%{ansible_role}/
a9ef2a
a9ef2a
%changelog
9a4e17
* Thu Sep 23 2021 Alfredo Moralejo <amoralej@redhat.com> - 0.3.4-2
9a4e17
- Require ansible or ansible-core in ansible-role-network-runner
9a4e17
a9ef2a
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 0.3.4-1
a9ef2a
- update to 0.3.4
a9ef2a
a9ef2a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
a9ef2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a9ef2a
a9ef2a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
a9ef2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a9ef2a
a9ef2a
* Fri Jun 26 2020 Dan Radez <dradez@redhat.com> - 0.2.2-1
a9ef2a
- update to 0.2.2
a9ef2a
a9ef2a
* Tue May 26 2020 Yatin Karel <ykarel@redhat.com> - 0.2.1-3
a9ef2a
- Fix 0.2.1 sources and cleanup old sources
a9ef2a
a9ef2a
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.2.1-2
a9ef2a
- Rebuilt for Python 3.9
a9ef2a
a9ef2a
* Tue Mar 24 2020 Dan Radez <dradez@redhat.com> - 0.2.1-1
a9ef2a
- Updated to 0.2.1
a9ef2a
a9ef2a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-4
a9ef2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a9ef2a
a9ef2a
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.1.7-3
a9ef2a
- Rebuilt for Python 3.8.0rc1 (#1748018)
a9ef2a
a9ef2a
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.1.7-2
a9ef2a
- Rebuilt for Python 3.8
a9ef2a
a9ef2a
* Mon Aug 19 2019 Dan Radez <dradez@redhat.com> - 0.1.7-1
a9ef2a
- Updated to 0.1.7
a9ef2a
a9ef2a
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.1.6-3
a9ef2a
- Rebuilt for Python 3.8
a9ef2a
a9ef2a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-2
a9ef2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a9ef2a
a9ef2a
* Tue May 07 2019 Dan Radez <dradez@redhat.com> - 0.1.6-1
a9ef2a
- Updated to 0.1.6
a9ef2a
a9ef2a
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 0.1.5-1
a9ef2a
- Updated to 0.1.5
a9ef2a
- added %check
a9ef2a
a9ef2a
* Wed Mar 20 2019 Dan Radez <dradez@redhat.com> - 0.1.1-1
a9ef2a
- Initial package.