Browse Source

update debian packaging for ubuntu maverick.

master
Marc 11 years ago
parent
commit
243737bd0f
  1. 12
      debian/changelog
  2. 32
      debian/patches/images_patch.diff

12
debian/changelog

@ -1,3 +1,15 @@
igc2kmz (0.3r20110312-1~ppa1) maverick; urgency=low
* fix packaging
-- Marc Poulhiès <dkm@kataplop.net> Sat, 12 Mar 2011 09:43:35 +0100
igc2kmz (0.2-1~ppa1) maverick; urgency=low
* upstream change + maverick package
-- Marc Poulhiès <dkm@kataplop.net> Sat, 12 Mar 2011 09:30:58 +0100
igc2kmz (0.1-1~ppa2) jaunty; urgency=low
* fix build deps

32
debian/patches/images_patch.diff

@ -1,29 +1,21 @@
diff --git a/igc2kmz/__init__.py b/igc2kmz/__init__.py
index 2db7ce2..dbd5322 100644
index 9c04622..2c33310 100644
--- a/igc2kmz/__init__.py
+++ b/igc2kmz/__init__.py
@@ -183,14 +183,14 @@ class Stock(object):
line_style)
self.kmz.add_roots(self.xc_style2)
#
- self.pixel_url = os.path.join('images', 'pixel.png')
+ self.pixel_url = os.path.join('/usr/share/python-igc2kmz/images', 'pixel.png')
pixel = open(os.path.join(BASE_DIR, self.pixel_url)).read()
self.kmz.add_files({self.pixel_url: pixel})
#
self.visible_none_folder = self.make_none_folder(1)
self.invisible_none_folder = self.make_none_folder(0)
#
- animation_icon_url = os.path.join('images', 'paraglider.png')
+ animation_icon_url = os.path.join('/usr/share/python-igc2kmz/images', 'paraglider.png')
self.animation_icon = kml.Icon(href=animation_icon_url)
animation_icon = open(os.path.join(BASE_DIR, animation_icon_url)).read()
files = {animation_icon_url: animation_icon}
@@ -45,7 +45,7 @@ else:
MULTIPLICATION_SIGN = 'x'
UP_TACK = 'n/a'
-BASE_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
+BASE_DIR = "/usr/share/python-igc2kmz"
def make_table(rows, bgcolors='#dddddd #ffffff'.split()):
diff --git a/setup.py b/setup.py
index e27a6c5..d097d95 100644
index 733af5b..aa20aa9 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,6 @@ setup (
@@ -40,6 +40,6 @@ also comes with frontend scripts
"igc2task.py",
"leonardo2kmz.py",
"olc2gpx.py"]],

Loading…
Cancel
Save