From c1d310393b5eb30a0f4239ffa3ea9123218c8a85 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:29:19 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.4.12-1mamba;Sat Jun 13 2015] --- README.md | 2 ++ apache-mod_wsgi.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 apache-mod_wsgi.spec diff --git a/README.md b/README.md index b80076c..94d9c3b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # apache-mod_wsgi +The mod_wsgi package provides an Apache module that implements a WSGI compliant interface for hosting Python based web applications on top of the Apache web server. + diff --git a/apache-mod_wsgi.spec b/apache-mod_wsgi.spec new file mode 100644 index 0000000..d803be6 --- /dev/null +++ b/apache-mod_wsgi.spec @@ -0,0 +1,68 @@ +Name: apache-mod_wsgi +Version: 4.4.12 +Release: 1mamba +Summary: an Apache module that implements a WSGI compliant interface for hosting Python based web applications +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pypi.python.org/pypi/mod_wsgi +Source: https://pypi.python.org/packages/source/m/mod_wsgi/mod_wsgi-%{version}.tar.gz +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +BuildRequires: apache >= 2.4 +Requires: apache >= 2.4 +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The mod_wsgi package provides an Apache module that implements a WSGI compliant interface for hosting Python based web applications on top of the Apache web server. + +%prep +%setup -q -n mod_wsgi-%{version} + +%build +CFLAGS="%{optflags}" %{__python3} setup.py build + +%configure \ + --with-python=%{__python3} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python3} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python3_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%makeinstall + +%post +if [ $1 -ge 1 ]; then + %{_bindir}/apxs -e -a -n wsgi %{_libdir}/apache/mod_wsgi.so > /dev/null +fi +: + +%preun +if [ $1 -eq 0 ]; then + %{_bindir}/apxs -e -A -n wsgi %{_libdir}/apache/mod_wsgi.so > /dev/null +fi +: + +%files -f %{name}.filelist +%defattr(-,root,root) +%{_libdir}/apache/mod_wsgi.so +%doc LICENSE + +%changelog +* Sat Jun 13 2015 Silvan Calarco 4.4.12-1mamba +- package created using the webbuild interface