]> git.pld-linux.org Git - packages/php-pecl-xmlrpc.git/commitdiff
Update build hack with xmlrpc-epi from php.spec
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Oct 2020 19:57:25 +0000 (22:57 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Oct 2020 19:57:25 +0000 (22:57 +0300)
php-pecl-xmlrpc.spec

index 1299a62e5d5d1dc06336d1afe279395c51909ddd..81f203681fd3b8433d8b2543487710b1d604c04b 100644 (file)
@@ -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}
 
This page took 0.070708 seconds and 4 git commands to generate.