[nodejs-callsites] Initial commit(#1171606)

Parag Nemade pnemade at fedoraproject.org
Fri Dec 19 14:21:07 UTC 2014


commit 2f682b3095b217a8ea17346f1283c7cdad1d22a8
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Dec 19 19:50:53 2014 +0530

    Initial commit(#1171606)

 .gitignore            |    1 +
 license               |   21 +++++++++++++++++++
 nodejs-callsites.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 test.js               |    8 +++++++
 5 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..127e219 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/callsites-1.0.0.tgz
diff --git a/license b/license
new file mode 100644
index 0000000..654d0bf
--- /dev/null
+++ b/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <sindresorhus at gmail.com> (sindresorhus.com)
+
+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-callsites.spec b/nodejs-callsites.spec
new file mode 100644
index 0000000..d426c3b
--- /dev/null
+++ b/nodejs-callsites.spec
@@ -0,0 +1,53 @@
+%global enable_tests 1
+%global module_name callsites
+
+Name:           nodejs-%{module_name}
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Get callsites from the V8 stack trace API
+
+License:        MIT
+URL:            https://github.com/sindresorhus/callsites
+Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+Source1:        https://raw.githubusercontent.com/sindresorhus/callsites/master/license
+Source2:        https://raw.githubusercontent.com/sindresorhus/callsites/master/test.js
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+%endif
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+cp -p %{SOURCE1} %{SOURCE2} .
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha
+%endif
+
+%files
+%doc readme.md license
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..38aa392 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d149f1ad6ea977c3c6d9c8bdf8b2e29e  callsites-1.0.0.tgz
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..aa78eea
--- /dev/null
+++ b/test.js
@@ -0,0 +1,8 @@
+'use strict';
+var assert = require('assert');
+var path = require('path');
+var callsites = require('./');
+
+it('should get the callsites', function () {
+	assert.strictEqual(path.basename(callsites()[0].getFileName()), 'test.js');
+});


More information about the scm-commits mailing list