Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
apache2-mod_wsgi
apache2-mod_wsgi-python3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache2-mod_wsgi-python3.spec of Package apache2-mod_wsgi
# # spec file for package apache2-mod_wsgi-python3 # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define modname mod_wsgi Name: apache2-mod_wsgi-python3 Version: 4.4.13 Release: 0 Summary: A WSGI interface for Python3 web applications in Apache License: Apache-2.0 Group: Productivity/Networking/Web/Servers Url: https://github.com/GrahamDumpleton/mod_wsgi #Source: https://github.com/GrahamDumpleton/mod_wsgi/archive/%%{version}.tar.gz Source: %{modname}-%{version}.tar.gz ## Work around for inconsistent Apache source tree in SLE 12, see bnc#915479 Patch0: wsgi_fixVersionCheck.patch # PATCH-FIX-UPSTREAM https://github.com/GrahamDumpleton/mod_wsgi/commit/af3c0c2736bc0b0b Add fix to ensure that X-Client-IP header is dropped when is not a trusted header. Patch1: CVE-2022-2255.patch BuildRequires: python3-devel Provides: %{modname} = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: apache-rpm-macros BuildRequires: apache2-devel %else %define apache_apxs %{bindir}/apxs %define apache_sysconfdir %(%{apache_apxs} -q PREFIX) BuildRequires: httpd BuildRequires: httpd-devel %endif %if 0%{?suse_version} Requires: %{apache_mmn} Requires: %{apache_suse_maintenance_mmn} Requires: apache2 %else Requires: httpd %endif Conflicts: apache2-mod_wsgi %description The mod_wsgi adapter is an Apacheache module that provides a WSGI compliant interface for hosting Python based web applications within Apache. The adapter is writtentten completely in C code against the Apache C runtime and for hosting WSGI applications within Apache has a lower overhead than using existing WSGI adapters for mod_python or CGI. %prep %setup -q -n %{modname}-%{version} %patch0 -p1 %patch1 -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ %if 0%{?suse_version} --with-apxs="%{apache_apxs}-prefork" \ %else --with-apxs="%{apache_apxs}" \ %endif --with-python="python3" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} LIBEXECDIR=%{apache_libexecdir} %check set +x %apache_test_module_load -m wsgi set -x %post %if 0%{?suse_version} if ! %{_sbindir}/a2enmod -q wsgi; then %{_sbindir}/a2enmod wsgi fi %endif %postun %if 0%{?suse_version} if [ "$1" = "0" ]; then if a2enmod -q wsgi; then %{_sbindir}/a2enmod -d wsgi fi fi %endif %files %defattr(-,root,root) %doc LICENSE README.rst docs/release-notes %dir %{apache_libexecdir} %{apache_libexecdir}/%{modname}.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor