From f90975f212e7644fe034e8dad0c4792ba70452f2 Mon Sep 17 00:00:00 2001 From: etrunko Date: Tue, 15 Jul 2008 15:51:13 +0000 Subject: [PATCH] debian/rules: Try to figure out target device automatically. debian/control: Fixed dependency info. Added .install file for python2.5-edbus package. --- trunk/python-e_dbus/debian_chinook/changelog | 13 ++++ trunk/python-e_dbus/debian_chinook/control | 4 +- .../debian_chinook/python2.5-edbus.install | 2 + trunk/python-e_dbus/debian_chinook/rules | 72 +++++++++++++------- 4 files changed, 66 insertions(+), 25 deletions(-) create mode 100644 trunk/python-e_dbus/debian_chinook/python2.5-edbus.install diff --git a/trunk/python-e_dbus/debian_chinook/changelog b/trunk/python-e_dbus/debian_chinook/changelog index 845d1ac..358def7 100644 --- a/trunk/python-e_dbus/debian_chinook/changelog +++ b/trunk/python-e_dbus/debian_chinook/changelog @@ -1,3 +1,16 @@ +python-edbus (0.1.1-maemo5) unstable; urgency=low + + * debian/control: Updated dependency info. + + -- Eduardo Lima (Etrunko) Tue, 15 Jul 2008 12:30:58 -0300 + +python-edbus (0.1.1-maemo4) unstable; urgency=low + + * debian/rules: Try to guess the target device in a bit more clever way. + * debian/control: Fix build dependency info. + + -- Eduardo Lima (Etrunko) Thu, 03 Jul 2008 16:05:28 -0300 + python-edbus (0.1.1-maemo3) unstable; urgency=low * New release diff --git a/trunk/python-e_dbus/debian_chinook/control b/trunk/python-e_dbus/debian_chinook/control index cc1e0ed..7adf350 100644 --- a/trunk/python-e_dbus/debian_chinook/control +++ b/trunk/python-e_dbus/debian_chinook/control @@ -2,14 +2,14 @@ Source: python-edbus Section: python Priority: optional Maintainer: Maemo-EFL Team -Build-Depends: debhelper (>> 4.2.0), cdbs (>= 0.4.23), python2.5-dev (>= 2.5.1-1osso6), python-setuptools (>= 0.6c3) | python2.5-setuptools (>= 0.6c3), python2.5-pyrex (>= 0.9.5.1), libedbus0-dev (>= 0.1.0.042-maemo3) +Build-Depends: debhelper (>> 4.2.0), cdbs (>= 0.4.23), python2.5-dev (>= 2.5.1-1osso6), python-setuptools (>= 0.6c3) | python2.5-setuptools (>= 0.6c3), python2.5-pyrex (>= 0.9.5.1), python2.5-dbus, libedbus0-dev (>= 0.1.0.042-maemo5), libecore0-dev (>= 0.9.9.042-maemo5) Standards-Version: 3.6.2.2 Package: python2.5-edbus Section: python Architecture: any Provides: python-edbus -Depends: python2.5 (>= 2.5.1-1osso6), ${shlibs:Depends} +Depends: ${shlibs:Depends}, python2.5 (>= 2.5.1-1osso6), python2.5-dbus Description: DBus python integration for ecore. . This packages contains modules that allow you to use diff --git a/trunk/python-e_dbus/debian_chinook/python2.5-edbus.install b/trunk/python-e_dbus/debian_chinook/python2.5-edbus.install new file mode 100644 index 0000000..fc600a7 --- /dev/null +++ b/trunk/python-e_dbus/debian_chinook/python2.5-edbus.install @@ -0,0 +1,2 @@ +usr/lib/python2.5/site-packages/*.so +usr/lib/python2.5/site-packages/*/* diff --git a/trunk/python-e_dbus/debian_chinook/rules b/trunk/python-e_dbus/debian_chinook/rules index 6791538..9cbc896 100755 --- a/trunk/python-e_dbus/debian_chinook/rules +++ b/trunk/python-e_dbus/debian_chinook/rules @@ -1,27 +1,54 @@ #!/usr/bin/make -f +DEB_DESTDIR=$(CURDIR)/debian/tmp + PYVER=2.5 PYTHON=python$(PYVER) -p_base=$(PYTHON)-edbus -d_base=debian/$(p_base) - -DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +DEB_BUILD_ARCH?=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -ifneq (,$(findstring armel,$(DEB_BUILD_ARCH))) - CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant - ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS))) - CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s - endif - ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS))) - CFLAGS += -mcpu=arm926ej-s +ifeq ($(DEB_BUILD_ARCH),armel) + COMMON_CFLAGS=-DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant + N770_CFLAGS=-mcpu=arm926ej-s + N8x0_CFLAGS=-mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s + ifneq ($(DEB_BUILD_OPTIONS),) + ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS))) + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + else + ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS))) + SPECIFIC_CFLAGS=$(N770_CFLAGS) + endif + endif + endif + ifeq ($(SPECIFIC_CFLAGS),) + ifeq (0,$(shell test -e /etc/osso_software_version; echo $$?)) + SW_VERSION?=$(shell cat /etc/osso_software_version|cut -d_ -f2) + ifneq (,$(findstring $(SW_VERSION),OSSO1.1 2008SE DIABLO)) + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + endif + endif + ifeq ($(SPECIFIC_CFLAGS),) + # Our last hope is to look at the value returned by `sb-conf current` + SB_CURRENT?=$(shell sb-conf current|cut -d_ -f1) + ifneq (,$(findstring $(SB_CURRENT),GREGALE BORA CHINOOK DIABLO)) + ifeq ($(SB_CURRENT),GREGALE) + SPECIFIC_CFLAGS=$(N770_CFLAGS) + else + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + endif + else + COMMON_CFLAGS= + endif + endif endif endif +CFLAGS+=$(COMMON_CFLAGS) $(SPECIFIC_CFLAGS) + build: build-stamp build-stamp: dh_testdir - CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build install --prefix /usr install_headers + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build touch build-stamp clean: dh_testdir @@ -36,19 +63,18 @@ install: build dh_testdir dh_testroot dh_installdirs - CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(d_base) - if [ "x$(DEB_BUILD_ARCH)" = "xarmel" ]; then \ - rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/*.py; \ - rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/*.pyc; \ - fi - -binary: binary-indep binary-arch -binary-indep: install -binary-arch: install + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(DEB_DESTDIR) + dh_install --sourcedir=$(DEB_DESTDIR) --fail-missing + +binary: binary-arch +binary-arch: build install dh_testdir dh_testroot - dh_install + dh_installdocs + dh_installdebconf + dh_installchangelogs dh_strip + dh_compress dh_fixperms dh_makeshlibs dh_installdeb @@ -57,4 +83,4 @@ binary-arch: install dh_md5sums dh_builddeb -.PHONY: build install clean binary binary-indep binary-arch +.PHONY: build install clean binary binary-arch -- 1.7.9.5