diff options
author | Remi Collet <remi@remirepo.net> | 2019-01-21 09:23:32 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-01-21 09:23:32 +0100 |
commit | ce9e2bd47aa62655ee940d263ecaf9399394036f (patch) | |
tree | 24f2ff48279d4c3f3d7e4abc1e60fc09e55594d5 /php56.spec | |
parent | c4b8892e82abf357ec1fe78ff905d767d3d7462f (diff) |
cleanup for EL-8
Diffstat (limited to 'php56.spec')
-rw-r--r-- | php56.spec | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,10 +1,18 @@ +# remirepo spec file for php56 SCL metapackage +# +# Copyright (c) 2013-2019 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# %global scl_name_base php %global scl_name_version 56 %global scl %{scl_name_base}%{scl_name_version} %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_root_sysconfdir}/rpm; echo $d) %global install_scl 1 -%if 0%{?fedora} >= 26 +%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 %global rh_layout 1 %endif @@ -24,7 +32,7 @@ Summary: Package that installs PHP 5.6 Name: %scl_name Version: 2.3 -Release: 2%{?dist} +Release: 3%{?dist} Group: Development/Languages License: GPLv2+ @@ -163,7 +171,7 @@ if [ "%{_root_sysconfdir}/rpm" != "%{macrosdir}" ]; then %{buildroot}%{macrosdir}/macros.%{scl}-config fi -%if 0%{?fedora} < 26 +%if 0%{?fedora} < 26 && 0%{?rhel} < 8 # Create symlinks mkdir -p %{buildroot}%{_root_sysconfdir}/opt/%{scl_vendor} ln -s %{_sysconfdir} %{buildroot}%{_root_sysconfdir}/opt/%{scl_vendor}/%{scl} @@ -175,13 +183,13 @@ ln -s %{_localstatedir} %{buildroot}%{_root_localstatedir}/opt/%{scl_vendor}/%{s %post runtime # Simple copy of context from system root to SCL root. semanage fcontext -a -e / %{?_scl_root} &>/dev/null || : -%if 0%{?fedora} >= 26 +%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 semanage fcontext -a -e %{_root_sysconfdir} %{_sysconfdir} &>/dev/null || : semanage fcontext -a -e %{_root_localstatedir} %{_localstatedir} &>/dev/null || : %endif selinuxenabled && load_policy || : restorecon -R %{?_scl_root} &>/dev/null || : -%if 0%{?fedora} >= 26 +%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 restorecon -R %{_sysconfdir} &>/dev/null || : restorecon -R %{_localstatedir} &>/dev/null || : %endif @@ -207,7 +215,7 @@ restorecon -R %{_localstatedir} &>/dev/null || : %if ! %{with_modules} %{_root_datadir}/Modules/modulefiles/%{scl_name} %endif -%if 0%{?fedora} < 26 +%if 0%{?fedora} < 26 && 0%{?rhel} < 8 %{_root_sysconfdir}/opt/%{scl_vendor}/%{scl} %{_root_localstatedir}/opt/%{scl_vendor}/%{scl} %endif @@ -224,6 +232,9 @@ restorecon -R %{_localstatedir} &>/dev/null || : %changelog +* Mon Jan 21 2019 Remi Collet <remi@remirepo.net> 2.3-3 +- cleanup for EL-8 + * Fri Aug 24 2018 Remi Collet <remi@remirepo.net> 2.3-2 - scl-utils 2.0.2 drop modules support |