[nodejs-globule] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Wed Sep 4 06:54:36 UTC 2013


commit 849b5131a157d170997e102a0e1505c8e3a79297
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Sep 4 07:54:14 2013 +0100

    Initial import

 .gitignore          |    1 +
 nodejs-globule.spec |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5d95a29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/globule-0.1.0.tgz
diff --git a/nodejs-globule.spec b/nodejs-globule.spec
new file mode 100644
index 0000000..83dd125
--- /dev/null
+++ b/nodejs-globule.spec
@@ -0,0 +1,65 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+Name:       nodejs-globule
+Version:    0.1.0
+Release:    1%{?dist}
+Summary:    An easy-to-use wildcard globbing library for Node.js
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/cowboy/node-globule
+Source0:    http://registry.npmjs.org/globule/-/globule-%{version}.tgz
+
+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(glob)
+BuildRequires:  npm(lodash)
+BuildRequires:  npm(nodeunit)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+%nodejs_fixdep lodash '~1.3.1'
+%nodejs_fixdep glob '~3.2.6'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/globule
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/globule
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%{nodejs_sitelib}/nodeunit/bin/nodeunit test/globule_test.js
+%endif
+
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/globule
+
+
+%changelog
+* Wed Aug 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..7d42e2a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2b19f7364adae8dbef4bae7887b39f4a  globule-0.1.0.tgz


More information about the scm-commits mailing list