commit ea9bee700035adfea9cf47b44779866170237031
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Oct 17 19:35:19 2019 +0300

    Use php 7.4 module load ordering

 php-pecl-ds.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-ds.spec b/php-pecl-ds.spec
index c86b79a..d3ef441 100644
--- a/php-pecl-ds.spec
+++ b/php-pecl-ds.spec
@@ -7,7 +7,7 @@
 Summary:       Data Structures
 Name:          %{php_name}-pecl-%{modname}
 Version:       1.2.9
-Release:       2
+Release:       3
 License:       MIT
 Group:         Development/Languages/PHP
 Source0:       https://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -73,7 +73,12 @@ install -d 
$RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+%if "%php_major_version.%php_minor_version" >= "7.4"
+# order after ext-json
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/01_%{modname}.ini
+%else
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/json_%{modname}.ini
+%endif
 ; Enable %{modname} extension module
 extension=%{modname}.so
 EOF
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-ds.git/commitdiff/ea9bee700035adfea9cf47b44779866170237031

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to