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 - 0.10.1-1 - new upstream release 0.10.1