The package rpms/nodejs-npm-run-path.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-npm-run-path.git/commit/?i....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 5c669ffcf763ef6995f946d8b349f93612b5fbbd
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Tue Jun 6 15:06:03 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..96f77fc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/npm-run-path-2.0.2.tgz
diff --git a/nodejs-npm-run-path.spec b/nodejs-npm-run-path.spec
new file mode 100644
index 0000000..5fef625
--- /dev/null
+++ b/nodejs-npm-run-path.spec
@@ -0,0 +1,63 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename npm-run-path
+
+# tests missing due to missing npm(ava)
+%global enable_tests 0
+
+Name: nodejs-npm-run-path
+Version: 2.0.2
+Release: 1%{?dist}
+Summary: Get your PATH prepended with locally installed binaries
+
+License: MIT
+URL:
https://github.com/sindresorhus/npm-run-path
+Source0:
https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# The test files are not included in the npm tarball.
+Source1:
https://raw.githubusercontent.com/sindresorhus/npm-run-path/v%{version}/t...
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+BuildRequires: npm(path-key)
+%if 0%{?enable_tests}
+BuildRequires: npm(ava)
+%endif
+
+%description
+Get your PATH prepended with locally installed binaries
+
+
+%prep
+%autosetup -n package
+# setup the tests
+cp -p %{SOURCE1} .
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json index.js \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%{_bindir}/ava
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc readme.md
+%license license
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Apr 19 2017 Jared Smith <jsmith(a)fedoraproject.org> - 2.0.2-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..1243f3f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (npm-run-path-2.0.2.tgz) =
949c596254f80d6fdb454b45875310216aa62f041f0319ea586e0784476332592b2589c99f426baf6bb79a0c6a696b1d88173be936244c6fe686b9d84eecdf1f
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..a67676e
--- /dev/null
+++ b/test.js
@@ -0,0 +1,14 @@
+import path from 'path';
+import test from 'ava';
+import m from './';
+
+test(t => {
+ t.is(
+ m({path: ''}).split(path.delimiter)[0],
+ path.join(__dirname, 'node_modules/.bin')
+ );
+ t.is(
+ m.env({env: {PATH: 'foo'}}).PATH.split(path.delimiter)[0],
+ path.join(__dirname, 'node_modules/.bin')
+ );
+});