From: Elan Ruusamäe Date: Wed, 14 Oct 2020 19:57:25 +0000 (+0300) Subject: Update build hack with xmlrpc-epi from php.spec X-Git-Tag: auto/th/php-pecl-xmlrpc-1.0.0-0.1.1ed83f2~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp-pecl-xmlrpc.git;a=commitdiff_plain;h=7eed6ba Update build hack with xmlrpc-epi from php.spec --- 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}