[nodejs-watchit] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Jun 3 15:02:38 UTC 2013


commit 1fd018aef434f7972954894eb9bbb553c4c4a5f4
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Jun 3 16:02:05 2013 +0100

    Initial import

 .gitignore          |    1 +
 LICENSE             |   18 ++++++++++++
 nodejs-watchit.spec |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 4 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f65cf43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/watchit-0.0.4.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c9b44cb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/nodejs-watchit.spec b/nodejs-watchit.spec
new file mode 100644
index 0000000..8cff49d
--- /dev/null
+++ b/nodejs-watchit.spec
@@ -0,0 +1,75 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+Name:       nodejs-watchit
+Version:    0.0.4
+Release:    4%{?dist}
+Summary:    A sensible wrapper around fs.watch for Node.js
+# Upstream have been informed about missing LICENSE:
+# https://github.com/TrevorBurnham/Watchit/issues/6
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/TrevorBurnham/Watchit
+Source0:    http://registry.npmjs.org/watchit/-/watchit-%{version}.tgz
+Source1:    LICENSE
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+BuildRequires:  npm(docco)
+
+# Currently to compile the .coffee files, watchit depends on itself,
+# which is not yet available.
+%if 0%{?enable_tests}
+BuildRequires:  coffee-script
+BuildRequires:  npm(expect.js)
+BuildRequires:  npm(mocha)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+cp -a %{SOURCE1} .
+
+
+%build
+%{nodejs_sitelib}/docco/bin/docco ./src/watchit.coffee
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/watchit
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/watchit
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+ln -sf %{nodejs_sitelib} .
+# Broken test which upstream haven't fixed:
+# https://github.com/TrevorBurnham/Watchit/issues/5
+rm -f test/include.coffee
+%{nodejs_sitelib}/mocha/bin/mocha --compilers coffee:coffee-script \
+    --require test/common.js --growl
+%endif
+
+
+%files
+%doc LICENSE README.mdown docs/
+%{nodejs_sitelib}/watchit
+
+
+%changelog
+* Sat May 25 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.4-3
+- include copy of MIT license to comply with license requirements while
+  waiting for upstream themselves to include a copy
+
+* Sun Feb 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.4-2
+- amend mocha options
+
+* Sun Feb 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.4-1
+- initial package
diff --git a/sources b/sources
index e69de29..7a22457 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07a88fa0cdca64612cd7c3c91eee617e  watchit-0.0.4.tgz


More information about the scm-commits mailing list