[nodejs-domutils] Initial import (#1169124).

piotrp piotrp at fedoraproject.org
Wed Dec 10 19:30:13 UTC 2014


commit cc6d2c25a2ce1cbbbbb9bef52404f40f8d434b78
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Wed Dec 10 20:30:04 2014 +0100

    Initial import (#1169124).

 .gitignore           |    1 +
 nodejs-domutils.spec |   65 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0736ff1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/domutils-1.5.0.tgz
diff --git a/nodejs-domutils.spec b/nodejs-domutils.spec
new file mode 100644
index 0000000..310457b
--- /dev/null
+++ b/nodejs-domutils.spec
@@ -0,0 +1,65 @@
+# circular dependencies on test modules
+# htmlparser2 depends on domutils
+%global enable_tests 0
+%global srcname domutils
+
+Name:           nodejs-%{srcname}
+Version:        1.5.0
+Release:        2%{?dist}
+Summary:        Utilities for working with htmlparser2's dom
+License:        BSD
+URL:            https://github.com/FB55/domutils
+Source0:        http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
+
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(htmlparser2)
+BuildRequires:  npm(domhandler)
+BuildRequires:  npm(jshint)
+BuildRequires:  npm(mocha)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+
+
+%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 test/tests/**.js && jshint index.js test/**/*.js lib/*.js
+%endif
+
+
+%files
+%doc readme.md LICENSE
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Sat Dec  6 2014 Piotr Popieluch <piotr1212 at gmail.com> - 1.5.0-2
+- Corrected license
+- Added rm -rf node_modules/ to prep section
+- Removed Group tag
+
+* Sun Nov 23 2014 Piotr Popieluch <piotr1212 at gmail.com> - 1.5.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..30b2c87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+92224a16f07fae584e460c36bc2a6ef3  domutils-1.5.0.tgz


More information about the scm-commits mailing list