Blame SPECS/python-network-runner.spec

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