[nodejs-ms] Restrict to compatible arches

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


commit 93e7966a74c4c8add07fa24b4e74ab7c126e578a
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Jul 28 10:33:31 2013 +0100

    Restrict to compatible arches

 nodejs-ms.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/dl-tests.sh b/dl-tests.sh
old mode 100755
new mode 100644
diff --git a/nodejs-ms.spec b/nodejs-ms.spec
index aa3520a..5391039 100644
--- a/nodejs-ms.spec
+++ b/nodejs-ms.spec
@@ -4,7 +4,7 @@
 
 Name:       nodejs-ms
 Version:    0.6.1
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    Tiny milliseconds conversion utility for Node.js
 License:    MIT
 Group:      System Environment/Libraries
@@ -18,9 +18,15 @@ Source10:   dl-tests.sh
 # Upstream have been informed about missing LICENSE file:
 # https://github.com/guille/ms.js/issues/21
 Source20:   LICENSE
+
 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)
@@ -58,7 +64,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 test/test.js
 %endif
 
@@ -69,6 +75,9 @@ ln -sf %{nodejs_sitelib} .
 
 
 %changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.6.1-2
+- restrict to compatible arches
+
 * Sat May 25 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.6.1-1
 - update to upstream release 0.6.1
 


More information about the scm-commits mailing list