[nodejs-domhandler] Initial import (#1169121).

piotrp piotrp at fedoraproject.org
Wed Dec 10 19:57:04 UTC 2014


commit 587c4cea8cf4285b6e824171c1bbd78819edf794
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Wed Dec 10 20:56:57 2014 +0100

    Initial import (#1169121).

 .gitignore             |    1 +
 nodejs-domhandler.spec |   64 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..38259bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/domhandler-2.3.0.tgz
diff --git a/nodejs-domhandler.spec b/nodejs-domhandler.spec
new file mode 100644
index 0000000..5145a22
--- /dev/null
+++ b/nodejs-domhandler.spec
@@ -0,0 +1,64 @@
+# circular dependency on modules needed for tests
+# tests depend on htmlparser2 which depends on this package
+%global enable_tests 0
+%global srcname domhandler
+
+Name:           nodejs-%{srcname}
+Version:        2.3.0
+Release:        2%{?dist}
+Summary:        Handler for htmlparser2 that turns pages into a dom
+License:        BSD
+URL:            https://github.com/fb55/DomHandler
+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(htmlparser2)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+rm -rf node_modules/
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr package.json index.js lib/ %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha -R list && jshint index.js test/
+%endif
+
+
+%files
+%doc readme.md LICENSE
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Sat Dec  6 2014 Piotr Popieluch <piotr1212 at gmail.com> - 2.3.0-2
+- Set correct license
+- Added rm -rf node_modules/
+- Removed Group tag
+
+* Sun Nov 23 2014 Piotr Popieluch <piotr1212 at gmail.com> - 2.3.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..31f61f7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+742b9b1bf0d237aa9fd6864f6b7cbe95  domhandler-2.3.0.tgz


More information about the scm-commits mailing list