[nodejs-esutils] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Wed Apr 16 16:53:29 UTC 2014


commit c216a22fc4786e5cfef12f95a859a1dc6fb16aa6
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Apr 16 17:53:13 2014 +0100

    Initial import

 .gitignore          |    1 +
 LICENSE.BSD         |   19 ++++++++++++++
 nodejs-esutils.spec |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 4 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f475494 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/esutils-1.0.0.tgz
diff --git a/LICENSE.BSD b/LICENSE.BSD
new file mode 100644
index 0000000..3e580c3
--- /dev/null
+++ b/LICENSE.BSD
@@ -0,0 +1,19 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/nodejs-esutils.spec b/nodejs-esutils.spec
new file mode 100644
index 0000000..0f2f910
--- /dev/null
+++ b/nodejs-esutils.spec
@@ -0,0 +1,69 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name:       nodejs-esutils
+Version:    1.0.0
+Release:    2%{?dist}
+Summary:    Utility box for ECMAScript language tools
+License:    BSD
+Group:      System Environment/Libraries
+URL:        https://github.com/Constellation/esutils
+Source0:    http://registry.npmjs.org/esutils/-/esutils-%{version}.tgz
+Source1:    https://raw.githubusercontent.com/Constellation/esutils/6f73df0525cad2e610725741082e19c19e6497fd/LICENSE.BSD
+
+BuildArch:  noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(chai)
+BuildRequires:  npm(coffee-script)
+BuildRequires:  npm(mocha)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+cp -p %{SOURCE1} .
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/esutils
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/esutils
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+/usr/bin/mocha --compilers coffee:coffee-script -R spec
+%endif
+
+
+%files
+%doc LICENSE.BSD README.md
+%{nodejs_sitelib}/esutils
+
+
+%changelog
+* Sun Apr 13 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.0-2
+- fix License tag
+- add LICENSE.BSD file from upstream version control repository
+
+* Sat Mar 29 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..6ceda9f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3b2330ae2e732effebdfe62b7a48508c  esutils-1.0.0.tgz


More information about the scm-commits mailing list