[nodejs-libxmljs] Add ExclusiveArch logic
Jamie Nguyen
jamielinux at fedoraproject.org
Sat Jul 27 20:42:35 UTC 2013
commit 95e75b3cdb18d4f4c82dc63ffcbdf2a214304285
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sat Jul 27 21:41:43 2013 +0100
Add ExclusiveArch logic
nodejs-libxmljs.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/nodejs-libxmljs.spec b/nodejs-libxmljs.spec
index db44d83..1ccfe81 100644
--- a/nodejs-libxmljs.spec
+++ b/nodejs-libxmljs.spec
@@ -14,13 +14,15 @@ Source0: http://registry.npmjs.org/libxmljs/-/libxmljs-%{version}.tgz
# binding.gyp contains a dependency on the bundled libxml2
Patch0: %{name}-0.8.1-remove-bundled-libxml.patch
-BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
BuildRequires: node-gyp
BuildRequires: libxml2-devel
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches}
+%else
ExclusiveArch: %{ix86} x86_64 %{arm}
-# Replace with this when it gets fixed.
-# ExclusiveArch: %%{nodejs_arches}
+%endif
%if 0%{?enable_tests}
BuildRequires: npm(bindings)
@@ -56,7 +58,7 @@ install -p -D -m0755 build/Release/xmljs.node \
%if 0%{?enable_tests}
%check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
%__nodejs --expose_gc %{nodejs_sitelib}/nodeunit/bin/nodeunit test
%endif
@@ -67,6 +69,9 @@ ln -sf %{nodejs_sitelib} .
%changelog
+* Sat Jul 27 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.8.1-3
+- add ExclusiveArch logic
+
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.8.1-2
- restrict to compatible arches
More information about the scm-commits
mailing list