[packages/php-pecl-mongodb] clean sources in prep except .m4

glen glen at pld-linux.org
Sun Oct 29 18:05:38 CET 2017


commit 8cb30902acb8eb6139de42dc6083618a08cb62f8
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Oct 29 19:05:28 2017 +0200

    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 \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-mongodb.git/commitdiff/8cb30902acb8eb6139de42dc6083618a08cb62f8



More information about the pld-cvs-commit mailing list