[nodejs-w3cjs] Initial import (#1115709)
Ralph Bean
ralph at fedoraproject.org
Mon Sep 8 20:18:22 UTC 2014
commit 427940c93a8d1cd44c0683de0a791547bdb6eeed
Author: Ralph Bean <rbean at redhat.com>
Date: Mon Sep 8 16:18:08 2014 -0400
Initial import (#1115709)
.gitignore | 1 +
nodejs-w3cjs.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a5424b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/w3cjs-0.1.25.tgz
diff --git a/nodejs-w3cjs.spec b/nodejs-w3cjs.spec
new file mode 100644
index 0000000..86b0670
--- /dev/null
+++ b/nodejs-w3cjs.spec
@@ -0,0 +1,66 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global barename w3cjs
+
+Name: nodejs-w3cjs
+Version: 0.1.25
+Release: 1%{?dist}
+Summary: A node.js module for using the w3c validator
+
+Group: Development/Libraries
+License: Public Domain
+URL: https://www.npmjs.org/package/w3cjs
+Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch: noarch
+
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging >= 6
+
+BuildRequires: npm(argparse)
+BuildRequires: npm(superagent)
+
+Requires: npm(argparse)
+Requires: npm(superagent)
+
+
+%description
+A node.js library for testing files or url's against the w3c html
+validator.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep argparse ~0.x
+%nodejs_fixdep superagent ~0.x
+
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/w3cjs
+cp -pr package.json lib \
+ %{buildroot}%{nodejs_sitelib}/w3cjs
+
+%nodejs_symlink_deps
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/w3cjs/
+
+%changelog
+* Mon Jul 21 2014 Ralph Bean <rbean at redhat.com> - 0.1.25-1
+- Latest upstream.
+- Specified noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.1.9-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..97adeac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d79cd2b0d6013060cc38577220e49a7e w3cjs-0.1.25.tgz
More information about the scm-commits
mailing list