Browse Source

still trying to understand how cdbs works and what is THE correct way to package module & bin in different packages.

debian-sid
Marc Poulhiès 14 years ago
parent
commit
9b7af52765
  1. 16
      debian/control
  2. 2
      debian/igc2kmz-cli.install
  3. 13
      debian/patches/images_patch.patch
  4. 14
      debian/rules

16
debian/control vendored

@ -6,8 +6,20 @@ Build-Depends: cdbs, debhelper (>= 7)
Standards-Version: 3.8.1
Homepage: <insert the upstream URL, if relevant>
Package: igc2kmz
Package: python-igc2kmz
Architecture: all
Depends: python2.6-igc2kmz
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Package: python2.6-igc2kmz
Architecture: any
Depends: ${python:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Package: igc2kmz-cli
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${python:Depends}, python-igc2kmz
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>

2
debian/igc2kmz-cli.install vendored

@ -0,0 +1,2 @@
debian/tmp/usr/bin/*

13
debian/patches/images_patch.patch vendored

@ -0,0 +1,13 @@
diff --git a/igc2kmz/__init__.py b/igc2kmz/__init__.py
index 2db7ce2..50464a5 100644
--- a/igc2kmz/__init__.py
+++ b/igc2kmz/__init__.py
@@ -183,7 +183,7 @@ 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/igc2kmz/images', 'pixel.png')
pixel = open(os.path.join(BASE_DIR, self.pixel_url)).read()
self.kmz.add_files({self.pixel_url: pixel})
#

14
debian/rules vendored

@ -1,11 +1,17 @@
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
#include /usr/share/cdbs/1/class/makefile.mk
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/class/python-distutils.mk
##include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_COMPRESS_EXCLUDE := .py
# Add here any variable or target overrides you need.
# $(patsubst %,install/%,$(cdbs_python_packages))
# mv debian/$(cdbs_curpkg)/usr/lib/python*/site-packages/igc2kmz/images debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)
# $(patsubst %,binary-install/%,$(cdbs_python_packages)) find debian/$(cdbs_curpkg)/usr/share/ -type f -exec chmod -R a-x {} \;
include /usr/share/cdbs/1/class/python-distutils.mk

Loading…
Cancel
Save