r36475 - in /packages/experimental/libgdata/debian: changelog control control.in rules tests/ tests/compile tests/control

jbicha-guest at users.alioth.debian.org jbicha-guest at users.alioth.debian.org
Thu Dec 13 19:44:25 UTC 2012


Author: jbicha-guest
Date: Thu Dec 13 19:44:25 2012
New Revision: 36475

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=36475
Log:
* debian/control:
  - add dh-autoreconf to Build-Depends.
  - add XS-Testsuite: autopkgtest
* debian/rules: make sure we run autoreconf before building, so that
  01_pc_depends.patch gets properly applied.
* debian/tests/control, debian/tests/compile: add a simple compile and run
  test to make sure we can successfully build against libgdata.

Added:
    packages/experimental/libgdata/debian/tests/
    packages/experimental/libgdata/debian/tests/compile
    packages/experimental/libgdata/debian/tests/control
Modified:
    packages/experimental/libgdata/debian/changelog
    packages/experimental/libgdata/debian/control
    packages/experimental/libgdata/debian/control.in
    packages/experimental/libgdata/debian/rules

Modified: packages/experimental/libgdata/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/changelog?rev=36475&op=diff
==============================================================================
--- packages/experimental/libgdata/debian/changelog [utf-8] (original)
+++ packages/experimental/libgdata/debian/changelog [utf-8] Thu Dec 13 19:44:25 2012
@@ -1,3 +1,15 @@
+libgdata (0.13.2-2) UNRELEASED; urgency=low
+
+  * debian/control:
+    - add dh-autoreconf to Build-Depends.
+    - add XS-Testsuite: autopkgtest
+  * debian/rules: make sure we run autoreconf before building, so that
+    01_pc_depends.patch gets properly applied.
+  * debian/tests/control, debian/tests/compile: add a simple compile and run
+    test to make sure we can successfully build against libgdata.
+
+ -- Mathieu Trudel-Lapierre <mathieu-tl at ubuntu.com>  Thu, 13 Dec 2012 14:00:48 -0500
+
 libgdata (0.13.2-1) experimental; urgency=low
 
   [ Jeremy Bicha ]

Modified: packages/experimental/libgdata/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/control?rev=36475&op=diff
==============================================================================
--- packages/experimental/libgdata/debian/control [utf-8] (original)
+++ packages/experimental/libgdata/debian/control [utf-8] Thu Dec 13 19:44:25 2012
@@ -6,9 +6,10 @@
 Section: libs
 Priority: optional
 Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>
-Uploaders: Josselin Mouette <joss at debian.org>, Michael Biebl <biebl at debian.org>, Sebastien Bacher <seb128 at debian.org>, Sjoerd Simons <sjoerd at debian.org>
+Uploaders: Andreas Henriksson <andreas at fatal.se>, Josselin Mouette <joss at debian.org>, Michael Biebl <biebl at debian.org>, Sjoerd Simons <sjoerd at debian.org>
 Build-Depends: cdbs (>= 0.4.41),
                debhelper (>= 8),
+               dh-autoreconf,
                gnome-pkg-tools (>= 0.11),
                pkg-config (>= 0.14),
                libglib2.0-dev (>= 2.31.0),
@@ -62,6 +63,7 @@
          libxml2-dev,
          libsoup2.4-dev (>= 2.37.91)
 Suggests: libgdata-doc
+XS-Testsuite: autopkgtest
 Description: Library for accessing GData webservices - development files
  libgdata is a GLib-based library for accessing online service APIs using
  the GData protocol — most notably, Google's services. It provides APIs

Modified: packages/experimental/libgdata/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/control.in?rev=36475&op=diff
==============================================================================
--- packages/experimental/libgdata/debian/control.in [utf-8] (original)
+++ packages/experimental/libgdata/debian/control.in [utf-8] Thu Dec 13 19:44:25 2012
@@ -5,6 +5,7 @@
 Uploaders: @GNOME_TEAM@
 Build-Depends: cdbs (>= 0.4.41),
                debhelper (>= 8),
+               dh-autoreconf,
                gnome-pkg-tools (>= 0.11),
                pkg-config (>= 0.14),
                libglib2.0-dev (>= 2.31.0),
@@ -58,6 +59,7 @@
          libxml2-dev,
          libsoup2.4-dev (>= 2.37.91)
 Suggests: libgdata-doc
+XS-Testsuite: autopkgtest
 Description: Library for accessing GData webservices - development files
  libgdata is a GLib-based library for accessing online service APIs using
  the GData protocol — most notably, Google's services. It provides APIs

Modified: packages/experimental/libgdata/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/rules?rev=36475&op=diff
==============================================================================
--- packages/experimental/libgdata/debian/rules [utf-8] (original)
+++ packages/experimental/libgdata/debian/rules [utf-8] Thu Dec 13 19:44:25 2012
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/utils.mk

Added: packages/experimental/libgdata/debian/tests/compile
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/tests/compile?rev=36475&op=file
==============================================================================
--- packages/experimental/libgdata/debian/tests/compile (added)
+++ packages/experimental/libgdata/debian/tests/compile [utf-8] Thu Dec 13 19:44:25 2012
@@ -1,0 +1,29 @@
+#!/bin/sh
+# autopkgtest check: Builds a small application against libgdata, checking
+# if it compiles, links and runs successfully.
+# Author: Mathieu Trudel-Lapierre <mathieu-tl at ubuntu.com>
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > build_test.c
+
+#include <gdata/gdata.h>
+int main(){
+	GDataYouTubeComment *comment = NULL;
+	g_type_init();
+	comment = gdata_youtube_comment_new (NULL);
+	if (comment == NULL)
+		return 1;
+	return 0;
+}
+EOF
+
+gcc -o build_test build_test.c `pkg-config --cflags --libs libgdata`
+echo "build: OK"
+[ -x build_test ]
+./build_test
+echo "run: OK"
+

Added: packages/experimental/libgdata/debian/tests/control
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/experimental/libgdata/debian/tests/control?rev=36475&op=file
==============================================================================
--- packages/experimental/libgdata/debian/tests/control (added)
+++ packages/experimental/libgdata/debian/tests/control [utf-8] Thu Dec 13 19:44:25 2012
@@ -1,0 +1,2 @@
+Tests: compile
+Depends: libgdata-dev, build-essential, pkg-config




More information about the pkg-gnome-commits mailing list