[nodejs-node-xmpp] Restrict to compatible arches

Jamie Nguyen jamielinux at fedoraproject.org
Sun Jul 28 14:51:24 UTC 2013


commit 7d1173f7935f546aa050da5d96b3eb494c17979a
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Jul 28 15:50:59 2013 +0100

    Restrict to compatible arches

 nodejs-node-xmpp.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/nodejs-node-xmpp.spec b/nodejs-node-xmpp.spec
index 2820a53..35b196e 100644
--- a/nodejs-node-xmpp.spec
+++ b/nodejs-node-xmpp.spec
@@ -4,18 +4,24 @@
 
 Name:       nodejs-node-xmpp
 Version:    0.3.2
-Release:    5%{?dist}
+Release:    6%{?dist}
 Summary:    Idiomatic XMPP client, component and server library for Node.js
 License:    MIT
 Group:      System Environment/Libraries
 URL:        https://github.com/astro/node-xmpp
 Source0:    http://registry.npmjs.org/node-xmpp/-/node-xmpp-%{version}.tgz
+
 BuildArch:  noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
 
 # Small, isolated fix taken from upstream.
 Patch0:     %{name}-0.3.2-check-socket-exists.patch
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
 %if 0%{?enable_tests}
 BuildRequires:  npm(ltx)
@@ -59,7 +65,7 @@ cp -pr package.json lib/ \
 
 %if 0%{?enable_tests}
 %check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
 %__nodejs test/jid-test.js
 %endif
 
@@ -70,6 +76,9 @@ ln -sf %{nodejs_sitelib} .
 
 
 %changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.3.2-6
+- restrict to compatible arches
+
 * Sat Mar 23 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.3.2-5
 - add comment about upstream patch
 - fix %%description


More information about the scm-commits mailing list