Changeset 14401

Show
Ignore:
Timestamp:
01/14/08 10:17:12 (11 months ago)
Author:
piotras
Message:

Packages renamed to python-midgard2.
Added awfull workaround (hack) which copies midgard modules

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/python/debian/control

    r14345 r14401  
    44Maintainer: Piotr Pokora <piotrek.pokora@gmail.com> 
    55Standards-Version: 3.5.2 
    6 Build-Depends: debhelper (>=4.0), libmidgard2.0-dev (>=2.0alpha), python2.4-dev 
     6Build-Depends: debhelper (>=4.0), libmidgard2.0-dev (>=2.0alpha), python2.5-dev | python2.4-dev 
    77 
    8 Package: python-midgard 
     8Package: python-midgard2 
    99Section: python 
    1010Architecture: i386 
    11 Depends: python2.4, midgard2.0-common, ${shlibs:Depends} 
     11Depends: python2.5 | python2.4, midgard2.0-common, ${shlibs:Depends} 
    1212Conflicts:  
    1313Replaces: 
  • trunk/midgard/apis/python/debian/rules

    r14345 r14401  
    66 
    77DEB_BUILD_ARCH   ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 
     8PKG_SRC_DIR="debian/tmp" 
    89 
    910deb_section="" 
     
    4748                INSTALL='/usr/bin/install -c -o root -g root' \ 
    4849                DESTDIR=`pwd`/debian/tmp 
    49         dh_install --sourcedir=debian/tmp 
     50        # HACK, I have no idea how to solve it 
     51        mkdir -p $(PKG_SRC_DIR)/usr/lib/python2.4/site-packages 
     52        mkdir -p $(PKG_SRC_DIR)/usr/lib/python2.5/site-packages  
     53        cp $(PKG_SRC_DIR)/usr/lib/python2.3/site-packages/*midgard* $(PKG_SRC_DIR)/usr/lib/python2.4/site-packages/ 
     54        cp $(PKG_SRC_DIR)/usr/lib/python2.3/site-packages/*midgard* $(PKG_SRC_DIR)/usr/lib/python2.5/site-packages/ 
     55        dh_install --sourcedir=$(PKG_SRC_DIR) 
    5056        dh_movefiles 
    5157