[redland-bindings] - rebuild for https://fedoraproject.org/wiki/Changes/Php56 - add PHP extension configuration file

Remi Collet remi at fedoraproject.org
Fri Jun 20 05:40:24 UTC 2014


commit d3802fb6fc5f41fb436e6c181eecfecc065fb359
Author: Remi Collet <remi at fedoraproject.org>
Date:   Fri Jun 20 07:40:19 2014 +0200

    - rebuild for https://fedoraproject.org/wiki/Changes/Php56
    - add PHP extension configuration file

 redland-bindings.spec |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/redland-bindings.spec b/redland-bindings.spec
index 0ba0b24..5958bb0 100644
--- a/redland-bindings.spec
+++ b/redland-bindings.spec
@@ -58,6 +58,11 @@ an interface to Perl.
 
 %global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
 %{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
+%if "%{php_version}" < "5.6"
+%global ini_name     redland.ini
+%else
+%global ini_name     40-redland.ini
+%endif
 
 %package -n     php-redland
 Summary:        PHP modules for the Redland RDF library
@@ -103,6 +108,11 @@ an interface to Ruby.
 # Force swig to regenerate the wrapper
 rm -f php/redland_wrap.c
 
+cat <<'EOF' >php/%{ini_name}
+; Enable the 'Redland' extension module
+extension=redland.so
+EOF
+
 
 %build
 %configure \
@@ -136,6 +146,8 @@ cd php
 make DESTDIR=$RPM_BUILD_ROOT install
 # .so's need to be executable for rpm to strip them
 chmod +x $RPM_BUILD_ROOT%{php_extdir}/redland.so
+# configuration file
+install -D %{ini_name} $RPM_BUILD_ROOT%{php_inidir}/%{ini_name}
 cd ..
 
 cd python
@@ -175,6 +187,7 @@ make check ||:
 
 %files -n php-redland
 %doc docs/php.html
+%config(noreplace) %{php_inidir}/%{ini_name}
 %{php_extdir}/redland.so
 
 %files -n python-redland
@@ -191,6 +204,10 @@ make check ||:
 %{ruby_vendorarchdir}/rdf
 
 %changelog
+* Fri Jun 20 2014 Remi Collet <rcollet at redhat.com> - 0.11-21
+- rebuild for https://fedoraproject.org/wiki/Changes/Php56
+- add PHP extension configuration file
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.16.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list