add 10-wsgi-python3.conf to httpd
Signed-off-by: cherry530 <xuping33@huawei.com> (cherry picked from commit 83fb2e02c87c1bdab38918e7e8b509f817ef7089)
This commit is contained in:
parent
7d54534270
commit
65c82dab64
@ -6,7 +6,7 @@
|
||||
%global sphinxbin %{_bindir}/sphinx-build-3
|
||||
Name: mod_wsgi
|
||||
Version: 4.6.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A WSGI interface for Python web applications in Apache
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/GrahamDumpleton/mod_wsgi
|
||||
@ -61,6 +61,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir}
|
||||
%py3_install
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/mod_wsgi-express{,-3}
|
||||
popd
|
||||
cat <<EOT >>%{buildroot}%{_httpd_modconfdir}/10-wsgi-python3.conf
|
||||
<IfModule !wsgi_module>
|
||||
LoadModule wsgi_module modules/mod_wsgi_python3.so
|
||||
</IfModule>
|
||||
EOT
|
||||
|
||||
%files -n python3-%{name}
|
||||
%license LICENSE
|
||||
@ -69,7 +74,11 @@ popd
|
||||
%{python3_sitearch}/mod_wsgi-*.egg-info
|
||||
%{python3_sitearch}/mod_wsgi
|
||||
%{_bindir}/mod_wsgi-express-3
|
||||
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
||||
|
||||
%changelog
|
||||
* Wed Oct 13 2021 xu_ping <xuping33@huawei.com> - 4.6.4-2
|
||||
- add 10-wsgi-python3.conf to httpd
|
||||
|
||||
* Thu Nov 19 2020 huanghaitao <huanghaitao8@huawei.com> - 4.6.4-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user