[packages/php-pecl-xmlrpc] Update build hack with xmlrpc-epi from php.spec

glen glen at pld-linux.org
Wed Oct 14 21:59:27 CEST 2020


commit 7eed6baf71706d9b098beb8679b5890a5a322447
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Oct 14 22:57:25 2020 +0300

    Update build hack with xmlrpc-epi from php.spec

 php-pecl-xmlrpc.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-xmlrpc.spec b/php-pecl-xmlrpc.spec
index 1299a62..81f2036 100644
--- a/php-pecl-xmlrpc.spec
+++ b/php-pecl-xmlrpc.spec
@@ -21,6 +21,7 @@ URL:		https://www.php.net/manual/en/book.xmlrpc.php
 %{?with_tests:BuildRequires:    %{php_name}-cli}
 BuildRequires:	%{php_name}-devel >= 4:8.0.0
 BuildRequires:	rpmbuild(macros) >= 1.666
+BuildRequires:	xmlrpc-epi-devel >= 0.54.1
 %if %{with tests}
 BuildRequires:	%{php_name}-cli
 BuildRequires:	%{php_name}-pcre
@@ -40,10 +41,14 @@ Moduł PHP dodający obsługę XMLRPC.
 %setup -qc
 mv pecl-networking-%{modname}-*/* .
 
+%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' config.m4
+
 %build
+export CPPFLAGS="%{rpmcppflags} -I%{_includedir}/xmlrpc-epi"
+
 phpize
 %configure \
-	--with-zlib-dir=shared,/usr \
+	--with-xmlrpc=shared,/usr \
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-xmlrpc.git/commitdiff/516fbba75a8cb8f28f68c5dfd37bee8bc03cc417



More information about the pld-cvs-commit mailing list