From 8cb30902acb8eb6139de42dc6083618a08cb62f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 29 Oct 2017 19:05:28 +0200 Subject: [PATCH] clean sources in prep except .m4 --- php-pecl-mongodb.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec index 51add1b..db9f43c 100644 --- a/php-pecl-mongodb.spec +++ b/php-pecl-mongodb.spec @@ -49,6 +49,13 @@ MongoDB driver. mv %{modname}-%{version}/* . %patch0 -p1 +# Ensure we use system library +# remove only C sources, m4 resources needed for phpize via m4_include +find \ + src/libbson \ + src/libmongoc \ + -name '*.[ch]' | xargs %{__rm} -v + %build # Sanity check, really often broken extver=$(sed -n '/#define PHP_MONGODB_VERSION/{s/.* "//;s/".*$//;p}' php_phongo.h) @@ -58,10 +65,6 @@ if test "x${extver}" != "x%{version}"; then fi phpize -# Ensure we use system library -# Need to be removed only after phpize because of m4_include -%{__rm} -r src/libbson -%{__rm} -r src/libmongoc %configure \ --with-libbson \ -- 2.43.0