[Pkg-utopia-maintainers] Bug#614795: upower: Add a package for gobject introspection support

Frederic Peters fpeters at debian.org
Wed Feb 23 13:00:22 UTC 2011


Package: upower
Version: 0.9.8-2
Severity: normal


GNOME Shell 2.91.90 requires upower built with gobject introspection support
built-in.

Here is a patch adding a new gir1.2-upower-1.0 package, I tested it against
that new version of gnome shell and it works fine.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages upower depends on:
ii  dbus                          1.4.6-1    simple interprocess messaging syst
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib
ii  libdbus-1-3                   1.4.6-1    simple interprocess messaging syst
ii  libdbus-glib-1-2              0.88-2.1   simple interprocess messaging syst
ii  libglib2.0-0                  2.28.1-1   The GLib library of C routines
ii  libgudev-1.0-0                166-1      GObject-based wrapper library for 
ii  libimobiledevice1             1.0.4-2    Library for communicating with the
ii  libplist1                     1.3-2      Library for handling Apple binary 
ii  libpolkit-gobject-1-0         0.100-0    PolicyKit Authorization API
ii  libupower-glib1               0.9.8-2    abstraction for power management -
ii  libusb-1.0-0                  2:1.0.8-2  userspace USB programming library
ii  udev                          166-1      /dev/ and hotplug management daemo

Versions of packages upower recommends:
ii  pm-utils                      1.4.1-6    utilities and scripts for power ma
ii  policykit-1                   0.99-3     framework for managing administrat

upower suggests no packages.

-- no debconf information
-------------- next part --------------
commit 20644e3edc5a387bacf5abf30debe8a1b34efcaa
Author: Fr?d?ric P?ters <fpeters at 0d.be>
Date:   Wed Feb 23 13:56:32 2011 +0100

    Add a package for gobject introspection support

diff --git a/debian/control b/debian/control
index 81e5d19..eef57b9 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,10 @@ Build-Depends: debhelper (>= 7.0.50~),
  libkvm-dev [kfreebsd-any],
  libpolkit-gobject-1-dev (>= 0.91),
  libusb-1.0-0-dev (>= 1.0.0) [linux-any],
- libimobiledevice-dev (>= 0.9.7) [linux-any]
+ libimobiledevice-dev (>= 0.9.7) [linux-any],
+ libgirepository1.0-dev (>= 0.9.12),
+ gobject-introspection (>= 0.9.12-4~),
+ gir1.2-glib-2.0
 Standards-Version: 3.9.1
 Vcs-Git: git://git.debian.org/git/pkg-utopia/upower.git
 Vcs-Browser: http://git.debian.org/?p=pkg-utopia/upower.git;a=summary
@@ -71,3 +74,20 @@ Description: abstraction for power management - development files
  .
  This package contains files that are needed to build applications.
 
+Package: gir1.2-upower-1.0
+Section: libs
+Architecture: any
+Depends: ${gir:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: GObject introspection data for upower
+ upower provides an interface to enumerate power sources on the system
+ and control system-wide power management. Any application can access the
+ org.freedesktop.UPower service on the system message bus. Some
+ operations (such as suspending the system) are restricted using PolicyKit.
+ .
+ This package contains introspection data for upower.
+ .
+ It can be used by packages using the GIRepository format to generate
+ dynamic bindings.
+
diff --git a/debian/gir1.2-upower-1.0.install b/debian/gir1.2-upower-1.0.install
new file mode 100644
index 0000000..9c99c1c
--- /dev/null
+++ b/debian/gir1.2-upower-1.0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/girepository-1.0/
diff --git a/debian/libupower-glib-dev.install b/debian/libupower-glib-dev.install
index c745cd2..4b22225 100644
--- a/debian/libupower-glib-dev.install
+++ b/debian/libupower-glib-dev.install
@@ -1,3 +1,4 @@
 usr/lib/libupower-glib.{so,a}
 usr/lib/pkgconfig/upower-glib.pc
 usr/include/libupower-glib/
+usr/share/gir-1.0/UPowerGlib-1.0.gir
diff --git a/debian/rules b/debian/rules
index 8fe801b..804fdc0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- --enable-gtk-doc
+	dh_auto_configure -- --enable-gtk-doc --enable-introspection
 
 override_dh_auto_build:
 	dh_auto_build
@@ -20,3 +20,7 @@ override_dh_install:
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 	dh_install -pupower debian/tmp/lib/udev/rules.d/
 endif
+
+override_dh_shlibdeps:
+	dh_shlibdeps
+	dh_girepository -plibupower-glib1


More information about the Pkg-utopia-maintainers mailing list