[nodejs-libxmljs] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Mar 18 18:29:08 UTC 2013


commit 227a7f3680876b2e709bf06d4a8cc6b5bd82ba72
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Mar 18 18:28:58 2013 +0000

    Initial import

 .gitignore           |    1 +
 nodejs-libxmljs.spec |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cecd628 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libxmljs-0.7.1.tgz
diff --git a/nodejs-libxmljs.spec b/nodejs-libxmljs.spec
new file mode 100644
index 0000000..2c14e40
--- /dev/null
+++ b/nodejs-libxmljs.spec
@@ -0,0 +1,72 @@
+%global enable_tests 0
+
+Name:       nodejs-libxmljs
+Version:    0.7.1
+Release:    1%{?dist}
+Summary:    Node.js module that provides libxml bindings for the v8 javascript engine
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/polotek/libxmljs
+Source0:    http://registry.npmjs.org/libxmljs/-/libxmljs-%{version}.tgz
+
+BuildRequires:  nodejs-devel
+BuildRequires:  node-gyp
+BuildRequires:  libxml2-devel
+
+ExclusiveArch: %{ix86} x86_64 %{arm}
+# Replace with this when it gets fixed.
+# ExclusiveArch: %%{nodejs_arches}
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(bindings)
+BuildRequires:  npm(nodeunit)
+%endif
+
+%description
+%summary
+
+
+%prep
+%setup -q -n package
+%nodejs_fixdep bindings '1.x'
+
+
+%build
+export CXXFLAGS="%{optflags}"
+node-gyp configure
+node-gyp build
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/libxmljs
+cp -pr package.json index.js lib/ \
+    %{buildroot}%{nodejs_sitelib}/libxmljs
+mkdir -p %{buildroot}%{nodejs_sitelib}/libxmljs/build
+install -p -D -m0755 build/Release/xmljs.node \
+    %{buildroot}%{nodejs_sitelib}/libxmljs/build/xmljs.node
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+cp -pr %{nodejs_sitelib} .
+%__nodejs --expose_gc %{nodejs_sitelib}/nodeunit/bin/nodeunit test
+%endif
+
+
+%files
+%doc LICENSE README.md docs/ examples/
+%{nodejs_sitelib}/libxmljs
+
+
+%changelog
+* Sun Mar 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.7.1-1
+- update to upstream release 0.7.1
+- make the versioned dependency on npm(bindings) less specific
+- remove dependencies on v8 as these are now automatic
+
+* Sun Feb 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.7.0-2
+- add npm(bindings) to BuildRequires
+
+* Mon Feb 11 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.7.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..ccc5fb6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d982ed8604265a0b9c823e2865bd6984  libxmljs-0.7.1.tgz


More information about the scm-commits mailing list