[nodejs-node-uuid] Add ExclusiveArch logic

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


commit de54b04526b6631afd280753e378784c832c8374
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Jul 28 15:47:19 2013 +0100

    Add ExclusiveArch logic

 nodejs-node-uuid.spec |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/nodejs-node-uuid.spec b/nodejs-node-uuid.spec
index 452e074..f6d21cb 100644
--- a/nodejs-node-uuid.spec
+++ b/nodejs-node-uuid.spec
@@ -4,16 +4,21 @@
 
 Name:       nodejs-node-uuid
 Version:    1.4.0
-Release:    4%{?dist}
+Release:    5%{?dist}
 Summary:    Simple and fast generation of RFC4122 (v1 and v4) UUIDs for Node.js
 License:    MIT
 Group:      System Environment/Libraries
 URL:        https://github.com/broofa/node-uuid
 Source0:    http://registry.npmjs.org/node-uuid/-/node-uuid-%{version}.tgz
+
 BuildArch:  noarch
+%if 0%{?fedora} >= 19
 ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
 %description
 This Node.js module provides simple and fast generation of RFC4122 (v1 and v4)
@@ -39,7 +44,7 @@ cp -pr package.json uuid.js \
 
 %if 0%{?enable_tests}
 %check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
 %__nodejs test/test.js
 %endif
 
@@ -50,6 +55,9 @@ ln -sf %{nodejs_sitelib} .
 
 
 %changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.4.0-5
+- add ExclusiveArch logic
+
 * Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.4.0-4
 - restrict to compatible arches
 


More information about the scm-commits mailing list