[nodejs-diff] Initial commit

Jamie Nguyen jamielinux at fedoraproject.org
Sun Feb 17 07:06:38 UTC 2013


commit 8d98992c71fe1506031957e13a6581d5693e4327
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Feb 17 07:06:30 2013 +0000

    Initial commit

 .gitignore       |    1 +
 nodejs-diff.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..638d559 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/diff-1.0.4.tgz
diff --git a/nodejs-diff.spec b/nodejs-diff.spec
new file mode 100644
index 0000000..0aa9cdf
--- /dev/null
+++ b/nodejs-diff.spec
@@ -0,0 +1,53 @@
+%global enable_tests 0
+
+Name:       nodejs-diff
+Version:    1.0.4
+Release:    1%{?dist}
+Summary:    A JavaScript text diff implementation for Node.js
+License:    BSD
+Group:      System Environment/Libraries
+URL:        https://github.com/kpdecker/jsdiff
+Source0:    http://registry.npmjs.org/diff/-/diff-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(should)
+%endif
+
+%description
+%summary
+
+
+%prep
+%setup -q -n package
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/diff
+cp -pr package.json diff.js \
+    %{buildroot}%{nodejs_sitelib}/diff
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%{nodejs_sitelib}/mocha/bin/mocha test/*.js
+%endif
+
+
+%files
+%doc LICENSE README.md index.html style.css
+%{nodejs_sitelib}/diff
+
+
+%changelog
+* Thu Feb 14 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.4-1
+- initial package
diff --git a/sources b/sources
index e69de29..41d6d92 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a508604accdee0b39a8fb8bcad5e7e1a  diff-1.0.4.tgz


More information about the scm-commits mailing list