[redland-bindings] PHP 5.4.0 Build

Remi Collet remi at fedoraproject.org
Sat Jan 21 15:45:44 UTC 2012


commit f6914da0c1fcfd0d16a69bbb439e5f75ad580227
Author: remi <fedora at famillecollet.com>
Date:   Sat Jan 21 16:45:15 2012 +0100

    PHP 5.4.0 Build

 redland-bindings.spec |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/redland-bindings.spec b/redland-bindings.spec
index f81fc43..4946ba6 100644
--- a/redland-bindings.spec
+++ b/redland-bindings.spec
@@ -1,6 +1,6 @@
 Name:           redland-bindings
 Version:        1.0.13.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Redland RDF Application Framework API Bindings
 
 Group:          System Environment/Libraries
@@ -84,7 +84,8 @@ Summary:        PHP modules for the Redland RDF library
 Group:          Development/Languages
 Requires:       redland >= %{redland_version}
 Requires:       redland-bindings-common
-Requires:       php-api = %{php_apiver}
+Requires:       php(zend-abi) = %{php_zend_api}
+Requires:       php(api) = %{php_core_api}
 
 %description -n php-redland
 The php-redland package contains the parts of Redland that provide
@@ -121,6 +122,9 @@ an interface to Ruby.
 %prep
 %setup -q
 
+# Force swig to regenerate the wrapper
+rm -f php/redland_wrap.c
+
 %build
 # our patches are from upstream, touching configure.ac and Makefile.am, so
 # regenerate
@@ -178,6 +182,12 @@ make DESTDIR=$RPM_BUILD_ROOT install
 chmod +x $RPM_BUILD_ROOT%{ruby_sitearch}/redland.so
 cd ..
 
+%check
+%{_bindir}/php \
+    -n -d extension_dir=${RPM_BUILD_ROOT}%{php_extdir} \
+    -d extension=redland.so \
+    -m | grep redland
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -218,6 +228,11 @@ rm -rf $RPM_BUILD_ROOT
 %{ruby_sitearch}/rdf
 
 %changelog
+* Sun Jan 21 2012 Remi Collet <remi at fedoraproject.org> - 1.0.13.1-3
+- build against PHP 5.4
+- provided php wrapper is unusable, regenerate it
+- fix php ABI check
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.13.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list