[nodejs/f18] add %nodejs_default_filter macro to remove unwanted Provides from native module shared objects

T.C. Hollingsworth patches at fedoraproject.org
Mon Apr 1 05:02:09 UTC 2013


commit 7cb1934a64fbbeb7b87820df182d3ed4835c538c
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Sun Mar 31 17:03:32 2013 -0700

    add %nodejs_default_filter macro to remove unwanted Provides from native module shared objects

 macros.nodejs |    5 +++++
 nodejs.spec   |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/macros.nodejs b/macros.nodejs
index 75393a6..b252da7 100644
--- a/macros.nodejs
+++ b/macros.nodejs
@@ -22,3 +22,8 @@
 #      `%%nodejs_fixdep frobber '>1.0'` requires frobber > 1.0
 #      `%%nodejs_fixdep -r frobber removes the frobber dep
 %nodejs_fixdep %{_rpmconfigdir}/nodejs-fixdep
+
+# macro to filter unwanted provides from Node.js binary native modules
+%nodejs_default_filter %{expand: \
+%global __provides_exclude_from ^%{nodejs_sitearch}/.*\\.node$
+}
diff --git a/nodejs.spec b/nodejs.spec
index 0d13f5c..daf9e31 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -193,6 +193,7 @@ cp -p common.gypi %{buildroot}%{_datadir}/node
   http://blog.nodejs.org/2013/03/28/node-v0-10-2-stable/
 - remove %%nodejs_arches macro since it will only be useful if it is present in
   the redhat-rpm-config package
+- add default filtering macro to remove unwanted Provides from native modules
 
 * Fri Mar 22 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.10.1-1
 - new upstream release 0.10.1


More information about the scm-commits mailing list