%{?scl:%scl_package nodejs-%{npm_name}} %{!?scl:%global pkg_name %{name}} %global npm_name winston Name: %{?scl_prefix}nodejs-winston Version: 3.2.1 Release: 1%{?dist} Summary: A logger for just about everything License: MIT Group: Development/Libraries URL: https://github.com/winstonjs/winston#readme Source0: https://registry.npmjs.org/winston/-/winston-%{version}.tgz %if 0%{?!scl:1} BuildRequires: nodejs-packaging %endif Requires: npm(async) >= 2.6.1 Requires: npm(async) < 3.0.0 Requires: npm(diagnostics) >= 1.1.1 Requires: npm(diagnostics) < 2.0.0 Requires: npm(is-stream) >= 1.1.0 Requires: npm(is-stream) < 2.0.0 Requires: npm(logform) >= 2.1.1 Requires: npm(logform) < 3.0.0 Requires: npm(one-time) = 0.0.4 Requires: npm(readable-stream) >= 3.1.1 Requires: npm(readable-stream) < 4.0.0 Requires: npm(stack-trace) >= 0.0.0 Requires: npm(stack-trace) < 0.1.0 Requires: npm(triple-beam) >= 1.3.0 Requires: npm(triple-beam) < 2.0.0 Requires: npm(winston-transport) >= 4.3.0 Requires: npm(winston-transport) < 5.0.0 BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Provides: %{?scl_prefix}npm(%{npm_name}) = %{version} %description %{summary} %prep %setup -q -n package %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr appveyor.yml %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr dist %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr lib %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr test %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr tsconfig.json %{buildroot}%{nodejs_sitelib}/%{npm_name} %nodejs_symlink_deps %check %{nodejs_symlink_deps} --check %files %{nodejs_sitelib}/%{npm_name} %license LICENSE %doc CHANGELOG.md %doc README.md %changelog