summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-17 01:26:02 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-17 01:26:02 +0000
commit91f7cb8c6d53d4c3ae1ee79e6e6706b7320dd292 (patch)
tree7c1c6db11d7f814bf6795b614a9b2db46e743d4c
parent46bdd56919a64d97427c6488994780bcd933dc3d (diff)
automatic import of python-0-core-clientopeneuler20.03
-rw-r--r--python-0-core-client.spec15
1 files changed, 7 insertions, 8 deletions
diff --git a/python-0-core-client.spec b/python-0-core-client.spec
index a224026..3afe4f7 100644
--- a/python-0-core-client.spec
+++ b/python-0-core-client.spec
@@ -8,7 +8,7 @@ URL: https://github.com/zero-os/0-core
Source0: https://mirrors.aliyun.com/pypi/web/packages/cd/1c/52c3a1c88b2a2821ea7d2afc3c7883a8d73880dd4de4199b8d5e7d9773bd/0-core-client-1.1.0a8.tar.gz
BuildArch: noarch
-Requires: python3-redis
+Requires: (python3-redis>=2.10.5)
%description
# Zero-OS Python Client
@@ -52,6 +52,7 @@ Provides: python-0-core-client
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
+BuildRequires: python3-wheel
%description -n python3-0-core-client
# Zero-OS Python Client
## Install
@@ -131,19 +132,17 @@ print(
%autosetup -n 0-core-client-1.1.0a8
%build
-%py3_build
+%pyproject_build
%install
-%py3_install
+%pyproject_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
+touch filelist.lst
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
@@ -162,11 +161,11 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-0-core-client -f filelist.lst
-%dir %{python3_sitelib}/*
+%{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
-* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0a8-1
+* Tue Dec 17 2024 Python_Bot <Python_Bot@openeuler.org> - 1.1.0a8-1
- Package Spec generated