update to 4.6.4 [release 4.6.4-1mamba;Thu Sep 06 2018]
This commit is contained in:
parent
5a38b9fe74
commit
97a984ea2b
@ -1,6 +1,6 @@
|
|||||||
Name: apache-mod_wsgi
|
Name: apache-mod_wsgi
|
||||||
Version: 4.4.12
|
Version: 4.6.4
|
||||||
Release: 2mamba
|
Release: 1mamba
|
||||||
Summary: an Apache module that implements a WSGI compliant interface for hosting Python based web applications
|
Summary: an Apache module that implements a WSGI compliant interface for hosting Python based web applications
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -24,56 +24,72 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|||||||
%description
|
%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.
|
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.
|
||||||
|
|
||||||
|
%if 0%{?with_pyver}
|
||||||
|
%pyver_package
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mod_wsgi-%{version}
|
%setup -q -n mod_wsgi-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||||
|
|
||||||
%configure\
|
%configure\
|
||||||
--with-python=%{__python3}
|
--with-python=%{__python}
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python3} setup.py install \
|
%{__python} setup.py install \
|
||||||
-O1 --skip-build \
|
-O1 --skip-build \
|
||||||
--root="%{buildroot}" \
|
--root="%{buildroot}" \
|
||||||
--install-headers=%{_includedir}/python \
|
--install-headers=%{_includedir}/python \
|
||||||
--install-lib=%{python3_sitearch} \
|
--install-lib=%{python_sitearch} \
|
||||||
--record=%{name}.filelist
|
--record=%{name}.filelist
|
||||||
|
|
||||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/wsgi.conf
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/wsgi%{?pyappend:-%pyappend}.conf
|
||||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/httpd.d/wsgi.conf
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/httpd.d/wsgi%{?pyappend:-%pyappend}.conf
|
||||||
|
|
||||||
%post
|
%if 0%{?with_pyver}
|
||||||
|
mv %{buildroot}%{_libdir}/apache/mod_wsgi.so %{buildroot}%{_libdir}/apache/mod_wsgi%{?pyappend:-%pyappend}.so
|
||||||
|
mv %{buildroot}%{_bindir}/mod_wsgi-express %{buildroot}%{_bindir}/mod_wsgi-express%{?pyappend:-%pyappend}
|
||||||
|
sed -i "s|%{_bindir}/mod_wsgi-express|%{_bindir}/mod_wsgi-express%{?pyappend:-%pyappend}|" %{name}.filelist
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post %{?pyappend}
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
|
# WORKAROUND: using tmpfiles_create macro unsets %pyappend variable for yet unknown reasons
|
||||||
|
#% tmpfiles_create wsgi%{?pyappend:-%pyappend}.conf
|
||||||
|
systemd-tmpfiles --create wsgi%{?pyappend:-%pyappend}.conf >/dev/null 2>&1 || :
|
||||||
systemctl -q daemon-reload
|
systemctl -q daemon-reload
|
||||||
%tmpfiles_create wsgi.conf
|
%{_bindir}/apxs -e -a -n wsgi%{?pyappend} %{_libdir}/apache/mod_wsgi%{?pyappend:-%pyappend}.so > /dev/null
|
||||||
%{_bindir}/apxs -e -a -n wsgi %{_libdir}/apache/mod_wsgi.so > /dev/null
|
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%preun
|
%preun %{?pyappend}
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
systemctl -q daemon-reload
|
systemctl -q daemon-reload
|
||||||
%{_bindir}/apxs -e -A -n wsgi %{_libdir}/apache/mod_wsgi.so > /dev/null
|
%{_bindir}/apxs -e -A -n wsgi%{?pyappend} %{_libdir}/apache/mod_wsgi%{?pyappend:-%pyappend}.so > /dev/null
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%files -f %{name}.filelist
|
%files %{?pyappend} -f %{name}.filelist
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysconfdir}/httpd/httpd.d/wsgi.conf
|
%{_sysconfdir}/httpd/httpd.d/wsgi%{?pyappend:-%pyappend}.conf
|
||||||
%{_libdir}/apache/mod_wsgi.so
|
%{_libdir}/apache/mod_wsgi%{?pyappend:-%pyappend}.so
|
||||||
%{_tmpfilesdir}/wsgi.conf
|
%{_tmpfilesdir}/wsgi%{?pyappend:-%pyappend}.conf
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.4-1mamba
|
||||||
|
- update to 4.6.4
|
||||||
|
|
||||||
* Mon Aug 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.12-2mamba
|
* Mon Aug 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.12-2mamba
|
||||||
- install tmpfiles and apache configurations for /run/wsgi as default socket dir
|
- install tmpfiles and apache configurations for /run/wsgi as default socket dir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user