python-kubernetes/python-kubernetes.spec

89 lines
2.5 KiB
RPMSpec
Raw Normal View History

2022-02-10 15:23:23 +08:00
%global _empty_manifest_terminate_build 0
Name: python-kubernetes
2022-12-02 14:28:40 +08:00
Version: 25.3.0
2022-02-10 15:23:23 +08:00
Release: 1
Summary: Kubernetes python client
License: Apache-2.0
URL: https://github.com/kubernetes-client/python
2022-12-02 14:28:40 +08:00
Source0: https://files.pythonhosted.org/packages/e5/c7/cc2b5e62216f5e18c8e27b1ae672684ce147e34b2738a4b251023dc4e9bb/kubernetes-25.3.0.tar.gz
Patch0: 0001-fix-illegal-char-for-0.42.patch
2022-02-10 15:23:23 +08:00
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
2022-12-02 14:28:40 +08:00
Provides: python-kubernetes = %{version}-%{release}
2022-02-10 15:23:23 +08:00
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
2022-12-02 14:28:40 +08:00
%setup -n kubernetes-%{version}
%patch0 -p1
2022-02-10 15:23:23 +08:00
%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
2022-12-02 14:28:40 +08:00
* Fri Dec 02 2022 liqiuyu <liqiuyu@kylinos.cn> - 25.3.0-1
- Update package to version 25.3.0
2022-02-10 15:23:23 +08:00
* Thu Feb 10 2022 Python_Bot <Python_Bot@openeuler.org> - 21.7.0-1
- Package Spec generated