The package rpms/nodejs-portfinder.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-portfinder.git/commit/?id=....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 80b059e6ea3b1c881b64b41846e8f873ccd43a0b
Author: Parag A Nemade <pnemade(a)fedoraproject.org>
Date: Fri May 5 18:45:10 2017 +0530
Initial commit (#1444822)
diff --git a/.gitignore b/.gitignore
index e69de29..58590ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.0.13.tar.gz
diff --git a/56.patch b/56.patch
new file mode 100644
index 0000000..fc5f3af
--- /dev/null
+++ b/56.patch
@@ -0,0 +1,45 @@
+From 07795bca63aa2b11ce51bb6fdd972191420c1904 Mon Sep 17 00:00:00 2001
+From: Tom Hughes <tom(a)compton.nu>
+Date: Wed, 3 May 2017 09:30:42 +0100
+Subject: [PATCH] Make test close listening sockets instead of just removing
+ them
+
+Without this I see the tests (with node 6.10.2) completing but then
+just hanging because the servers are still listening on the sockets.
+---
+ test/port-finder-socket-test.js | 20 +++++++++++++++-----
+ 1 file changed, 15 insertions(+), 5 deletions(-)
+
+diff --git a/test/port-finder-socket-test.js b/test/port-finder-socket-test.js
+index f90913b..e1e2440 100644
+--- a/test/port-finder-socket-test.js
++++ b/test/port-finder-socket-test.js
+@@ -54,13 +54,23 @@ function createServers (callback) {
+ }, callback);
+ }
+
++function stopServers(callback, index) {
++ if (index < servers.length) {
++ servers[index].close(function (err) {
++ if (err) {
++ callback(err, false);
++ } else {
++ stopServers(callback, index + 1);
++ }
++ });
++ } else {
++ callback(null, true);
++ }
++}
++
+ function cleanup(callback) {
+ fs.rmdirSync(badDir);
+- glob(path.resolve(socketDir, '*'), function (err, files) {
+- if (err) { callback(err); }
+- for (var i = 0; i < files.length; i++) { fs.unlinkSync(files[i]); }
+- callback(null, true);
+- });
++ stopServers(callback, 0);
+ }
+
+ vows.describe('portfinder').addBatch({
diff --git a/nodejs-portfinder.spec b/nodejs-portfinder.spec
new file mode 100644
index 0000000..d8aec17
--- /dev/null
+++ b/nodejs-portfinder.spec
@@ -0,0 +1,65 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+%global packagename portfinder
+
+Name: nodejs-%{packagename}
+Version: 1.0.13
+Release: 3%{?dist}
+Summary: A simple tool to find an open port or domain socket on the current machine
+License: MIT
+URL:
https://github.com/indexzero/node-%{packagename}
+Source0:
https://github.com/indexzero/node-%{packagename}/archive/v%{version}.tar.gz
+
+#
https://github.com/indexzero/node-portfinder/pull/56
+Patch0:
https://patch-diff.githubusercontent.com/raw/indexzero/node-portfinder/pu...
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(vows)
+BuildRequires: npm(async)
+BuildRequires: npm(debug)
+BuildRequires: npm(mkdirp)
+%endif
+
+%description
+A simple tool to find an open port or domain socket on the current machine.
+
+%prep
+%autosetup -n node-%{packagename}-%{version} -p1
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json lib \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+vows test/*-test.js --spec
+%endif
+
+%files
+%doc README.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed May 03 2017 Parag Nemade <pnemade AT redhat DOT com> - 1.0.13-3
+- Fix tests hanging by using upstream submitted patch by tomh
+
+* Wed May 03 2017 Parag Nemade <pnemade AT redhat DOT com> - 1.0.13-2
+- Enable tests and use github source
+
+* Mon Apr 24 2017 Parag Nemade <pnemade AT redhat DOT com> - 1.0.13-1
+- initial package
diff --git a/sources b/sources
index e69de29..e098cd1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (v1.0.13.tar.gz) =
a4c48055cf082f632aa537891f725a9db9ff81c289dc85ce503a5f43071a3b29660581fd032e4c7a99e6de6252d2d1f336bdfe9d93dc3baa4d122bda54d92175