summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-07-09 09:43:38 +0200
committerRemi Collet <remi@remirepo.net>2021-07-09 09:43:38 +0200
commitb560543f13089088d7417b751e4b36459e530055 (patch)
tree479ff4b29f01dfd21c08579c04795d49d4c3009d
parent0f5f9ddb0ccf8bc326d181a0c15642130a2b6317 (diff)
add weak dependencies on commonly used SAPI and extensions:HEADmaster
fpm, mbstring, opcache, pdo, sodium and xml
-rw-r--r--php81.spec15
1 files changed, 14 insertions, 1 deletions
diff --git a/php81.spec b/php81.spec
index ed2821a..aadf4b6 100644
--- a/php81.spec
+++ b/php81.spec
@@ -26,7 +26,7 @@
Summary: Package that installs PHP 8.1
Name: %scl_name
Version: 8.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Source0: macros-build
@@ -42,6 +42,15 @@ BuildRequires: environment-modules
Requires: %{?scl_prefix}php-common%{?_isa}
Requires: %{?scl_prefix}php-cli%{?_isa}
Requires: %{?scl_name}-runtime%{?_isa} = %{version}-%{release}
+%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+# this a meta-package, so commonly used SAPI / extensions:
+Recommends: %{?scl_prefix}php-fpm%{?_isa}
+Recommends: %{?scl_prefix}php-mbstring%{?_isa}
+Recommends: %{?scl_prefix}php-opcache%{?_isa}
+Recommends: %{?scl_prefix}php-pdo%{?_isa}
+Recommends: %{?scl_prefix}php-sodium%{?_isa}
+Recommends: %{?scl_prefix}php-xml%{?_isa}
+%endif
%description
This is the main package for %scl Software Collection,
@@ -249,6 +258,10 @@ restorecon -R %{_localstatedir} &>/dev/null || :
%changelog
+* Fri Jul 9 2021 Remi Collet <remi@remirepo.net> 8.1-2
+- add weak dependencies on commonly used SAPI and extensions:
+ fpm, mbstring, opcache, pdo, sodium and xml
+
* Fri Jun 4 2021 Remi Collet <remi@remirepo.net> 8.1-1
- initial package for 8.1