[nodejs-url2] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Fri Jun 21 13:21:22 UTC 2013


commit a6f95f84392dddd73eeb2e4143582b182ba62dc3
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Fri Jun 21 14:21:01 2013 +0100

    Initial import

 .gitignore       |    1 +
 nodejs-url2.spec |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f8ade29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/url2-0.0.0.tgz
diff --git a/nodejs-url2.spec b/nodejs-url2.spec
new file mode 100644
index 0000000..5111ca4
--- /dev/null
+++ b/nodejs-url2.spec
@@ -0,0 +1,64 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name:       nodejs-url2
+Version:    0.0.0
+Release:    2%{?dist}
+Summary:    The Node.js URL module plus relative paths
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/kriskowal/url2
+Source0:    http://registry.npmjs.org/url2/-/url2-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(jasmine-node)
+%endif
+
+%description
+This module builds upon the existing URL module in Node.js, but adds
+relative(source, target) which returns the shortest relative path between
+any two equally qualified URLs. If the paths are not equally qualified,
+it returns the target.
+
+In addition, this package augments the URL object definition as returned
+by parse and consumed by format.
+
+
+%prep
+%setup -q -n package
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/url2
+cp -pr package.json url2.js \
+    %{buildroot}%{nodejs_sitelib}/url2
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+ln -sf %{nodejs_sitelib} .
+%{nodejs_sitelib}/jasmine-node/bin/jasmine-node test
+%endif
+
+
+%files
+%doc LICENSE.md README.md
+%{nodejs_sitelib}/url2
+
+
+%changelog
+* Thu Jun 20 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.0-2
+- enable tests
+
+* Wed Feb 13 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..33cb35b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4d706d1c9770ee5650be282d1925f99c  url2-0.0.0.tgz


More information about the scm-commits mailing list