[nodejs-htmlparser2] Initial import (#1169137).
piotrp
piotrp at fedoraproject.org
Fri Dec 12 23:49:42 UTC 2014
commit b3c72f7bff47e33100bf8df2ae17193d06dbd7cb
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date: Sat Dec 13 00:49:36 2014 +0100
Initial import (#1169137).
.gitignore | 1 +
nodejs-htmlparser2.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fa2baf7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/htmlparser2-3.8.2.tgz
diff --git a/nodejs-htmlparser2.spec b/nodejs-htmlparser2.spec
new file mode 100644
index 0000000..4fa1c60
--- /dev/null
+++ b/nodejs-htmlparser2.spec
@@ -0,0 +1,66 @@
+# tests partially enabled
+# 'npm run lint' has as circular dependency problem
+# depends on: jshint->htmlparser2->jshint
+%global enable_tests 1
+%global srcname htmlparser2
+
+Name: nodejs-%{srcname}
+Version: 3.8.2
+Release: 1%{?dist}
+Summary: Fast & forgiving HTML/XML/RSS parser
+License: MIT
+Group: System Environment/Libraries
+URL: https://github.com/fb55/htmlparser2
+Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(mocha)
+BuildRequires: npm(domhandler)
+BuildRequires: npm(entities)
+BuildRequires: npm(domutils)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+
+%nodejs_fixdep entities '~1.0'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha
+# lint depends on jshint
+#mocha && npm run lint
+%endif
+
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Sun Nov 23 2014 Piotr Popieluch <piotr1212 at gmail.com> - 3.8.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..979b61b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7673eb46d653d014fa5c5e39e6e11a7a htmlparser2-3.8.2.tgz
More information about the scm-commits
mailing list