[xapian-bindings] PHP 5.4.0 Build - (but extension is broken)

Remi Collet remi at fedoraproject.org
Sat Jan 21 16:24:51 UTC 2012


commit 0d2ae8f6b34a182444b261eb947ba1093ae3025e
Author: remi <fedora at famillecollet.com>
Date:   Sat Jan 21 17:24:22 2012 +0100

    PHP 5.4.0 Build - (but extension is broken)

 xapian-bindings.spec |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/xapian-bindings.spec b/xapian-bindings.spec
index 72f4fb7..d00ff91 100644
--- a/xapian-bindings.spec
+++ b/xapian-bindings.spec
@@ -23,6 +23,10 @@ BuildRequires: tcl-devel
 BuildRequires: xapian-core-devel
 BuildRequires: zlib-devel
 
+# Filter private-shared-object-provides
+%{?filter_setup}
+
+
 %description
 Xapian is an Open Source Probabilistic Information Retrieval Library. It
 offers a highly adaptable toolkit that allows developers to easily add advanced
@@ -33,6 +37,7 @@ files needed for scripts which use Xapian.
 Group:         Development/Libraries
 Summary:       Files needed for developing PHP scripts which use Xapian
 Requires:      %{name} = %{version}-%{release}
+Requires:      php(zend-abi) = %{php_zend_api}
 Requires:      php(api) = %{php_core_api}
 
 %description -n php-xapian
@@ -87,6 +92,17 @@ make install DESTDIR=%{buildroot} INSTALL='install -p'
 # Remove the dev docs, we pick them up below
 rm -rf %{buildroot}%{_datadir}/doc/%{name}
 
+%check
+# Extension is unusable for now (wrapper seems outdated)
+# PHP Warning:  PHP Startup: Unable to load dynamic library '.../xapian.so'
+# undefined symbol: zend_error_noreturn in Unknown on line 0
+
+%{_bindir}/php \
+    -n -d extension_dir=%{buildroot}%{php_extdir} \
+    -d extension=xapian.so \
+    -m | grep xapian \
+    || exit 0
+
 %files
 %defattr(-, root, root)
 %doc AUTHORS ChangeLog COPYING NEWS README
@@ -112,6 +128,12 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name}
 %{_libdir}/tcl8.5/xapian%{version}/
 
 %changelog
+* Sun Jan 21 2012 Remi Collet <remi at fedoraproject.org> - 1.0.13.1-3
+- build against PHP 5.4
+- fix php ABI check
+- extension not loadable, must be fixed
+- add filter for private-shared-object-provides
+
 * Sat Jan 21 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 1.2.8-1
 - Update to 1.2.8
 


More information about the scm-commits mailing list