[nodejs-sax] Initial commit

Jamie Nguyen jamielinux at fedoraproject.org
Thu Feb 21 07:35:09 UTC 2013


commit 7156727a533a48113e92cf3272046e0554fbf029
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Thu Feb 21 07:34:58 2013 +0000

    Initial commit

 .gitignore      |    1 +
 nodejs-sax.spec |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..923c4f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sax-0.5.2.tgz
diff --git a/nodejs-sax.spec b/nodejs-sax.spec
new file mode 100644
index 0000000..3fa9a9d
--- /dev/null
+++ b/nodejs-sax.spec
@@ -0,0 +1,61 @@
+%global enable_tests 1
+
+Name:       nodejs-sax
+Version:    0.5.2
+Release:    1%{?dist}
+Summary:    A streaming SAX-style XML parser in JavaScript for Node.js
+License:    BSD and W3C
+Group:      System Environment/Libraries
+URL:        https://github.com/isaacs/sax-js
+Source0:    http://registry.npmjs.org/sax/-/sax-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%description
+This is a SAX-style streaming XML parser in JavaScript for Node.js.
+
+It is:
+ - A very simple tool to parse through an XML string.
+ - A stepping stone to a streaming HTML parser.
+ - A handy way to deal with RSS and other mostly-ok-but-kinda-broken XML docs.
+
+
+%prep
+%setup -q -n package
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/sax
+cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/sax
+rm -f examples/switch-bench.js
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%__nodejs test/index.js
+%endif
+
+
+%files
+%doc AUTHORS LICENSE LICENSE-W3C.html README.md examples/
+%{nodejs_sitelib}/sax
+
+
+%changelog
+* Thu Feb 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.5.2-1
+- project relicensed from MIT to BSD
+- include newly distributed LICENSE-w3C.html
+
+* Wed Feb 20 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.5.1-2
+- fix %%summary and %%description
+- add W3C license
+
+* Mon Feb 11 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.5.1-1
+- initial package
diff --git a/sources b/sources
index e69de29..9cd2972 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a05717274564764159d713832fee1b9  sax-0.5.2.tgz


More information about the scm-commits mailing list