]> git.pld-linux.org Git - packages/php-pecl-redis.git/commitdiff
Use numeric index for ini config auto/th/php-pecl-redis-5.3.2-1
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 15 Dec 2020 20:36:08 +0000 (22:36 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 15 Dec 2020 20:36:08 +0000 (22:36 +0200)
php-pecl-redis.spec

index 9b5b869a80149c758f31deb625afac36a5bdaeb6..f10522379992289435e4974f95c09290e9f1a3c9 100644 (file)
@@ -114,7 +114,12 @@ rm -rf $RPM_BUILD_ROOT
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
        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, ext-session
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/01_%{modname}.ini
+%else
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+%endif
 ; Enable %{modname} extension module
 extension=%{modname}.so
 EOF
 ; Enable %{modname} extension module
 extension=%{modname}.so
 EOF
@@ -136,7 +141,7 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc CREDITS README.markdown
 %files
 %defattr(644,root,root,755)
 %doc CREDITS README.markdown
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/*%{modname}.ini
 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
 
 %if %{with phpdoc}
 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
 
 %if %{with phpdoc}
This page took 0.117376 seconds and 4 git commands to generate.