[openlayers] 02/41: First debianization
Bas Couwenberg
sebastic at xs4all.nl
Fri Dec 26 02:41:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository openlayers.
commit ea89640a38692c6c7cb524c36475df24a8e609ac
Author: David Paleino <dapal at debian.org>
Date: Fri Mar 18 23:09:21 2011 +0100
First debianization
---
debian/README.source | 11 ++++
debian/changelog | 5 ++
debian/clean | 3 ++
debian/compat | 1 +
debian/control | 39 +++++++++++++++
debian/copyright | 91 ++++++++++++++++++++++++++++++++++
debian/docs | 2 +
debian/libjs-openlayers-doc.doc-base | 9 ++++
debian/libjs-openlayers-doc.examples | 1 +
debian/libjs-openlayers-doc.install | 1 +
debian/libjs-openlayers.install | 4 ++
debian/patches/00-fix_data_paths.patch | 56 +++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 45 +++++++++++++++++
debian/source/format | 1 +
debian/watch | 3 ++
16 files changed, 273 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..0398e54
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,11 @@
+openlayers for Debian
+---------------------
+
+The source has been repackaged to remove useless (for Debian) external tools
+used during the build process, some with licensing problems.
+
+ -- David Paleino <dapal at debian.org> Fri, 18 Mar 2011 22:37:56 +0100
+
+
+
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b30a3c3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+openlayers (2.10+ds1-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #430359)
+
+ -- David Paleino <dapal at debian.org> Fri, 18 Mar 2011 21:09:07 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..c6d22aa
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+build/*.js
+tools/*.pyc
+doc_config/Data/*
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fb0cc66
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: openlayers
+Section: web
+Priority: extra
+Maintainer: Debian OpenStreetMap Team <pkg-osm-maint at lists.alioth.debian.org>
+Uploaders: David Paleino <dapal at debian.org>
+Build-Depends: debhelper (>= 8~)
+ , python
+Build-Depends-Indep:
+ yui-compressor
+ , naturaldocs
+Standards-Version: 3.9.1
+Homepage: http://openlayers.org/
+Vcs-Git: git://git.debian.org/pkg-osm/openlayers.git
+Vcs-Browser: http://git.debian.org/?p=pkg-osm/openlayers.git
+
+Package: libjs-openlayers
+Architecture: all
+Depends: ${misc:Depends}
+Description: JavaScript library for displaying map data in web browsers
+ OpenLayers is a pure JavaScript library for displaying map data in
+ most modern web browsers, with no server-side dependencies.
+ .
+ OpenLayers implements a JavaScript API for building rich web-based
+ geographic applications, similar to the Google Maps and MSN Virtual
+ Earth APIs.
+
+Package: libjs-openlayers-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: documentation for OpenLayers
+ OpenLayers is a pure JavaScript library for displaying map data in
+ most modern web browsers, with no server-side dependencies.
+ .
+ OpenLayers implements a JavaScript API for building rich web-based
+ geographic applications, similar to the Google Maps and MSN Virtual
+ Earth APIs.
+ .
+ This package contains documentation and examples of OpenLayers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1f68fd6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,91 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: OpenLayers
+Source: http://openlayers.org/
+
+Files: *
+Copyright: © 2005-2010, OpenLayers Contributors
+License: BSD-3
+X-Comments: portions are © 2005, Sam Stephenson <sam at conio.net>,
+ under MIT license, from the Prototype framework 1.4.0.
+
+Files: debian/*
+Copyright: © 2011, David Paleino <dapal at debian.org>
+License: BSD-3
+
+Files: lib/Gears/gears_init.js
+Copyright: © 2007, Google Inc.
+License: BSD-3
+
+Files: lib/OpenLayers/Request/XMLHttpRequest.js
+Copyright: © 2010, Sergey Ilinsky <http://www.ilinsky.com>
+License: Apache-2.0
+
+Files: lib/Rico/*
+Copyright: © 2005, Sabre Airline Solutions
+License: Apache-2.0
+
+Files: tools/toposort.py
+Copyright: © Tim Peters
+License: BSD-3
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted (subject to the limitations in the
+ disclaimer below) 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.
+ .
+ * Neither the name of OpenLayers nor the names of its contributors
+ may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+ .
+ NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
+ GRANTED BY THIS LICENSE. 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 THE COPYRIGHT OWNER OR CONTRIBUTORS 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.
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+X-Comment: on Debian systems, you can find the complete text of the
+ Apache License version 2.0 in "/usr/share/common-licenses/Apache-2.0".
+
+License: MIT
+ 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 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/debian/docs b/debian/docs
new file mode 100644
index 0000000..a517b84
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+news.txt
+readme.txt
diff --git a/debian/libjs-openlayers-doc.doc-base b/debian/libjs-openlayers-doc.doc-base
new file mode 100644
index 0000000..634e8f0
--- /dev/null
+++ b/debian/libjs-openlayers-doc.doc-base
@@ -0,0 +1,9 @@
+Document: openlayers
+Title: OpenLayers Documentation
+Author: OpenLayers Contributors
+Abstract: This manual describes what OpenLayers is
+ and how it can be used.
+Section: Programming/Javascript
+
+Format: HTML
+Index: /usr/share/doc/libjs-openlayers-doc/html/index.html
diff --git a/debian/libjs-openlayers-doc.examples b/debian/libjs-openlayers-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/libjs-openlayers-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/libjs-openlayers-doc.install b/debian/libjs-openlayers-doc.install
new file mode 100644
index 0000000..d28292e
--- /dev/null
+++ b/debian/libjs-openlayers-doc.install
@@ -0,0 +1 @@
+gendoc/* /usr/share/doc/libjs-openlayers-doc/html/
diff --git a/debian/libjs-openlayers.install b/debian/libjs-openlayers.install
new file mode 100644
index 0000000..cc87bf8
--- /dev/null
+++ b/debian/libjs-openlayers.install
@@ -0,0 +1,4 @@
+build/OpenLayers.js /usr/share/javascript/openlayers/
+build/OpenLayers.min.js /usr/share/javascript/openlayers/
+img/ /usr/share/openlayers/
+theme/ /usr/share/openlayers/
diff --git a/debian/patches/00-fix_data_paths.patch b/debian/patches/00-fix_data_paths.patch
new file mode 100644
index 0000000..4f48a62
--- /dev/null
+++ b/debian/patches/00-fix_data_paths.patch
@@ -0,0 +1,56 @@
+From: David Paleino <dapal at debian.org>
+Subject: fix paths to images and themes
+Origin: vendor
+Forwarded: not-needed
+
+---
+ lib/OpenLayers/Control/PanPanel.js | 2 +-
+ lib/OpenLayers/Control/ZoomPanel.js | 2 +-
+ lib/OpenLayers/Map.js | 2 +-
+ lib/OpenLayers/Util.js | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+--- openlayers.orig/lib/OpenLayers/Util.js
++++ openlayers/lib/OpenLayers/Util.js
+@@ -668,7 +668,7 @@ OpenLayers.Util.urlAppend = function(url
+ * Property: ImgPath
+ * {String} Default is ''.
+ */
+-OpenLayers.ImgPath = '';
++OpenLayers.ImgPath = '/usr/share/openlayers/img/';
+
+ /**
+ * Function: getImagesLocation
+--- openlayers.orig/lib/OpenLayers/Map.js
++++ openlayers/lib/OpenLayers/Map.js
+@@ -475,7 +475,7 @@ OpenLayers.Map = OpenLayers.Class({
+
+ this.paddingForPopups = new OpenLayers.Bounds(15, 15, 15, 15);
+
+- this.theme = OpenLayers._getScriptLocation() +
++ this.theme = '/usr/share/openlayers/' +
+ 'theme/default/style.css';
+
+ // now override default options
+--- openlayers.orig/lib/OpenLayers/Control/PanPanel.js
++++ openlayers/lib/OpenLayers/Control/PanPanel.js
+@@ -21,7 +21,7 @@
+ *
+ * (code)
+ * <!--[if lte IE 6]>
+- * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
++ * <link rel="stylesheet" href="/usr/share/openlayers/theme/default/ie6-style.css" type="text/css" />
+ * <![endif]-->
+ * (end)
+ *
+--- openlayers.orig/lib/OpenLayers/Control/ZoomPanel.js
++++ openlayers/lib/OpenLayers/Control/ZoomPanel.js
+@@ -24,7 +24,7 @@
+ *
+ * (code)
+ * <!--[if lte IE 6]>
+- * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
++ * <link rel="stylesheet" href="/usr/share/openlayers/theme/default/ie6-style.css" type="text/css" />
+ * <![endif]-->
+ * (end)
+ *
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c7cb77f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-fix_data_paths.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f00bf29
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEBVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d\ -f2)
+UPVER=$(shell echo $(DEBVER) | cut -d+ -f1)
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ dh_auto_build
+
+ ( cd build ; \
+ ./build.py ; \
+ yui-compressor -o min.js OpenLayers.js ; \
+ cat license.txt min.js > OpenLayers.min.js )
+
+ mkdir gendoc
+ naturaldocs -i lib/ -o HTML gendoc/ -p doc_config/ -s Default OL
+
+override_dh_auto_clean:
+ dh_auto_clean
+ -rm -rf gendoc
+
+override_dh_installchangelogs:
+ dh_installchangelogs news.txt
+
+get-orig-source:
+ uscan --force-download \
+ --download-version $(UPVER) \
+ --rename \
+ --destdir .
+ tar xvf openlayers_$(UPVER).orig.tar.gz
+ cd OpenLayers-$(UPVER)/
+ rm -rf OpenLayers.js
+ for i in BeautifulSoup.py exampleparser.py jsmin.c jsmin.py \
+ minimize.py shrinksafe.py update_dev_dir.sh; do \
+ rm -rf tools/$$i ; \
+ done
+ cd ..
+ tar zcf openlayers_$(UPVER)+ds1.orig.tar.gz OpenLayers-$(UPVER)/
+ -rm -rf OpenLayers-$(UPVER)/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b473a11
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/-rc/~rc/,dversionmangle=s/\+ds.*// \
+http://openlayers.org/download/OpenLayers-(\d+.*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/openlayers.git
More information about the Pkg-grass-devel
mailing list