[php-pecl-ssh2] rebuild for https://fedoraproject.org/wiki/Changes/Php56

Remi Collet remi at fedoraproject.org
Thu Jun 19 13:38:42 UTC 2014


commit f7cc0e96316cc1d60b934e6845903255ceb749ac
Author: Remi Collet <remi at fedoraproject.org>
Date:   Thu Jun 19 15:38:36 2014 +0200

    rebuild for https://fedoraproject.org/wiki/Changes/Php56

 php-pecl-ssh2.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec
index cc84587..0fb1e0f 100644
--- a/php-pecl-ssh2.spec
+++ b/php-pecl-ssh2.spec
@@ -5,10 +5,15 @@
 %{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}
 
 %define pecl_name ssh2
+%if "%{php_version}" < "5.6"
+%global ini_name  %{pecl_name}.ini
+%else
+%global ini_name  40-%{pecl_name}.ini
+%endif
 
 Name:           php-pecl-ssh2
 Version:        0.12
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Bindings for the libssh2 library
 
 License:        PHP
@@ -80,7 +85,7 @@ install -Dpm 644 %{pecl_name}.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
 
 # install config file
 %{__install} -d %{buildroot}%{_sysconfdir}/php.d
-%{__cat} > %{buildroot}%{_sysconfdir}/php.d/ssh2.ini << 'EOF'
+%{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{ini_name} << 'EOF'
 ; Enable ssh2 extension module
 extension=ssh2.so
 EOF
@@ -115,12 +120,16 @@ fi
 %files
 %defattr(-,root,root,-)
 %doc LICENSE README
-%config(noreplace) %{_sysconfdir}/php.d/ssh2.ini
+%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
 %{php_extdir}/ssh2.so
 %{pecl_xmldir}/%{name}.xml
 
 
 %changelog
+* Thu Jun 19 2014 Remi Collet <rcollet at redhat.com> - 1.2.0-4
+- rebuild for https://fedoraproject.org/wiki/Changes/Php56
+- add numerical prefix to extension configuration file
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list