debian/0000755000000000000000000000000012023403027007157 5ustar debian/openstreetmap-client.links0000644000000000000000000000010612023403422014357 0ustar usr/share/openstreetmap-client/maps.real usr/bin/openstreetmap-client debian/compat0000644000000000000000000000000212023402441010354 0ustar 7 debian/patches/0000755000000000000000000000000012023402754010614 5ustar debian/patches/1001-package_rename.patch0000644000000000000000000000310012023402754015130 0ustar Description: Rename the installation paths according to the name chosen by the Debian maintainer. Author: Alessio Treglia Forwarded: not-needed --- maps.desktop.in | 2 +- setup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) --- osm-maps-gtk.orig/maps.desktop.in +++ osm-maps-gtk/maps.desktop.in @@ -2,7 +2,7 @@ _Name=Maps _Comment=Maps application Categories=GTK;GNOME;Utility; -Exec=maps %U +Exec=openstreetmap-client %U Icon=/usr/share/maps/media/maps.svg Terminal=false Type=Application --- osm-maps-gtk.orig/setup.py +++ osm-maps-gtk/setup.py @@ -72,10 +72,10 @@ def update_desktop_file(datadir): class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): def run(self): - values = {'__maps_data_directory__': "'%s'" % (self.prefix + '/share/maps/'), + values = {'__maps_data_directory__': "'%s'" % (self.prefix + '/share/openstreetmap-client/'), '__version__': "'%s'" % self.distribution.get_version()} previous_values = update_config(values) - update_desktop_file(self.prefix + '/share/maps/') + update_desktop_file(self.prefix + '/share/opestreetmap-client/') DistUtilsExtra.auto.install_auto.run(self) update_config(previous_values) @@ -86,7 +86,7 @@ class InstallAndUpdateDataDirectory(Dist ################################################################################## DistUtilsExtra.auto.setup( - name='maps', + name='openstreetmap-client', version='12.07.4', license='GPL-3', author='Sigurd Gartmann', debian/patches/series0000644000000000000000000000006212023402441012020 0ustar 0001-desktop_file.patch 1001-package_rename.patch debian/patches/0001-desktop_file.patch0000644000000000000000000000114212023402441014652 0ustar Description: Fix desktop file according to the Freedesktop.org's spec. Author: Alessio Treglia Forwarded: no --- maps.desktop.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- maps-12.07.4~ds0.orig.orig/maps.desktop.in +++ maps-12.07.4~ds0.orig/maps.desktop.in @@ -1,9 +1,9 @@ [Desktop Entry] _Name=Maps _Comment=Maps application -Categories=GNOME;Utility; +Categories=GTK;GNOME;Utility; Exec=maps %U Icon=/usr/share/maps/media/maps.svg Terminal=false Type=Application -MimeType=application/gpx+xml;application/xml +MimeType=application/gpx+xml;application/xml; debian/rules0000755000000000000000000000115612023403012010234 0ustar #!/usr/bin/make -f export REPACK_SH=$(CURDIR)/debian/repack.sh PACKAGE=openstreetmap-client PKGDIR=$(CURDIR)/debian/$(PACKAGE) %: dh $@ --with python2 override_dh_auto_install: dh_auto_install -- \ --install-lib=/usr/share/$(PACKAGE) \ --install-scripts=/usr/bin override_dh_install: dh_install mv $(PKGDIR)/usr/bin/maps \ $(PKGDIR)/usr/share/$(PACKAGE)/maps.real # mkdir -p $(PKGDIR)/usr/share/$(PACKAGE)/media/ # mv $(PKGDIR)/usr/share/maps/media/maps.svg \ # $(PKGDIR)/usr/share/$(PACKAGE)/media/ rm -rf $(PKGDIR)/usr/share/gnome find $(PKGDIR) -empty -delete get-orig-source: uscan --force-download debian/docs0000644000000000000000000000001212023402441010022 0ustar README.md debian/repack.local0000644000000000000000000000011012023402441011427 0ustar SUFFIX=~ds0 rm debian/ rm .bzrignore rm .quickly rm .git/ rm .gitignore debian/control0000644000000000000000000000246712023402554010577 0ustar Source: openstreetmap-client Section: python Priority: optional Maintainer: Alessio Treglia Build-Depends: debhelper (>= 7.0.50~), libglib2.0-dev, python-all (>= 2.6.6-3~), python-distutils-extra (>= 2.10) X-Python-Version: >= 2.6 Standards-Version: 3.9.3 Homepage: https://launchpad.net/maps Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/openstreetmap-client.git Vcs-Git: git://anonscm.debian.org/collab-maint/openstreetmap-client.git Package: openstreetmap-client Architecture: all Depends: gir1.2-champlain-0.12, gir1.2-clutter-1.0, gir1.2-gdkpixbuf-2.0, gir1.2-glib-2.0, gir1.2-gtk-3.0, gir1.2-gtkchamplain-0.12, gir1.2-gtkclutter-1.0, python-lxml, ${misc:Depends}, ${python:Depends} Description: OpenStreetMap client for the GNOME Desktop This application uses Mapquest for search and directions search, the open API using Openstreetmap data and not requiring an API key. Maps are standard tiles from OpenStreetMap. . It will also show GPX tracks if dragged to an open program. . When viewing results, in most cases a single click in the result listing will highlight the result. For searches, a double click will save the location to 'My places'. During directions search, a double click in the results will set proper locations to be able to search for directions. debian/repack.stub0000644000000000000000000000325112023402441011323 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sources under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh" exit 1 fi exec "$REPACK_SH" "$@" debian/changelog0000644000000000000000000000025612023402574011042 0ustar openstreetmap-client (12.07.4~ds0-1) unstable; urgency=low * Initial release. (Closes: #687103) -- Alessio Treglia Sun, 09 Sep 2012 18:14:04 +0200 debian/gbp.conf0000644000000000000000000000003612023402441010574 0ustar [DEFAULT] pristine-tar = True debian/copyright0000644000000000000000000000237512023402441011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Maps Upstream-Contact: Sigurd Gartmann Source: https://launchpad.net/maps Comment: The original tarball was repack to remove the following files and directories: debian/ .bzrignore .quickly .git/ .gitignore Files: * Copyright: 2012 Sigurd Gartmann sigurdga-ubuntu@sigurdga.no License: GPL-3 Files: debian/* Copyright: 2012 Alessio Treglia License: GPL-3 License: GPL-3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. . You should have received a copy of the GNU General Public License along with this program. If not, see . debian/repack.sh0000755000000000000000000000703412023402441010766 0ustar #!/bin/sh # see the repack.stub for how to use # TODO: provide example watch files and repack.locals # TODO: test suite. problems fixed that need to be tested: # * globbing # * whitespace and then comments in the MANIFEST # TODO: does / in weird places work? test suite too. # TODO: I actually broke stuff with the MANIFEST change not thinking.. # TODO: allow for a sepearate (and multiple) MANIFEST files, then # de-uglify libsyntax-highlight-engine-kate-perl. # TODO: have each mv and rm check that something actually changed, and # if not, die set -e set -u usage() { echo "Usage: repack.sh --upstream-version " exit 1 } if [ "$#" != "3" ]; then usage fi if [ "$1" != "--upstream-version" ]; then usage fi if [ ! -f "$3" ]; then if [ -n "$3" ]; then echo "$3 doesn't exist" fi usage fi VER="$2" FILE="$3" PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'` SUFFIX="+dfsg" echo echo "Repackaging $FILE" echo DIR=`mktemp -d ./tmpRepackXXXXXX` DIR=$(readlink -f "$DIR") trap "/bin/rm -rf \"$DIR\"" QUIT INT EXIT # Create an extra directory to cope with rootless tarballs UP_BASE="$DIR/unpack" mkdir "$UP_BASE" tar xf "$FILE" -C "$UP_BASE" || unzip "$FILE" -d "$UP_BASE" if [ `ls -1 "$UP_BASE" | wc -l` -eq 1 ]; then # Tarball does contain a root directory UP_BASE="$UP_BASE/`ls -1 "$UP_BASE"`" fi RM_OPTS="-vrf" real_rm(){ /bin/rm "$@" } real_mv(){ /bin/mv "$@" } rm(){ set +f MYOLDPWD=$(pwd) cd "$UP_BASE" if [ "$MANIFEST" = "1" ]; then PERM=$(stat --format=%a "MANIFEST") chmod u+w "MANIFEST" fi for i in $@; do if [ "$MANIFEST" = "1" ]; then PATTERN="^$i" if [ -d "$i" ]; then if ! { echo "$PATTERN" | grep -q "/$" ; }; then PATTERN="${PATTERN}/" fi else PATTERN="${PATTERN}\s?" fi grep -Ev "$PATTERN" "MANIFEST" > "$DIR/MANIFEST" real_mv "$DIR/MANIFEST" "MANIFEST" fi real_rm "$RM_OPTS" "$i" done if [ "$MANIFEST" = "1" ]; then chmod $PERM "MANIFEST" fi cd $MYOLDPWD set -f } mv(){ set +f OLD=$(pwd) cd $UP_BASE real_mv "$@" cd $OLD if [ "$MANIFEST" = "1" ]; then echo "MANIFEST cannot be manipulated with mv yet, patches welcome" exit 1 fi set -f } # bump with incompatible changes REPACK_VERSION=3 requires_version(){ if [ $REPACK_VERSION -lt $1 ]; then echo "repack.sh is not up to date enough for this package. you need at least version $1, while this script is only version $REPACK_VERSION" exit 1 fi } MANIFEST=0 ## Remove stuff set -f MYORIGPWD=$(pwd) cd "$UP_BASE" . "$MYORIGPWD/debian/repack.local" cd $MYORIGPWD set +f ## End REPACK_DIR="$PKG-${VER}${SUFFIX}.orig" # DevRef ยง 6.7.8.2 DFSG_TAR="$(dirname $FILE)/${PKG}_${VER}${SUFFIX}.orig.tar" real_mv "$UP_BASE" "$DIR/$REPACK_DIR" # .gz or .bz2? FILETYPE=$(file --brief --mime-type --dereference "$FILE") case "$FILETYPE" in application/x-gzip|application/zip) C_PROGRAM="gzip" C_SUFFIX="gz" ;; application/x-bzip2) C_PROGRAM="bzip2" C_SUFFIX="bz2" ;; *) echo "E: Unknown filetye $FILETYPE" exit 1 ;; esac # Using a pipe hides tar errors! tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR" $C_PROGRAM -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.$C_SUFFIX" real_mv "$DIR/repacked.tar.$C_SUFFIX" "$DFSG_TAR.$C_SUFFIX" echo "*** $DFSG_TAR.$C_SUFFIX ready" debian/source/0000755000000000000000000000000012023402441010456 5ustar debian/source/format0000644000000000000000000000001412023402441011664 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000031612023402441010207 0ustar version=3 opts="uversionmangle=s/-/./,dversionmangle=s/~ds.*//" \ https://launchpad.net/maps/+download \ https://launchpad.net/maps/trunk/.*/\+download/maps_(.*)\.tar\.gz \ debian sh debian/repack.stub