d56b13
%{?python_enable_dependency_generator}
d56b13
d56b13
%global library kubernetes
rdobuilder a6c408
%global basehash 6b0104ffb9dd2f96d47d075ea3d30f69ea124ce4
d56b13
d56b13
Name:       python-%{library}
d56b13
Epoch:      1
rdobuilder a6c408
Version:    18.20.0
rdobuilder a6c408
Release:    1%{?dist}
d56b13
Summary:    Python client for the kubernetes API.
d56b13
License:    ASL 2.0
d56b13
URL:        https://pypi.python.org/pypi/kubernetes
d56b13
d56b13
Source0:    https://github.com/kubernetes-client/python/archive/v%{version}.tar.gz
d56b13
Source1:    https://github.com/kubernetes-client/python-base/archive/%{basehash}.tar.gz
d56b13
BuildArch:  noarch
d56b13
rdobuilder a6c408
%package -n python3-%{library}
d56b13
Summary:    Kubernetes Python Client
d56b13
BuildRequires:  git
rdobuilder a6c408
BuildRequires:  python3-devel
rdobuilder a6c408
BuildRequires:  python3-rpm-macros
rdobuilder a6c408
BuildRequires:  python3-setuptools
d56b13
%if %{undefined __pythondist_requires}
rdobuilder a6c408
Requires:  python3-certifi
rdobuilder a6c408
Requires:  python3-six
rdobuilder a6c408
Requires:  python3-dateutil
rdobuilder a6c408
Requires:  python3-setuptools
rdobuilder a6c408
Requires:  python3-urllib3
rdobuilder a6c408
Requires:  python3-PyYAML
rdobuilder a6c408
Requires:  python3-google-auth
rdobuilder a6c408
Requires:  python3-websocket-client
d56b13
%endif
d56b13
rdobuilder a6c408
%description -n python3-%{library}
d56b13
Python client for the kubernetes API.
d56b13
rdobuilder a6c408
%package -n python3-%{library}-tests
d56b13
Summary:    Tests python-kubernetes library
d56b13
rdobuilder a6c408
Requires:  python3-nose
rdobuilder a6c408
Requires:  python3-py
rdobuilder a6c408
Requires:  python3-mock
rdobuilder a6c408
Requires:  python3-%{library} = 1:%{version}-%{release}
d56b13
rdobuilder a6c408
%description -n python3-%{library}-tests
d56b13
Tests python-kubernetes library
d56b13
d56b13
%description
d56b13
Python client for the kubernetes API.
d56b13
d56b13
%prep
d56b13
%autosetup -n python-%{version} -S git
d56b13
d56b13
#This is needed until CentOS 8.1. The dep was
d56b13
#updated because of a CVE in urllib3 and the
d56b13
#corresponding package update is in EL 8.1
d56b13
%if 0%{?rhel} == 8
d56b13
sed -i 's/1.24.2/1.23/g' requirements.txt
d56b13
%endif
d56b13
d56b13
pushd kubernetes
d56b13
rm -rf base
d56b13
tar zxvf %{SOURCE1}
d56b13
mv python-base-%{basehash} base
d56b13
popd
d56b13
d56b13
%build
d56b13
%py3_build
d56b13
d56b13
#11.0 adds spinx-markdown-tables as a requirement
d56b13
#It is not packaged in Fedora
d56b13
#%if 0%{?fedora}
d56b13
#sphinx-build doc/source/ html
d56b13
#%{__rm} -rf html/.buildinfo
d56b13
#%endif
d56b13
d56b13
# Currently recommonmark requires an old version of commonmark,
d56b13
# commonmark (<=0.5.4) wich doesn't exist in fedora rawhide so
d56b13
# we disable docs generation until recommonmark is fixed to be
d56b13
# compatible with recent version.
d56b13
# generate html docs
d56b13
# {__python2} setup.py build_sphinx
d56b13
# remove the sphinx-build leftovers
d56b13
#rm -rf html/.{doctrees,buildinfo}
d56b13
d56b13
%install
d56b13
%py3_install
d56b13
cp -pr kubernetes/test %{buildroot}%{python3_sitelib}/%{library}/
d56b13
cp -pr kubernetes/e2e_test %{buildroot}%{python3_sitelib}/%{library}/
d56b13
d56b13
%check
d56b13
rdobuilder a6c408
%files -n python3-%{library}
d56b13
%license LICENSE
d56b13
%doc README.md
d56b13
%{python3_sitelib}/%{library}
d56b13
%{python3_sitelib}/%{library}-*.egg-info
d56b13
%exclude %{python3_sitelib}/%{library}/test
d56b13
%exclude %{python3_sitelib}/%{library}/e2e_test
d56b13
rdobuilder a6c408
%files -n python3-%{library}-tests
d56b13
%license LICENSE
d56b13
%{python3_sitelib}/%{library}/test
d56b13
%{python3_sitelib}/%{library}/e2e_test
d56b13
d56b13
%changelog
rdobuilder a6c408
* Fri Aug 20 2021 Jason Montleon <jmontleo@redhat.com> - 1:18.20.0-1
rdobuilder a6c408
* Update to 18.20.0
rdobuilder a6c408
rdobuilder a6c408
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:11.0.0-9
rdobuilder a6c408
- Second attempt - Rebuilt for
rdobuilder a6c408
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder a6c408
rdobuilder a6c408
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1:11.0.0-8
rdobuilder a6c408
- Rebuilt for Python 3.10
rdobuilder a6c408
d56b13
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:11.0.0-7
d56b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d56b13
d56b13
* Fri Dec 11 2020 Jason Montleon <jmontleo@redhat.com> - 1:11.0.0-6
d56b13
- Fix sub-package requirements to account for the epoch
d56b13
d56b13
* Fri Dec 11 2020 Jason Montleon <jmontleo@redhat.com> - 1:11.0.0-5
d56b13
- Revert upadte until https://github.com/kubernetes-client/python/issues/1333 is fixed
d56b13
d56b13
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.0-4
d56b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d56b13
d56b13
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 11.0.0-3
d56b13
- Rebuilt for Python 3.9
d56b13
d56b13
* Thu Apr 30 2020 Jason Montleon <jmontleo@redhat.com> - 11.0.0-2
d56b13
- Fix EPEL 7 and 8 builds
d56b13
d56b13
* Thu Apr 30 2020 Jason Montleon <jmontleo@redhat.com> - 11.0.0-1
d56b13
- Update to 11.0.0
d56b13
d56b13
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.1-2
d56b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d56b13
- Work around BZ1758141 for BZ1799937
d56b13
d56b13
* Fri Nov 08 2019 Jason Montleon <jmontleo@redhat.com> 10.0.1-1
d56b13
- Update to upstream 10.0.1
d56b13
d56b13
* Fri Oct 18 2019 Jason Montleon <jmontleo@redhat.com> 9.0.1-1
d56b13
- Update to upstream 9.0.1
d56b13
d56b13
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.1-4
d56b13
- Rebuilt for Python 3.8.0rc1 (#1748018)
d56b13
d56b13
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.1-3
d56b13
- Rebuilt for Python 3.8
d56b13
d56b13
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.1-2
d56b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d56b13
d56b13
* Mon Feb 18 2019 Jason Montleon <jmontleo@redhat.com> 8.0.1-1
d56b13
- Update to upstream 8.0.1
d56b13
d56b13
* Sat Feb 2 2019 Jason Montleon <jmontleo@redhat.com> 8.0.0-8
d56b13
- add upstream patch to make python-adal optional
d56b13
- remove python-adal requires for EL7 since it's not available in RHEL base, optional, or extras
d56b13
d56b13
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-7
d56b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d56b13
d56b13
* Thu Jan 17 2019 Jason Montleon <jmontleo@redhat.com> 8.0.0-6
d56b13
- Only apply EL7 requirement patch on EL7 so Fedora dependency generator works correctly
d56b13
d56b13
* Thu Jan 17 2019 Jason Montleon <jmontleo@redhat.com> 8.0.0-5
d56b13
- Keep python 2 enabled for Fedora 29.
d56b13
d56b13
* Tue Jan 15 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 8.0.0-4
d56b13
- Enable python dependency generator
d56b13
d56b13
* Fri Dec 14 2018 Jason Montleon <jmontleo@redhat.com> 8.0.0-3
d56b13
- Default to python 2 for EPEL 7 and python 3 for Fedora
d56b13
- Add docs package for Fedora
d56b13
d56b13
* Mon Nov 26 2018 Jason Montleon <jmontleo@redhat.com> 8.0.0-2
d56b13
- Patch setup.py to work with EL7 python-setuptools
d56b13
d56b13
* Mon Nov 5 2018 Jason Montleon <jmontleo@redhat.com> 8.0.0-1
d56b13
- Update to 8.0.0
d56b13
d56b13
* Wed Oct 3 2018 Jason Montleon <jmontleo@redhat.com> 7.0.0-3
d56b13
- Adding missing python3-adal dependency
d56b13
d56b13
* Wed Oct 3 2018 Jason Montleon <jmontleo@redhat.com> 7.0.0-2
d56b13
- Adding missing python-adal dependency
d56b13
d56b13
* Wed Oct 3 2018 Jason Montleon <jmontleo@redhat.com> 7.0.0-1
d56b13
- Update to 7.0.0
d56b13
d56b13
* Tue Feb 28 2017 Alfredo Moralejo <amoralej@redhat.com> 1.0.0-0.3.0b3
d56b13
- Remove BRs for documentation building as it's not creating html docs.
d56b13
d56b13
* Mon Feb 27 2017 Alfredo Moralejo <amoralej@redhat.com> 1.0.0-0.2.0b3
d56b13
- Fixed files section of python3-kubernetes-tests to contain python3 tests.
d56b13
d56b13
* Mon Feb 27 2017 Alfredo Moralejo <amoralej@redhat.com> 1.0.0-0.1.0b3
d56b13
- Initial spec for release 1.0.0b3