[nodejs-package] Restrict to compatible arches
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Jul 28 15:13:11 UTC 2013
commit f7203fbf750f0a47055d6b88dc4c6ce4bb8c4181
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Jul 28 16:12:51 2013 +0100
Restrict to compatible arches
nodejs-package.spec | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/nodejs-package.spec b/nodejs-package.spec
index 8ac01c6..dbd713b 100644
--- a/nodejs-package.spec
+++ b/nodejs-package.spec
@@ -4,16 +4,22 @@
Name: nodejs-package
Version: 1.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Provides an easy way to export package.json data
# License text is contained within Readme.md
License: MIT
Group: System Environment/Libraries
URL: https://github.com/vesln/package
Source0: http://registry.npmjs.org/package/-/package-%{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
%if 0%{?enable_tests}
BuildRequires: npm(mocha)
@@ -42,7 +48,7 @@ cp -pr package.json lib/ \
%if 0%{?enable_tests}
%check
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha -R spec --require should \
$(find test -iname '*.test.js')
%endif
@@ -54,5 +60,8 @@ NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha -R spec --require should \
%changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.1-2
+- restrict to compatible arches
+
* Fri Jun 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.1-1
- initial package
More information about the scm-commits
mailing list