20
0

Accepting request 1119170 from home:deneb_alpha:branches:Apache:Modules

- Use %posttrans instead of %post while adding the wsgi keyword. 
  (bsc#1216411)
  * In systems where the former apache2-mod_wsgi-python3 is
    installed, the removal of the obsoleted apache2-mod_wsgi-python3
    and the installation of the new apache2-mod_wsgi did not 
    preserve the keyword wsgi in the APACHE_MODULES variable.

OBS-URL: https://build.opensuse.org/request/show/1119170
OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_wsgi?expand=0&rev=75
This commit is contained in:
2023-10-20 08:24:11 +00:00
committed by Git OBS Bridge
parent ddf8fcd565
commit 5377859aa4
2 changed files with 18 additions and 8 deletions
+10
View File
@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Oct 19 16:32:13 UTC 2023 - Marina Latini <marina.latini@suse.com>
- Use %posttrans instead of %post while adding the wsgi keyword.
(bsc#1216411)
* In systems where the former apache2-mod_wsgi-python3 is
installed, the removal of the obsoleted apache2-mod_wsgi-python3
and the installation of the new apache2-mod_wsgi did not
preserve the keyword wsgi in the APACHE_MODULES variable.
-------------------------------------------------------------------
Wed Nov 23 13:12:00 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
+8 -8
View File
@@ -1,7 +1,7 @@
#
# spec file for package apache2-mod_wsgi
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -81,13 +81,6 @@ make install DESTDIR=%{buildroot} LIBEXECDIR=%{apache_libexecdir}
%check
%apache_rex_check -m ./src/server/.libs mod_wsgi-basic
%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
@@ -97,6 +90,13 @@ if [ "$1" = "0" ]; then
fi
%endif
%posttrans
%if 0%{?suse_version}
if ! %{_sbindir}/a2enmod -q wsgi; then
%{_sbindir}/a2enmod wsgi
fi
%endif
%files
%defattr(-,root,root)
%doc LICENSE README.rst docs/release-notes