From 7eed6baf71706d9b098beb8679b5890a5a322447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 14 Oct 2020 22:57:25 +0300 Subject: [PATCH] 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} -- 2.43.0