[nodejs-runforcover] Restrict to compatible arches and enable tests
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Jul 28 22:05:34 UTC 2013
commit 4a173b9fa0a766cd8a0cfc8d2a016fbcfc90871a
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Jul 28 23:04:56 2013 +0100
Restrict to compatible arches and enable tests
nodejs-runforcover.spec | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/nodejs-runforcover.spec b/nodejs-runforcover.spec
index f7b6e51..568f394 100644
--- a/nodejs-runforcover.spec
+++ b/nodejs-runforcover.spec
@@ -1,13 +1,18 @@
%{?nodejs_find_provides_and_requires}
-#disable tests since nodejs-bunker isn't in the distro yet
-#%%global enable_tests 1
+%global enable_tests 1
Name: nodejs-runforcover
Version: 0.0.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Require plugin for JS code coverage
+
BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
Group: System Environment/Libraries
#no license file included; "new BSD" indicated in package.json
@@ -16,7 +21,7 @@ URL: https://github.com/chrisdickinson/node-runforcover
Source0: http://registry.npmjs.org/runforcover/-/runforcover-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(bunker)
@@ -42,8 +47,7 @@ cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/runforcover
%if 0%{?enable_tests}
%check
-mkdir -p node_modules
-ln -sf %{nodejs_sitelib}/bunker node_modules/bunker
+%nodejs_symlink_deps --check
%__nodejs test/index.js
%endif
@@ -56,6 +60,10 @@ rm -rf %buildroot
%doc README.markdown
%changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.2-4
+- restrict to compatible arches
+- enable tests
+
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.0.2-3
- add macro to enable dependency generation on EPEL6
More information about the scm-commits
mailing list