]> git.pld-linux.org Git - packages/php-pecl-mongodb.git/commitdiff
clean sources in prep except .m4
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 29 Oct 2017 17:05:28 +0000 (19:05 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 29 Oct 2017 17:05:28 +0000 (19:05 +0200)
php-pecl-mongodb.spec

index 51add1bbc9b0f44f05abab3a6480c30161509d8d..db9f43c0e696bca2eaf54a79331ebbd55dfce79f 100644 (file)
@@ -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 \
This page took 0.077494 seconds and 4 git commands to generate.