The package rpms/nodejs-path-key.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-path-key.git/commit/?id=07....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 079f64a6bbdb2b23479c06acdd97161ec12dfc3d
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:37:23 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..8d1e0c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/path-key-2.0.1.tgz
diff --git a/nodejs-path-key.spec b/nodejs-path-key.spec
new file mode 100644
index 0000000..43bb2e5
--- /dev/null
+++ b/nodejs-path-key.spec
@@ -0,0 +1,62 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename path-key
+
+# tests missing due to missing npm(ava)
+%global enable_tests 0
+
+Name: nodejs-path-key
+Version: 2.0.1
+Release: 1%{?dist}
+Summary: Get the PATH environment variable key cross-platform
+
+License: MIT
+URL:
https://github.com/sindresorhus/path-key
+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/path-key/v%{version}/test.js
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: npm(ava)
+%endif
+
+%description
+Get the PATH environment variable key cross-platform
+
+
+%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.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..1b383c3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (path-key-2.0.1.tgz) =
7c41c62824a65120cfbf8ba88fc0250fe8e83e5ab7a5e343f87458cb1173e0a3f0e33f76e92fdbf2b22e16cd85609837070b3125fe80f7fdde21d2da602fbd0f
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..4a19bbc
--- /dev/null
+++ b/test.js
@@ -0,0 +1,10 @@
+import test from 'ava';
+import m from './';
+
+test(t => {
+ t.is(m().toUpperCase(), 'PATH');
+ t.is(m({env: {PATH: ''}}), 'PATH');
+ t.is(m({env: {Path: ''}, platform: 'win32'}), 'Path');
+ t.is(m({env: {}, platform: 'darwin'}), 'PATH');
+ t.is(m({env: {}, platform: 'win32'}), 'Path');
+});