|
|
16cad4f |
%global srcname f5-icontrol-rest
|
|
|
16cad4f |
%global sum F5 BIG-IP iControl REST API client
|
|
|
16cad4f |
|
|
|
a05fbd2 |
%if 0%{?fedora} <= 29 && 0%{?rhel} <= 7
|
|
|
98ac448 |
%bcond_without python2
|
|
|
1c02532 |
%else
|
|
|
1c02532 |
%bcond_with python2
|
|
|
a05fbd2 |
%endif
|
|
|
942d968 |
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
98ac448 |
%bcond_without python3
|
|
|
1c02532 |
%else
|
|
|
1c02532 |
%bcond_with python3
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
Name: python-%{srcname}
|
|
|
df1eab6 |
Version: 1.3.16
|
|
|
df1eab6 |
Release: 1%{?dist}
|
|
|
16cad4f |
Summary: %{sum}
|
|
|
16cad4f |
|
|
|
16cad4f |
License: ASL 2.0
|
|
|
16cad4f |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
df1eab6 |
Source0: https://github.com/F5Networks/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
df1eab6 |
# Use unittest.mock if available
|
|
|
df1eab6 |
Patch0: python-f5-icontrol-rest-mock.patch
|
|
|
16cad4f |
|
|
|
16cad4f |
BuildArch: noarch
|
|
|
54db088 |
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
BuildRequires: python2-devel
|
|
|
16cad4f |
BuildRequires: python2-setuptools
|
|
|
16cad4f |
BuildRequires: python2-requests >= 2.5.0
|
|
|
a4cd688 |
BuildRequires: python2-urllib3
|
|
|
16cad4f |
# doc
|
|
|
16cad4f |
BuildRequires: python2-sphinx
|
|
|
a4cd688 |
BuildRequires: python2-sphinx_rtd_theme
|
|
|
16cad4f |
# tests
|
|
|
54db088 |
BuildRequires: python2-mock
|
|
|
16cad4f |
BuildRequires: python2-pytest
|
|
|
16cad4f |
# Not packaged yet...
|
|
|
16cad4f |
#BuildRequires: python2-pytest-symbols
|
|
|
54db088 |
%{!?el7:BuildRequires: python2-flake8}
|
|
|
54db088 |
%{?el7:BuildRequires: python-flake8}
|
|
|
16cad4f |
BuildRequires: python2-mccabe
|
|
|
16cad4f |
BuildRequires: python2-pyflakes
|
|
|
c11c7ca |
BuildRequires: python2-requests-mock
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-requests >= 2.5.0
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-urllib3
|
|
|
16cad4f |
# doc
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
16cad4f |
# tests
|
|
|
ad2e6ae |
%{!?el7:BuildRequires: python%{python3_pkgversion}-flake8}
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-mccabe
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-pyflakes
|
|
|
98ac448 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
16cad4f |
# Not packaged yet...
|
|
|
98ac448 |
#BuildRequires: python%{python3_pkgversion}-pytest-symbols
|
|
|
ad2e6ae |
%{!?el7:BuildRequires: python%{python3_pkgversion}-requests-mock}
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%description
|
|
|
16cad4f |
Generic python library used by the F5 SDK and other F5 projects to communicate
|
|
|
16cad4f |
with BIG-IP® via the REST API.
|
|
|
16cad4f |
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
%package -n python2-%{srcname}
|
|
|
16cad4f |
Summary: %{sum}
|
|
|
16cad4f |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
1711fd7 |
Requires: python2-requests >= 2.5.0
|
|
|
16cad4f |
|
|
|
16cad4f |
%description -n python2-%{srcname}
|
|
|
16cad4f |
Generic python library used by the F5 SDK and other F5 projects to communicate
|
|
|
16cad4f |
with BIG-IP® via the REST API.
|
|
|
a05fbd2 |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
98ac448 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
16cad4f |
Summary: %{sum}
|
|
|
98ac448 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
98ac448 |
Requires: python%{python3_pkgversion}-requests >= 2.5.0
|
|
|
16cad4f |
|
|
|
98ac448 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
16cad4f |
Generic python library used by the F5 SDK and other F5 projects to communicate
|
|
|
16cad4f |
with BIG-IP® via the REST API.
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%prep
|
|
|
df1eab6 |
%autosetup -p1 -n %{srcname}-python-%{version}
|
|
|
16cad4f |
# Remove functional tests, they need a real BIG-IP
|
|
|
16cad4f |
rm -rf icontrol/test/functional
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%build
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
%py2_build
|
|
|
a05fbd2 |
%endif
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
16cad4f |
%py3_build
|
|
|
df1eab6 |
%{!?el7:sphinx-build docs build/sphinx/html}
|
|
|
16d1fdd |
%{!?el7:rm build/sphinx/html/.buildinfo}
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%install
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
%py2_install
|
|
|
a05fbd2 |
%endif
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
16cad4f |
%py3_install
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%check
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
%{__python2} setup.py test
|
|
|
a05fbd2 |
%endif
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
16cad4f |
%{__python3} setup.py test
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
a05fbd2 |
%if 0%{?with_python2}
|
|
|
16cad4f |
%files -n python2-%{srcname}
|
|
|
16cad4f |
%license LICENSE
|
|
|
16cad4f |
%doc CONTRIBUTING.md README.rst SUPPORT.md
|
|
|
16d1fdd |
%{!?el7:%doc build/sphinx/html/}
|
|
|
16cad4f |
%{python2_sitelib}/*
|
|
|
a05fbd2 |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
%if 0%{?with_python3}
|
|
|
98ac448 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
16cad4f |
%license LICENSE
|
|
|
16cad4f |
%doc CONTRIBUTING.md README.rst SUPPORT.md
|
|
|
16d1fdd |
%{!?el7:%doc build/sphinx/html/}
|
|
|
16cad4f |
%{python3_sitelib}/*
|
|
|
16cad4f |
%endif
|
|
|
16cad4f |
|
|
|
16cad4f |
|
|
|
16cad4f |
%changelog
|
|
|
df1eab6 |
* Sun Feb 18 2024 Orion Poplawski <orion@nwra.com> - 1.3.16-1
|
|
|
df1eab6 |
- Update to 1.3.16
|
|
|
df1eab6 |
|
|
|
654e23c |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-13
|
|
|
654e23c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
654e23c |
|
|
|
07f2f09 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-12
|
|
|
07f2f09 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
07f2f09 |
|
|
|
d93330d |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-11
|
|
|
d93330d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
d93330d |
|
|
|
8217a00 |
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 1.3.15-10
|
|
|
8217a00 |
- Rebuilt for Python 3.12
|
|
|
8217a00 |
|
|
|
4746ecc |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-9
|
|
|
4746ecc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
4746ecc |
|
|
|
46a1dda |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-8
|
|
|
46a1dda |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
46a1dda |
|
|
|
3e82728 |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.3.15-7
|
|
|
3e82728 |
- Rebuilt for Python 3.11
|
|
|
3e82728 |
|
|
|
83a6595 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-6
|
|
|
83a6595 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
83a6595 |
|
|
|
f4e968f |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-5
|
|
|
f4e968f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
f4e968f |
|
|
|
32f0bfa |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.15-4
|
|
|
32f0bfa |
- Rebuilt for Python 3.10
|
|
|
32f0bfa |
|
|
|
b9ea445 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-3
|
|
|
b9ea445 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
b9ea445 |
|
|
|
d3934ef |
* Tue Nov 10 2020 Xavier Bachelot <xavier@bachelot.org> - 1.3.15-2
|
|
|
d3934ef |
- Symplify py2 deps
|
|
|
d3934ef |
- Dont BR: missing py3 modules on EL7
|
|
|
d3934ef |
- Drop EL6 support
|
|
|
d3934ef |
- Dont build doc for EL7
|
|
|
d3934ef |
- Enable py3 for EL7
|
|
|
d3934ef |
|
|
|
595540c |
* Thu Aug 20 2020 Xavier Bachelot <xavier@bachelot.org> - 1.3.15-1
|
|
|
595540c |
- Update to 1.3.15
|
|
|
595540c |
|
|
|
71ea66a |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-8
|
|
|
71ea66a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
71ea66a |
|
|
|
42236fd |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.13-7
|
|
|
42236fd |
- Rebuilt for Python 3.9
|
|
|
42236fd |
|
|
|
72d8e12 |
* Fri Jan 31 2020 Xavier Bachelot <xavier@bachelot.org> - 1.3.13-6
|
|
|
72d8e12 |
- Drop dependency on pep8.
|
|
|
72d8e12 |
|
|
|
9b0990e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-5
|
|
|
9b0990e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
9b0990e |
|
|
|
18904be |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.13-4
|
|
|
18904be |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
18904be |
|
|
|
6b439f2 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.13-3
|
|
|
6b439f2 |
- Rebuilt for Python 3.8
|
|
|
6b439f2 |
|
|
|
41fef19 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-2
|
|
|
41fef19 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
41fef19 |
|
|
|
7951abb |
* Fri Apr 19 2019 Xavier Bachelot <xavier@bachelot.org> - 1.3.13-1
|
|
|
7951abb |
- Update to 1.3.13.
|
|
|
98ac448 |
- Prepare for python3 build in EPEL.
|
|
|
7951abb |
|
|
|
c7b9814 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.11-2
|
|
|
c7b9814 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c7b9814 |
|
|
|
a05fbd2 |
* Wed Oct 03 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.11-1
|
|
|
a05fbd2 |
- Update to 1.3.11.
|
|
|
a05fbd2 |
- Don't build python2 sub-package for Fedora 30+ and EL8 (RHBZ#1635602).
|
|
|
a05fbd2 |
|
|
|
dc1a876 |
* Thu Jul 26 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.10-1
|
|
|
dc1a876 |
- Update to 1.3.10.
|
|
|
dc1a876 |
|
|
|
5192a61 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.9-4
|
|
|
5192a61 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5192a61 |
|
|
|
1711fd7 |
* Fri Jul 06 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.9-3
|
|
|
1711fd7 |
- Add missing Requires:.
|
|
|
1711fd7 |
|
|
|
ce0cd6f |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.9-2
|
|
|
ce0cd6f |
- Rebuilt for Python 3.7
|
|
|
ce0cd6f |
|
|
|
1f1cea0 |
* Fri Jun 29 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.9-1
|
|
|
1f1cea0 |
- Update to 1.3.9.
|
|
|
1f1cea0 |
|
|
|
06270ee |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-5
|
|
|
06270ee |
- Rebuilt for Python 3.7
|
|
|
06270ee |
|
|
|
1203450 |
* Mon May 07 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-4
|
|
|
1203450 |
- Remove unused tox dependency
|
|
|
1203450 |
|
|
|
c11c7ca |
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.6-3
|
|
|
c11c7ca |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
c11c7ca |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
c11c7ca |
|
|
|
16cad4f |
* Wed Feb 21 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.6-2
|
|
|
16cad4f |
- Fix doc.
|
|
|
16cad4f |
- Tidy up BR:s for EL6 and EL7.
|
|
|
16cad4f |
|
|
|
16cad4f |
* Wed Feb 21 2018 Xavier Bachelot <xavier@bachelot.org> - 1.3.6-1
|
|
|
16cad4f |
- Update to 1.3.6.
|
|
|
16cad4f |
|
|
|
16cad4f |
* Mon Dec 18 2017 Xavier Bachelot <xavier@bachelot.org> - 1.3.4-2
|
|
|
16cad4f |
- Use tarball from github rather than pypy.
|
|
|
16cad4f |
- Fix typo in BuildRequires.
|
|
|
16cad4f |
- Add BR: for building docs and running tests.
|
|
|
16cad4f |
|
|
|
16cad4f |
* Wed Dec 13 2017 Xavier Bachelot <xavier@bachelot.org> - 1.3.4-1
|
|
|
16cad4f |
- Initial package.
|