python-kubernetes/python-kubernetes.spec

93 lines
2.3 KiB
RPMSpec
Raw Normal View History

2022-02-10 15:23:23 +08:00
%global _empty_manifest_terminate_build 0
Name: python-kubernetes
Version: 21.7.0
Release: 1
Summary: Kubernetes python client
License: Apache-2.0
URL: https://github.com/kubernetes-client/python
Source0: https://files.pythonhosted.org/packages/9b/e4/de04b848035d92acdd84d99278f021975d2beb81e393fa9cbffbffca42ad/kubernetes-21.7.0.tar.gz
Patch1: 0001-fix-illegal-char-for-0.42.patch
BuildArch: noarch
Requires: python3-certifi
Requires: python3-six
Requires: python3-dateutil
Requires: python3-setuptools
Requires: python3-pyyaml
Requires: python3-google-auth
Requires: python3-websocket-client
Requires: python3-requests
Requires: python3-requests-oauthlib
Requires: python3-urllib3
Requires: python3-ipaddress
Requires: python3-adal
%description
Python client for kubernetes http://kubernetes.io/
%package -n python3-kubernetes
Summary: Kubernetes python client
Provides: python-kubernetes
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-kubernetes
Python client for kubernetes http://kubernetes.io/
%package help
Summary: Development documents and examples for kubernetes
Provides: python3-kubernetes-doc
%description help
Python client for kubernetes http://kubernetes.io/
%prep
%autosetup -n kubernetes-21.7.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-kubernetes -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Feb 10 2022 Python_Bot <Python_Bot@openeuler.org> - 21.7.0-1
- Package Spec generated