From f2cba6cf89ee723cd51a934c56cb5a9f74943c83 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Aug 18 2020 12:46:46 +0000 Subject: Retired: Fails to install --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index dc1ab96..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/winston-0.7.2.tgz -/winston-0.7.3.tgz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5e251b6 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Retired: Fails to install diff --git a/nodejs-winston-0.7.2-Remove-stream-tests.patch b/nodejs-winston-0.7.2-Remove-stream-tests.patch deleted file mode 100644 index c0d04ab..0000000 --- a/nodejs-winston-0.7.2-Remove-stream-tests.patch +++ /dev/null @@ -1,90 +0,0 @@ -From ea1cd95a6df69d8159b1493663698b74ca41d4df Mon Sep 17 00:00:00 2001 -From: Jamie Nguyen -Date: Tue, 20 Aug 2013 22:28:43 +0100 -Subject: [PATCH] Remove stream tests - ---- - test/transports/transport.js | 60 -------------------------------------------- - 1 file changed, 60 deletions(-) - -diff --git a/test/transports/transport.js b/test/transports/transport.js -index fe1dbef..ca33475 100644 ---- a/test/transports/transport.js -+++ b/test/transports/transport.js -@@ -31,9 +31,6 @@ module.exports = function (transport, options) { - case 'file': - helpers.assertFile(transport); - break; -- case 'webhook': -- helpers.assertWebhook(transport); -- break; - case 'couchdb': - helpers.assertCouchdb(transport); - break; -@@ -47,63 +44,6 @@ module.exports = function (transport, options) { - assert.isNotNull(logged); - } - ), -- 'the stream() method': { -- 'using no options': { -- 'topic': function () { -- if (!transport.stream) return; -- -- logger.log('info', 'hello world', {}); -- -- var cb = this.callback, -- j = 10, -- i = 10, -- results = [], -- stream = logger.stream(); -- -- stream.on('log', function (log) { -- results.push(log); -- results.stream = stream; -- if (!--j) cb(null, results); -- }); -- -- stream.on('error', function (err) { -- j = -1; //don't call the callback again -- cb(err); -- }); -- -- while (i--) logger.log('info', 'hello world ' + i, {}); -- }, -- 'should stream logs': function (err, results) { -- if (!transport.stream) return; -- assert.isNull(err); -- results.forEach(function (log) { -- assert.ok(log.message.indexOf('hello world') === 0 -- || log.message.indexOf('test message') === 0); -- }); -- results.stream.destroy(); -- } -- }, -- 'using the `start` option': { -- 'topic': function () { -- if (!transport.stream) return; -- -- var cb = this.callback, -- stream = logger.stream({ start: 0 }); -- -- stream.on('log', function (log) { -- log.stream = stream; -- if (cb) cb(null, log); -- cb = null; -- }); -- }, -- 'should stream logs': function (err, log) { -- if (!transport.stream) return; -- assert.isNull(err); -- assert.isNotNull(log.message); -- log.stream.destroy(); -- } -- } -- }, - 'after the logs have flushed': { - topic: function () { - setTimeout(this.callback, 1000); --- -1.8.3.1 - diff --git a/nodejs-winston-0.7.3-Shutdown-server.patch b/nodejs-winston-0.7.3-Shutdown-server.patch deleted file mode 100644 index 12aa8dd..0000000 --- a/nodejs-winston-0.7.3-Shutdown-server.patch +++ /dev/null @@ -1,37 +0,0 @@ -commit ffe5582cf09a83d255b51298470d67b222e1cd2b -Author: Tom Hughes -Date: Sat Nov 21 15:58:24 2015 +0000 - - Shutdown web server after test to avoid hang - -diff --git a/test/container-test.js b/test/container-test.js -index 2fcc26a..22f2a62 100644 ---- a/test/container-test.js -+++ b/test/container-test.js -@@ -72,11 +72,11 @@ vows.describe('winston/container').addBatch({ - }, - "the get() method": { - topic: function (container) { -- var server = http.createServer(function (req, res) { -+ this.server = http.createServer(function (req, res) { - res.end(); - }); - -- server.listen(this.port, this.callback.bind(this, null)); -+ this.server.listen(this.port, this.callback.bind(this, null)); - }, - "should add the logger correctly": function () { - this.someLogger = this.container.get('some-logger'); -@@ -92,8 +92,10 @@ vows.describe('winston/container').addBatch({ - assert.instanceOf(this.someOtherLogger.transports['webhook'], winston.transports.Webhook); - assert.strictEqual(this.someOtherLogger.transports['webhook'], this.transports[0]); - assert.strictEqual(this.someOtherLogger.transports['webhook'], this.someLogger.transports['webhook']); -+ -+ this.server.close(); - } - } - } - } --}).export(module); -\ No newline at end of file -+}).export(module); diff --git a/nodejs-winston.spec b/nodejs-winston.spec deleted file mode 100644 index f1871b8..0000000 --- a/nodejs-winston.spec +++ /dev/null @@ -1,148 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global enable_tests 1 - -Name: nodejs-winston -Version: 0.7.3 -Release: 14%{?dist} -Summary: A multiple transport asynchronous logging library for Node.js -License: MIT -URL: https://github.com/flatiron/winston -Source0: http://registry.npmjs.org/winston/-/winston-%{version}.tgz - -Patch0: %{name}-0.7.2-Remove-stream-tests.patch -Patch1: %{name}-0.7.3-Shutdown-server.patch - -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif - -BuildRequires: nodejs-packaging - -%if 0%{?enable_tests} -BuildRequires: npm(async) -BuildRequires: npm(colors) -BuildRequires: npm(combined-stream) -BuildRequires: npm(cycle) -BuildRequires: npm(eyes) -BuildRequires: npm(pkginfo) -BuildRequires: npm(stack-trace) -BuildRequires: npm(vows) -%endif - -%description -This module is a multiple transport asynchronous logging library for Node.js. - -Winston is designed to be a simple and universal logging library with support -for multiple transports. A transport is essentially a storage device for your -logs. Each instance of a winston logger can have multiple transports -configured at different levels. For example, one may want error logs to be -stored in a persistent remote location (like a database), but all logs output -to the console or a local file. - -There also seemed to be a lot of logging libraries out there that coupled -their implementation of logging (ie, how the logs are stored/indexed) to the -API that they exposed to the programmer. This library aims to decouple those -parts of the process to make it more flexible and extensible. - - -%prep -%setup -q -n package -find . -type f -iname '*.js' -exec chmod -x '{}' \; -%patch0 -p1 -%patch1 -p1 -%nodejs_fixdep async '^1.5.0' -%nodejs_fixdep colors '^1.1.2' -%nodejs_fixdep request '^2.14' - - -%build -#nothing to do - - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/winston -cp -pr package.json lib/ \ - %{buildroot}%{nodejs_sitelib}/winston - -%nodejs_symlink_deps - - -%if 0%{?enable_tests} -%check -%nodejs_symlink_deps --check -rm -f test/transports/webhook-test.js -%{nodejs_sitelib}/vows/bin/vows --spec --isolate -%endif - - -%files -%doc CHANGELOG.md LICENSE README.md docs/ examples/ -%{nodejs_sitelib}/winston - - -%changelog -* Tue Jul 28 2020 Fedora Release Engineering - 0.7.3-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 0.7.3-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 0.7.3-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 0.7.3-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jul 19 2018 Tom Hughes - 0.7.3-10 -- Update npm(request) dependency - -* Fri Jul 13 2018 Fedora Release Engineering - 0.7.3-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 0.7.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 0.7.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.7.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Thu Feb 04 2016 Fedora Release Engineering - 0.7.3-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Sat Nov 21 2015 Tom Hughes - 0.7.3-4 -- Update npm(async) and npm(colors) dependencies -- Patch tests to avoid hang - -* Wed Jun 17 2015 Fedora Release Engineering - 0.7.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.7.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Fri Apr 18 2014 Jamie Nguyen - 0.7.3-2 -- update to upstream release 0.7.3 - -* Tue Aug 20 2013 Jamie Nguyen - 0.7.2-3 -- restrict to compatible arches - -* Sat Aug 03 2013 Fedora Release Engineering - 0.7.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Mon Jul 01 2013 Jamie Nguyen - 0.7.2-1 -- update to upstream release 0.7.2 -- fix spelling in %%summary - -* Fri Jun 07 2013 Jamie Nguyen - 0.7.1-2 -- remove execute bit from files that shouldn't have it - -* Sun May 26 2013 Jamie Nguyen - 0.7.1-1 -- update to upstream release 0.7.1 - -* Wed Feb 13 2013 Jamie Nguyen - 0.6.2-1 -- initial package diff --git a/sources b/sources deleted file mode 100644 index e795821..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -6217608c75cc6b66a9bcb1a7495b078b winston-0.7.3.tgz