From: Elan Ruusamäe Date: Sun, 29 Oct 2017 17:05:28 +0000 (+0200) Subject: clean sources in prep except .m4 X-Git-Tag: auto/th/php-pecl-mongodb-1.3.2-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp-pecl-mongodb.git;a=commitdiff_plain;h=8cb3090 clean sources in prep except .m4 --- 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 \