summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php80.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/php80.spec b/php80.spec
index 98c1408..524aa2a 100644
--- a/php80.spec
+++ b/php80.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php80 SCL metapackage
#
-# SPDX-FileCopyrightText: Copyright 2018-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2018-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
@@ -21,7 +21,7 @@
Summary: Package that installs PHP 8.0
Name: %scl_name
Version: 8.0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPL-2.0-or-later
Source0: macros-build
@@ -47,6 +47,7 @@ that install PHP 8.0 language.
Summary: Package that handles %scl Software Collection.
Requires: scl-utils
Requires: environment-modules
+Requires(post): %{_root_bindir}/grep
Requires(post): %{_root_sbindir}/semanage
%if 0%{?fedora} >= 42 || 0%{?rhel} >= 11
Requires(post): %{_root_bindir}/selinuxenabled
@@ -202,6 +203,9 @@ ln -s %{_mandir}/man1/php-cgi.1.gz %{buildroot}%{_root_mandir}/man1/php-cgi.1.gz
semanage fcontext -a -e / %{?_scl_root} &>/dev/null || :
semanage fcontext -a -e %{_root_sysconfdir} %{_sysconfdir} &>/dev/null || :
semanage fcontext -a -e %{_root_localstatedir} %{_localstatedir} &>/dev/null || :
+grep -q '^%{_localstatedir}' /etc/selinux/targeted/contexts/files/file_contexts.subs \
+ || echo "%{_localstatedir} %{_root_localstatedir}" >>/etc/selinux/targeted/contexts/files/file_contexts.subs \
+ || :
selinuxenabled && load_policy || :
restorecon -R %{?_scl_root} &>/dev/null || :
restorecon -R %{_sysconfdir} &>/dev/null || :
@@ -243,6 +247,10 @@ restorecon -R %{_localstatedir} &>/dev/null || :
%changelog
+* Fri Jun 5 2026 Remi Collet <remi@remirepo.net> 8.0-5
+- workaround for selinux context on /var/opt
+ https://github.com/remicollet/remirepo/issues/323
+
* Fri Feb 14 2025 Remi Collet <remi@remirepo.net> 8.0-4
- F42: fix dependencies
- re-license spec file to CECILL-2.1