[maemo-commits] [maemo-commits] r11925 - projects/haf/trunk/hail/debian

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon May 28 21:16:27 EEST 2007
Author: fherrera
Date: 2007-05-28 21:16:26 +0300 (Mon, 28 May 2007)
New Revision: 11925

Added:
   projects/haf/trunk/hail/debian/hail1.install
Removed:
   projects/haf/trunk/hail/debian/control.in
   projects/haf/trunk/hail/debian/libhail-common.install
   projects/haf/trunk/hail/debian/libhail-doc.dirs
   projects/haf/trunk/hail/debian/libhail-doc.doc-base.hail
   projects/haf/trunk/hail/debian/libhail-doc.install
Modified:
   projects/haf/trunk/hail/debian/changelog
   projects/haf/trunk/hail/debian/control
   projects/haf/trunk/hail/debian/copyright
   projects/haf/trunk/hail/debian/rules
Log:
New debian packaging system.


Modified: projects/haf/trunk/hail/debian/changelog
===================================================================
--- projects/haf/trunk/hail/debian/changelog	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/changelog	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,6 +1,6 @@
-hail (1.2.0-1) unstable; urgency=low
+hail (1.2.1-1) unstable; urgency=low
 
-  * Upstream release.
+  * Re-create the debian/* stuff to use dh_* magic.
 
- -- Fernando Herrera  <fernando.herrera-de-las-heras at nokia.com>  Mon, 02 Oct 2006 18:51:00 +0200
+ -- Fernando Herrera  <fernando.herrera-de-las-heras at nokia.com>  Mon, 28 May 2007 20:43:16 +0300
 

Modified: projects/haf/trunk/hail/debian/control
===================================================================
--- projects/haf/trunk/hail/debian/control	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/control	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,28 +1,16 @@
 Source: hail
-Section: libs
 Priority: optional
-Maintainer: Fernando Herrera <fernando.herrera-de-las-heras at nokia.com>
-Build-Depends: debhelper (>= 4.0.0), pkg-config, outo, hildon-libs-dev (>= 0.12.7-1), hildon-fm-dev (>= 0.16-1), libgtk2.0-dev (>= 2:2.6.10-1.osso1), libgail-dev (>= 1.8.11-1)
-Standards-Version: 3.6.0
+Maintainer: Fernando Herrera  <fernando.herrera-de-las-heras at nokia.com>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
 
-Package: libhail-common
-Section: libs
+Package: hail1
 Architecture: any
-Depends: ${shlibs:Depends}
-Description: Hildon Accessibility Implementation Library -- the shared libraries
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Hildon Accessibility Implementation Library
  Hail implements ATK interfaces for Hildon widgets which are dynamically
  loadable at runtime by a Hildon framework application, as GAIL does for
  GTK+ applications.
  .
- This package contains core shared libraries.
+ This package contains all gtk-modules.
 
-Package: libhail-doc
-Architecture: all
-Section: doc
-Depends: lynx | www-browser
-Description: documentation files for the Hail library
- Hail implements ATK interfaces for Hildon widgets which are dynamically
- loadable at runtime by a Hildon framework application, as GAIL does for
- GTK+ applications.
- .
- This package contains the documentation files for Hail.

Deleted: projects/haf/trunk/hail/debian/control.in
===================================================================
--- projects/haf/trunk/hail/debian/control.in	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/control.in	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,28 +0,0 @@
-Source: hail
-Section: libs
-Priority: optional
-Maintainer: Fernando Herrera <fernando.herrera-de-las-heras at nokia.com>
-Build-Depends: debhelper (>= 4.0.0), pkg-config, outo, hildon-libs-dev (>= 0.12.7-1), hildon-fm-dev (>= 0.16-1), libgtk2.0-dev (>= 2:2.6.10-1.osso1), libgail-dev (>= 1.8.11-1)
-Standards-Version: 3.6.0
-
-Package: libhail-common
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}
-Description: Hildon Accessibility Implementation Library -- the shared libraries
- Hail implements ATK interfaces for Hildon widgets which are dynamically
- loadable at runtime by a Hildon framework application, as GAIL does for
- GTK+ applications.
- .
- This package contains core shared libraries.
-
-Package: libhail-doc
-Architecture: all
-Section: doc
-Depends: lynx | www-browser
-Description: documentation files for the Hail library
- Hail implements ATK interfaces for Hildon widgets which are dynamically
- loadable at runtime by a Hildon framework application, as GAIL does for
- GTK+ applications.
- .
- This package contains the documentation files for Hail.

Modified: projects/haf/trunk/hail/debian/copyright
===================================================================
--- projects/haf/trunk/hail/debian/copyright	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/copyright	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,3 +1,13 @@
-Copyright: (c) 2005 Nokia Corporation
+This package was debianized by 
+ <fernando.herrera-de-las-heras at nokia.com> on
+Mon, 28 May 2007 20:43:16 +0300.
 
-This package is licensed under the LGPL
+It was downloaded from <fill in ftp site>
+
+Copyright:
+
+Upstream Author(s): <put author(s) name and email here>
+
+License:
+
+<Must follow here>

Added: projects/haf/trunk/hail/debian/hail1.install
===================================================================
--- projects/haf/trunk/hail/debian/hail1.install	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/hail1.install	2007-05-28 18:16:26 UTC (rev 11925)
@@ -0,0 +1 @@
+usr/lib/gtk-2.0/modules/lib*.so

Deleted: projects/haf/trunk/hail/debian/libhail-common.install
===================================================================
--- projects/haf/trunk/hail/debian/libhail-common.install	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/libhail-common.install	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,2 +0,0 @@
-debian/tmp/usr/lib/gtk-*/modules/*.so
-

Deleted: projects/haf/trunk/hail/debian/libhail-doc.dirs
===================================================================
--- projects/haf/trunk/hail/debian/libhail-doc.dirs	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/libhail-doc.dirs	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1 +0,0 @@
-usr/share/doc/libhail-doc

Deleted: projects/haf/trunk/hail/debian/libhail-doc.doc-base.hail
===================================================================
--- projects/haf/trunk/hail/debian/libhail-doc.doc-base.hail	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/libhail-doc.doc-base.hail	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,21 +0,0 @@
-Document: hail
-Title: Hail Reference Manual
-Author: Jose Dapena Paz
-Abstract:  This manual describes classes and implementation
- details for Hail.
-Section: Apps/Programming
-
-Format: HTML
-Index: /usr/share/gtk-doc/html/hail/index.html
-Files: /usr/share/gtk-doc/html/hail/*.html
-
-Document: hail-ut
-Title: Hail Unit Tests Reference
-Author: Jose Dapena Paz
-Abstract:  This document describes unit tests of Hail. classes and 
-Section: Apps/Programming
-
-Format: HTML
-Index: /usr/share/gtk-doc/html/hail-ut/index.html
-Files: /usr/share/gtk-doc/html/hail-ut/*.html
-

Deleted: projects/haf/trunk/hail/debian/libhail-doc.install
===================================================================
--- projects/haf/trunk/hail/debian/libhail-doc.install	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/libhail-doc.install	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,2 +0,0 @@
-debian/tmp/usr/share/gtk-doc/
-

Modified: projects/haf/trunk/hail/debian/rules
===================================================================
--- projects/haf/trunk/hail/debian/rules	2007-05-28 17:45:12 UTC (rev 11924)
+++ projects/haf/trunk/hail/debian/rules	2007-05-28 18:16:26 UTC (rev 11925)
@@ -1,11 +1,103 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
-include /usr/share/cdbs/1/class/gnome.mk
-include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
 
-CFLAGS := -Wall -g
 
-DEB_CONFIGURE_SCRIPT := $(CURDIR)/$(DEB_SRCDIR)/autogen.sh
-DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+# shared library versions, option 1
+version=2.0.5
+major=2
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 


More information about the maemo-commits mailing list