add 10-wsgi-python3.conf to httpd

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 83fb2e02c87c1bdab38918e7e8b509f817ef7089)
This commit is contained in:
cherry530 2021-10-13 18:26:44 +08:00 committed by openeuler-sync-bot
parent 7d54534270
commit 65c82dab64

View File

@ -6,7 +6,7 @@
%global sphinxbin %{_bindir}/sphinx-build-3 %global sphinxbin %{_bindir}/sphinx-build-3
Name: mod_wsgi Name: mod_wsgi
Version: 4.6.4 Version: 4.6.4
Release: 1 Release: 2
Summary: A WSGI interface for Python web applications in Apache Summary: A WSGI interface for Python web applications in Apache
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/GrahamDumpleton/mod_wsgi URL: https://github.com/GrahamDumpleton/mod_wsgi
@ -61,6 +61,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir}
%py3_install %py3_install
mv $RPM_BUILD_ROOT%{_bindir}/mod_wsgi-express{,-3} mv $RPM_BUILD_ROOT%{_bindir}/mod_wsgi-express{,-3}
popd 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} %files -n python3-%{name}
%license LICENSE %license LICENSE
@ -69,7 +74,11 @@ popd
%{python3_sitearch}/mod_wsgi-*.egg-info %{python3_sitearch}/mod_wsgi-*.egg-info
%{python3_sitearch}/mod_wsgi %{python3_sitearch}/mod_wsgi
%{_bindir}/mod_wsgi-express-3 %{_bindir}/mod_wsgi-express-3
%config(noreplace) %{_httpd_modconfdir}/*.conf
%changelog %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 * Thu Nov 19 2020 huanghaitao <huanghaitao8@huawei.com> - 4.6.4-1
- package init - package init