[nodejs-node-expat] Add ExclusiveArch logic
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Jul 28 14:20:01 UTC 2013
commit fdbf8afc5a886a451728367dfec7917acd615f6d
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Jul 28 15:19:30 2013 +0100
Add ExclusiveArch logic
nodejs-node-expat.spec | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/nodejs-node-expat.spec b/nodejs-node-expat.spec
index 159cd9f..05a9ffa 100644
--- a/nodejs-node-expat.spec
+++ b/nodejs-node-expat.spec
@@ -4,7 +4,7 @@
Name: nodejs-node-expat
Version: 2.0.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Fast libexpat XML SAX parser binding for Node.js
License: MIT
Group: System Environment/Libraries
@@ -14,15 +14,18 @@ Source0: http://registry.npmjs.org/node-expat/-/node-expat-%{version}.tgz
Patch0: %{name}-2.0.0-use-system-expat.patch
BuildRequires: expat-devel
-BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
BuildRequires: node-gyp
%if 0%{?enable_tests}
BuildRequires: npm(vows)
%endif
-# Exclusive archs must match v8
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches}
+%else
ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
%description
%{summary}.
@@ -54,7 +57,7 @@ sed -i -e 's|build/Release|build|g' \
%if 0%{?enable_tests}
%check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
%__nodejs test.js
%endif
@@ -65,6 +68,9 @@ ln -sf %{nodejs_sitelib} .
%changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 2.0.0-6
+- add ExclusiveArch logic
+
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 2.0.0-5
- rebuild for missing npm(node-expat) provides on EL6
More information about the scm-commits
mailing list