diff --git a/.gitignore b/.gitignore index e69de29..1578a9c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/expresso-0.9.2.tgz diff --git a/expresso.1 b/expresso.1 new file mode 100644 index 0000000..3e319cd --- /dev/null +++ b/expresso.1 @@ -0,0 +1,57 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.12. +.TH EXPRESSO "1" "February 2013" "expresso 0.9.2" "User Commands" +.SH NAME +expresso \- A JavaScript TDD framework written for Node.js +.SH SYNOPSIS +Usage: expresso [options] +.SH DESCRIPTION +Expresso is a JavaScript test-driven development (TDD) framework written for +Node.js. Expresso is extremely fast, and is packed with features including +additional assertion methods and code coverage reporting. +.SH OPTIONS +.TP +\fB\-g\fR, \fB\-\-growl\fR +Enable growl notifications +.TP +\fB\-c\fR, \fB\-\-coverage\fR +Generate and report test coverage +.TP +\fB\-j\fR, \fB\-\-json\fR PATH +Used in conjunction with \fB\-\-coverage\fR, ouput JSON coverage to PATH +.TP +\fB\-q\fR, \fB\-\-quiet\fR +Suppress coverage report if 100% +.TP +\fB\-t\fR, \fB\-\-timeout\fR MS +Timeout in milliseconds, defaults to 2000 +.TP +\fB\-r\fR, \fB\-\-require\fR PATH +Require the given module path +.TP +\fB\-o\fR, \fB\-\-only\fR TESTS +Execute only the comma sperated TESTS (can be set several times) +.TP +\fB\-m\fR, \fB\-\-match\fR EXP +Execute only tests matching a given regular expression (can be set several times) +.TP +\fB\-p\fR, \fB\-\-port\fR NUM +Port number for test servers, starts at 5555 +.TP +\fB\-s\fR, \fB\-\-serial\fR +Execute tests serially +.TP +\fB\-b\fR, \fB\-\-boring\fR +Suppress ansi\-escape colors +.TP +\fB\-v\fR, \fB\-\-version\fR +Output version number +.TP +\fB\-h\fR, \fB\-\-help\fR +Display help information +.SH AUTHORS +The main author of expresso is TJ Holowaychuk <\fBtj@vision-media.ca\fR>. +For a more complete list of contributors, see the GitHub page at +<\fBhttps://github.com/visionmedia/expresso\fR> +.SH REPORTING BUGS +Please report bugs on the GitHub issue tracker: +<\fBhttps://github.com/visionmedia/expresso/issues\fR> diff --git a/expresso.spec b/expresso.spec new file mode 100644 index 0000000..e983a2f --- /dev/null +++ b/expresso.spec @@ -0,0 +1,72 @@ +%global enable_tests 1 + +Name: expresso +Version: 0.9.2 +Release: 3%{?dist} +Summary: A lightweight, fast, test-driven development (TDD) framework for Node.js +License: MIT +Group: System Environment/Libraries +URL: https://github.com/visionmedia/expresso +Source0: http://registry.npmjs.org/expresso/-/expresso-%{version}.tgz +Source1: expresso.1 +BuildArch: noarch + +BuildRequires: nodejs-devel + +%description +%summary + + +%prep +%setup -q -n package +rm -rf deps/ + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/expresso +cp -pr package.json \ + %{buildroot}%{nodejs_sitelib}/expresso +mkdir -p %{buildroot}{%nodejs_sitelib}/expresso/bin +install -p -D -m0755 bin/expresso \ + %{buildroot}%{nodejs_sitelib}/expresso/bin/expresso +mkdir -p %{buildroot}%{_bindir} +ln -s %{nodejs_sitelib}/expresso/bin/expresso %{buildroot}/%{_bindir}/expresso + +mkdir -p %{buildroot}%{_mandir}/man1 +install -p -D -m0644 %{SOURCE1} \ + %{buildroot}%{_mandir}/man1/expresso.1 + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} +%check +rm -f test/bar.test.js +rm -f test/foo.test.js +bin/expresso --growl +bin/expresso -I lib --cov +bin/expresso --serial test/serial/*.test.js +%endif + + +%files +%doc History.md Readme.md docs/ +%{nodejs_sitelib}/expresso +%{_bindir}/expresso +%{_mandir}/man1/expresso.1* + + +%changelog +* Sun Feb 24 2013 Jamie Nguyen - 0.9.2-3 +- make sure bundled jscoverage is purged +- add man page + +* Thu Feb 14 2013 Jamie Nguyen - 0.9.2-2 +- rename from nodejs-expresso to just expresso + +* Thu Feb 14 2013 Jamie Nguyen - 0.9.2-1 +- initial package diff --git a/sources b/sources index e69de29..ea0b11c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a052669cbc098c966d91196160a0b8b9 expresso-0.9.2.tgz