!13 [sync] PR-10: Fix build error in openEuler-22.03-LTS

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-08-22 10:47:28 +00:00 committed by Gitee
commit 4d5e48f2ed
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: python-uWSGI
Version: 2.0.19.1
Release: 3
Release: 4
Summary: The uWSGI server
License: GPL2
URL: https://uwsgi-docs.readthedocs.io/en/latest/
@ -16,6 +16,7 @@ Provides: python-uWSGI
BuildRequires: openssl-devel
BuildRequires: python3-devel gcc
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-uWSGI
@ -33,7 +34,7 @@ Help doc for the uWSGI server
%py3_build
%install
%py3_install
pip3 install --no-deps --root %{buildroot} .
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
@ -62,11 +63,15 @@ mv %{buildroot}/doclist.lst .
%files -n python3-uWSGI -f filelist.lst
%dir %{python3_sitelib}/*
%exclude %{python3_sitelib}/__pycache__/
%files help -f doclist.lst
%{_pkgdocdir}
%changelog
* Sat Mar 19 2022 baizhonggui <baizhonggui@huawei.com> - 2.0.19.1-4
- The setup.py install is deprecated, use pip install instead to fix build error
* Tue Aug 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.0.19.1-3
- DESC: uwsgi add BuildRequires openssl-devel to support --https