The package rpms/nodejs-hook-std.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-hook-std.git/commit/?id=7b5ca....
Change: -ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change: ============
commit 7b5ca51962d789ba7adb3f64413697d9839213db Author: Miro Hrončok miro@hroncok.cz Date: Mon Jan 4 11:08:29 2021 +0100
Orphaned for 6+ weeks
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 37e4580..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/hook-std-0.4.0.tgz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/nodejs-hook-std.spec b/nodejs-hook-std.spec deleted file mode 100644 index e752196..0000000 --- a/nodejs-hook-std.spec +++ /dev/null @@ -1,87 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename hook-std - -# tests missing due to missing npm(ava) -%global enable_tests 0 - -Name: nodejs-hook-std -Version: 0.4.0 -Release: 8%{?dist} -Summary: Hook and modify stdout/stderr - -License: MIT -URL: https://github.com/sindresorhus/hook-std -Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... -# The test files are not included in the npm tarball. -Source1: https://raw.githubusercontent.com/sindresorhus/hook-std/v%%7Bversion%7D/test... - -ExclusiveArch: %{nodejs_arches} noarch -BuildArch: noarch - -BuildRequires: nodejs-packaging -%if 0%{?enable_tests} -BuildRequires: npm(ava) -%endif - -%description -Hook and modify stdout/stderr - - -%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 *.md -%license license -%{nodejs_sitelib}/%{packagename} - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-8 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 0.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Sep 27 2017 Jared Smith jsmith@fedoraproject.org - 0.4.0-1 -- Update to upstream 0.4.0 release - -* Wed Apr 19 2017 Jared Smith jsmith@fedoraproject.org - 0.3.0-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index 9781c4f..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (hook-std-0.4.0.tgz) = 53f8b4b57d692ffe9c7b425790b2541232b550c3da1c85ce44ab5e137009619f153c1d237ad2c38fa4c05fc2209fd0a717815688aa211c66e0cd93e8fce539ad diff --git a/test.js b/test.js deleted file mode 100644 index 6f7d409..0000000 --- a/test.js +++ /dev/null @@ -1,215 +0,0 @@ -import test from 'ava'; -import m from '.'; - -const stdout = process.stdout; -const stderr = process.stderr; - -function restore() { - // This craziness is required because these properties only have getters by default - Object.defineProperties(process, { - stdout: { - configurable: true, - writable: true, - value: stdout - }, - stderr: { - configurable: true, - writable: true, - value: stderr - } - }); -} - -test.beforeEach(restore); -test.afterEach(restore); - -test.serial.cb('hook stdout & stderr', t => { - t.plan(2); - - let i = 0; - - const unhook = m(str => { - if (str === 'foo' || str === 'bar') { - t.pass(); - } - - if (++i === 2) { - unhook(); - t.end(); - } - }); - - process.stdout.write('foo'); - process.stderr.write('bar'); -}); - -test.serial.cb('hook stdout', t => { - t.plan(1); - - const unhook = m.stdout(str => { - t.is(str, 'foo'); - unhook(); - t.end(); - }); - - process.stdout.write('foo'); -}); - -test.serial.cb('hook stderr', t => { - t.plan(1); - - const unhook = m.stderr(str => { - t.is(str, 'foo'); - unhook(); - t.end(); - }); - - process.stderr.write('foo'); -}); - -function loggingWrite(log, retVal) { - return (...items) => { - while (items[items.length - 1] === undefined) { - items.pop(); - } - - log.push(items); - - return retVal(); - }; -} - -test.serial('passes through the return value of the underlying write call', t => { - const log = []; - let returnValue = false; - - process.stdout = { - write: loggingWrite(log, () => returnValue) - }; - - m.stdout({silent: false}, str => str); - - t.false(process.stdout.write('foo')); - returnValue = true; - t.true(process.stdout.write('bar')); - t.deepEqual(log, [['foo'], ['bar']]); -}); - -test.serial('if silent, returns true by default', t => { - const log = []; - - process.stdout = { - write: () => t.fail() - }; - - m.stdout(str => { - log.push(str); - return str; - }); - - t.true(process.stdout.write('foo')); - t.deepEqual(log, ['foo']); -}); - -test.serial('if silent, callback can return a boolean', t => { - const log = []; - let returnValue = true; - - process.stdout = { - write: () => t.fail() - }; - - m.stdout(str => { - log.push(str); - return returnValue; - }); - - t.true(process.stdout.write('foo')); - returnValue = false; - t.false(process.stdout.write('bar')); - t.deepEqual(log, ['foo', 'bar']); -}); - -test.serial('callback can return a buffer', t => { - const log = []; - - process.stdout = { - write: loggingWrite(log, () => true) - }; - - m.stdout({silent: false}, str => Buffer.from(str)); - - t.true(process.stdout.write('foo')); - t.true(process.stdout.write('bar')); - t.deepEqual(log, [[Buffer.from('foo')], [Buffer.from('bar')]]); -}); - -test.serial('callback receives encoding type', t => { - const log = []; - - process.stdout = { - write: () => t.fail() - }; - - m.stdout(loggingWrite(log, () => true)); - - t.true(process.stdout.write('a9fe', 'hex')); - t.true(process.stdout.write('a234', 'hex')); - t.deepEqual(log, [['a9fe', 'hex'], ['a234', 'hex']]); -}); - -test.serial('if no options are assigned, behave as silent', t => { - const log = []; - let returnValue = false; - - process.stdout = { - write: loggingWrite(log, () => returnValue) - }; - - m.stdout(str => str); - - process.stdout.write('foo'); - returnValue = true; - t.deepEqual(log, []); -}); - -test.serial('if once option is true, only the first write is silent', t => { - let returnValue; - const log = []; - - process.stdout = { - write: loggingWrite(log, () => returnValue) - }; - - m.stdout({once: true}, str => str); - - process.stdout.write('foo'); - process.stdout.write('bar'); - process.stdout.write('unicorn'); - - t.deepEqual(log, [['bar'], ['unicorn']]); -}); - -test.serial('if once option is true and silent is false, hook only prints the first write and std prints all writes', t => { - let hookReturnValue; - const log = []; - - process.stdout = { - write: loggingWrite(log, () => true) - }; - - m.stdout({silent: false, once: true}, str => { - hookReturnValue = str; - return str; - }); - - process.stdout.write('foo'); - t.deepEqual(hookReturnValue, 'foo'); - t.deepEqual(log, [['foo']]); - - hookReturnValue = false; - - process.stdout.write('bar'); - t.deepEqual(hookReturnValue, false); - t.deepEqual(log, [['foo'], ['bar']]); -});
arch-excludes@lists.fedoraproject.org