Name: nodejs-winston Version: 3.2.1 Release: 2%{?dist} Summary: A multiple transport asynchronous logging library for Node.js License: MIT URL: https://github.com/flatiron/winston Source0: https://github.com/flatiron/winston/archive/%{version}/winston-%{version}.tar.gz # Winston doesn't seem to work out of the box with async 1.5.1 # and wants a newer one. It looks as though the main difference is the # way we import the relevant functions, so... hopefully this works. Patch0: winston-async-1.5.1-compatibility.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging # winston 3.2 needs async 2+, and DOES NOT work with async 1.5.1. # Upgrading async is not really an option without upgrading huge chunks # of Fedora, I'm afraid. So I created a different, parallel-installable # version. Patch0 renames requires() appropriately. #BuildRequires: nodejs-async3 BuildRequires: npm(async) BuildRequires: npm(abstract-winston-transport) BuildRequires: npm(assume) BuildRequires: npm(colors) BuildRequires: npm(cross-spawn-async) BuildRequires: npm(diagnostics) BuildRequires: npm(is-stream) BuildRequires: npm(logform) BuildRequires: npm(one-time) BuildRequires: npm(rimraf) BuildRequires: npm(readable-stream) BuildRequires: npm(split2) BuildRequires: npm(stack-trace) BuildRequires: npm(std-mocks) BuildRequires: npm(through2) BuildRequires: npm(triple-beam) BuildRequires: npm(winston-transport) BuildRequires: npm(mocha) %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 %autosetup -n winston-%{version} -p1 # This required a patch to make work. %nodejs_fixdep async # These appeared to just work! %nodejs_fixdep diagnostics %nodejs_fixdep is-stream %nodejs_fixdep one-time %nodejs_fixdep readable-stream # Remove tests requiring winston-compat, because winston-compat's # tests require winston. rm -f test/logger-legacy.test.js # These tests require nodejs-hock (and url-equal), not available in Fedora. rm -f test/transports/http.test.js %build # Nothing to do. %install mkdir -p %{buildroot}%{nodejs_sitelib}/winston cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/winston cp -pr index.d.ts %{buildroot}%{nodejs_sitelib}/winston %nodejs_symlink_deps %check %nodejs_symlink_deps --check %__nodejs -e "require('./')" mocha test/*.test.js test/**/*.test.js %files %doc CHANGELOG.md LICENSE README.md docs/ examples/ %{nodejs_sitelib}/winston %changelog * Fri Jun 05 2020 Ben Rosser - 3.2.1-2 - Fix compatibility with async 1.5.1. * Fri Apr 24 2020 Ben Rosser - 3.2.1-1 - Updated to a much newer version, 3.2.1. * 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