[nodejs-dtree] Initial import (#1171750)

Parag Nemade pnemade at fedoraproject.org
Wed Dec 24 15:03:43 UTC 2014


commit 345fc6af1a2a8f75313106415b6e17d0399eae9d
Author: Parag Nemade <pnemade at redhat.com>
Date:   Wed Dec 24 20:33:34 2014 +0530

    Initial import (#1171750)

 .gitignore        |    1 +
 LICENSE           |   20 ++++++++++++++++
 nodejs-dtree.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 4 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e1aab07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dtree-0.0.7.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3e05c2d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2014 Rohan Pethiyagoda
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/nodejs-dtree.spec b/nodejs-dtree.spec
new file mode 100644
index 0000000..a897d81
--- /dev/null
+++ b/nodejs-dtree.spec
@@ -0,0 +1,63 @@
+%global enable_tests 1
+%global module_name dtree
+
+Name:           nodejs-%{module_name}
+Version:        0.0.7
+Release:        1%{?dist}
+Summary:        Command-line tool to view the dependency tree of any single js file
+
+License:        MIT
+URL:            https://github.com/RP-3/dtree
+Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+#https://github.com/RP-3/dtree/pull/2
+Source1:        LICENSE
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(should)
+%endif
+
+%description
+A simple command-line tool to display the dependency tree of
+a single js file that requires external modules. 
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+cp -p %{SOURCE1} .
+
+%nodejs_fixdep chalk ~0.x
+%nodejs_fixdep prompt ~0.x
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/%{module_name}/index.js %{buildroot}%{_bindir}/dtree
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha test.js
+%endif
+
+%files
+%doc README.md LICENSE
+%{_bindir}/dtree
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.7-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..c5b5a21 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c94cb15ba0cce1f34fb6a80c61241f84  dtree-0.0.7.tgz


More information about the scm-commits mailing list