[nodejs-tilelive] Initial import of nodejs-tilelive

Tom Hughes tomh at fedoraproject.org
Tue May 28 16:40:09 UTC 2013


commit 278a58735d5e25eefc1bcc1c795b439eab7d8544
Author: Tom Hughes <tom at compton.nu>
Date:   Tue May 28 17:39:55 2013 +0100

    Initial import of nodejs-tilelive

 .gitignore                       |    1 +
 nodejs-tilelive-optimist.patch   |   19 ++++++++++
 nodejs-tilelive-underscore.patch |   19 ++++++++++
 nodejs-tilelive.spec             |   69 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 5 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ace7e49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tilelive-4.4.3.tgz
diff --git a/nodejs-tilelive-optimist.patch b/nodejs-tilelive-optimist.patch
new file mode 100644
index 0000000..8de3e31
--- /dev/null
+++ b/nodejs-tilelive-optimist.patch
@@ -0,0 +1,19 @@
+commit 07f3a4854d4a5cda64003c454389d358bab21b26
+Author: Tom Hughes <tom at compton.nu>
+Date:   Sun May 26 19:19:53 2013 +0100
+
+    Update to use v0.4.x of optimist
+
+diff --git a/package.json b/package.json
+index 36ac95e..c8722fb 100644
+--- a/package.json
++++ b/package.json
+@@ -25,7 +25,7 @@
+         "Konstantin Käfer <kkaefer>"
+     ],
+     "dependencies": {
+-        "optimist": "~0.3.1",
++        "optimist": "~0.4.0",
+         "step": "~0.0.5",
+         "sphericalmercator": "~1.0.1",
+         "underscore": "~1.4.4"
diff --git a/nodejs-tilelive-underscore.patch b/nodejs-tilelive-underscore.patch
new file mode 100644
index 0000000..1beb37a
--- /dev/null
+++ b/nodejs-tilelive-underscore.patch
@@ -0,0 +1,19 @@
+commit 79e669c419f6425b11036ed295d916be242aa6da
+Author: Tom Hughes <tom at compton.nu>
+Date:   Tue Feb 12 23:55:58 2013 +0000
+
+    Update to use v1.4.x of underscore
+
+diff --git a/package.json b/package.json
+index 4d2f64e..360d314 100644
+--- a/package.json
++++ b/package.json
+@@ -28,7 +28,7 @@
+         "optimist": "~0.3.1",
+         "step": "~0.0.5",
+         "sphericalmercator": "~1.0.1",
+-        "underscore": "~1.3.3"
++        "underscore": "~1.4.4"
+     },
+     "devDependencies": {
+         "docco": "~0.3.0",
diff --git a/nodejs-tilelive.spec b/nodejs-tilelive.spec
new file mode 100644
index 0000000..7d05e4b
--- /dev/null
+++ b/nodejs-tilelive.spec
@@ -0,0 +1,69 @@
+%global enable_tests 1
+
+Name:           nodejs-tilelive
+Version:        4.4.3
+Release:        2%{?dist}
+Summary:        Frontend for various tile backends, mapnik and mbtiles
+
+License:        BSD
+URL:            https://github.com/mapbox/tilelive.js
+Source0:        http://registry.npmjs.org/tilelive/-/tilelive-%{version}.tgz
+# Accepted upstream - https://github.com/mapbox/tilelive.js/pull/57
+Patch0:         nodejs-tilelive-underscore.patch
+# Offered upstream - https://github.com/mapbox/tilelive.js/pull/58
+Patch1:         nodejs-tilelive-optimist.patch
+BuildArch:      noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(step)
+BuildRequires:  npm(tilejson)
+%endif
+
+%description
+Tilelive is an interface for tilestore modules for Node.js. It defines
+an API to interact with implementations for a particular tile store.
+
+
+%prep
+%setup -q -n package
+%patch0 -p1 -b .underscore
+rm -rf node_modules
+
+
+%build
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/tilelive
+cp -pr package.json bin lib %{buildroot}/%{nodejs_sitelib}/tilelive
+mkdir -p %{buildroot}/%{_bindir}
+ln -sf %{nodejs_sitelib}/tilelive/bin/copy %{buildroot}/%{_bindir}/tilelive-copy
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%{nodejs_sitelib}/mocha/bin/mocha -R spec -t 10000
+%endif
+
+
+%files
+%doc LICENSE README.md CHANGELOG.md API.md examples
+%{nodejs_sitelib}/tilelive
+%{_bindir}/tilelive-copy
+
+
+%changelog
+* Sun May 26 2013 Tom Hughes <tom at compton.nu> - 4.4.3-2
+- Correct path in tilelive-copy link.
+- Update optimist dependency.
+
+* Mon Apr 29 2013 Tom Hughes <tom at compton.nu> - 4.4.3-1
+- Update to 4.4.3 upstream release
+
+* Sun Feb 10 2013 Tom Hughes <tom at compton.nu> - 4.3.3-1
+- Initial build of 4.3.3
diff --git a/sources b/sources
index e69de29..b8d7ee9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c91ba59c4627c6fbf51c1285fcb5c758  tilelive-4.4.3.tgz


More information about the scm-commits mailing list