[nodejs-qs/f19] Add ExclusiveArch logic

Jamie Nguyen jamielinux at fedoraproject.org
Sun Jul 28 21:18:06 UTC 2013


commit de655684761fce5b649c1f7892ff36aaae938260
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Jul 28 22:17:41 2013 +0100

    Add ExclusiveArch logic

 nodejs-qs.spec |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/dl-tests.sh b/dl-tests.sh
old mode 100755
new mode 100644
diff --git a/nodejs-qs.spec b/nodejs-qs.spec
index 8f410fe..73db483 100644
--- a/nodejs-qs.spec
+++ b/nodejs-qs.spec
@@ -4,7 +4,7 @@
 
 Name:       nodejs-qs
 Version:    0.6.5
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    Query string parser for Node.js
 # License text is included in Readme.md
 License:    MIT
@@ -16,10 +16,15 @@ Source0:    http://registry.npmjs.org/qs/-/qs-%{version}.tgz
 # version control repository.
 Source1:    tests-%{version}.tar.bz2
 Source10:   dl-tests.sh
+
 BuildArch:  noarch
+%if 0%{?fedora} >= 19
 ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
 %if 0%{?enable_tests}
 BuildRequires:  npm(expect.js)
@@ -55,7 +60,7 @@ cp -pr package.json index.js \
 
 %if 0%{?enable_tests}
 %check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
 %{nodejs_sitelib}/mocha/bin/mocha --ui bdd
 %endif
 
@@ -66,6 +71,9 @@ ln -sf %{nodejs_sitelib} .
 
 
 %changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.6.5-3
+- add ExclusiveArch logic
+
 * Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.6.5-2
 - restrict to compatible arches
 


More information about the scm-commits mailing list