diff --git a/.gitignore b/.gitignore index e69de29..5364bb4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/winston-0.7.2.tgz diff --git a/nodejs-winston.spec b/nodejs-winston.spec new file mode 100644 index 0000000..74995f7 --- /dev/null +++ b/nodejs-winston.spec @@ -0,0 +1,87 @@ +%{?nodejs_find_provides_and_requires} + +# Not all dependencies have been satisfied yet. +%global enable_tests 0 + +Name: nodejs-winston +Version: 0.7.2 +Release: 1%{?dist} +Summary: A multiple transport asynchronous logging library for Node.js +License: MIT +Group: System Environment/Libraries +URL: https://github.com/flatiron/winston +Source0: http://registry.npmjs.org/winston/-/winston-%{version}.tgz +BuildArch: noarch + +BuildRequires: nodejs-devel + +%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 '{}' \; +%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 +ln -sf %{nodejs_sitelib} . +%{nodejs_sitelib}/vows/bin/vows --spec --isolate +%endif + + +%files +%doc CHANGELOG.md LICENSE README.md docs/ examples/ +%{nodejs_sitelib}/winston + + +%changelog +* 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 index e69de29..dfe7d1d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +75f13a084b01c7022f277d148e61c4f9 winston-0.7.2.tgz