[php-pecl-gearman] rebuild for https://fedoraproject.org/wiki/Changes/Php56
Remi Collet
remi at fedoraproject.org
Thu Jun 19 12:26:29 UTC 2014
commit 98dbc640c5c44ecfa19d9850869c5d9ef27a39a5
Author: Remi Collet <remi at fedoraproject.org>
Date: Thu Jun 19 14:26:21 2014 +0200
rebuild for https://fedoraproject.org/wiki/Changes/Php56
php-pecl-gearman.spec | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec
index da7a6bd..3527a72 100644
--- a/php-pecl-gearman.spec
+++ b/php-pecl-gearman.spec
@@ -2,10 +2,15 @@
%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
%define pecl_name gearman
+%if "%{php_version}" < "5.6"
+%global ini_name %{pecl_name}.ini
+%else
+%global ini_name 40-%{pecl_name}.ini
+%endif
Name: php-pecl-gearman
Version: 1.1.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: PHP wrapper to libgearman
Group: Development/Tools
@@ -54,7 +59,7 @@ if test "x${extver}" != "x%{version}"; then
exit 1
fi
-cat >%{pecl_name}.ini <<EOF
+cat >%{ini_name} <<EOF
; enable %{pecl_name} extension
extension=%{pecl_name}.so
EOF
@@ -77,7 +82,7 @@ make -C %{pecl_name}-%{version} \
install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# install config file
-install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini
+install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
%check
@@ -106,7 +111,7 @@ fi
%files
%defattr(-,root,root,-)
-%config(noreplace) %{_sysconfdir}/php.d/gearman.ini
+%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/gearman.so
%{pecl_xmldir}/%{name}.xml
@@ -114,6 +119,10 @@ fi
%changelog
+* Thu Jun 19 2014 Remi Collet <rcollet at redhat.com> - 1.1.1-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> - 1.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list