Bug#826743: introspection typelib file needs to be split out into a separate binary package
Package: libfwupd1
Version: 0.7.0-1
Severity: important
Tags: patch
Hi,
the gobjection introspection file
/usr/lib/$(MULTIARCH_PATH)/girepository-1.0/Fwupd-1.0.typelib
should to be split out into a separate binary package following the
gobject-introspection policy [1].
In this case the package would be named gir1.2-fwupd-1.0
Patch is attached.
Thanks for considering,
Michael
[1] https://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gobject-introspection/debian/policy.txt?view=markup
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libfwupd1 depends on:
ii libc6 2.22-11
ii libglib2.0-0 2.48.1-1
libfwupd1 recommends no packages.
libfwupd1 suggests no packages.
-- no debconf information
diff --git a/debian/changelog b/debian/changelog
index 3d20da4..9cae1f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+fwupd (0.7.0-2) UNRELEASED; urgency=medium
+
+ * Split GObject introspection files into a separate package named
+ gir1.2-fwupd-1.0.
+
+ -- Michael Biebl <biebl@debian.org> Wed, 08 Jun 2016 15:25:48 +0200
+
fwupd (0.7.0-1) unstable; urgency=medium
* New upstream version (0.7.0)
diff --git a/debian/control b/debian/control
index a1ca72a..1bccec9 100644
--- a/debian/control
+++ b/debian/control
@@ -84,6 +84,7 @@ Package: libfwupd-dev
Architecture: linux-any
Multi-Arch: same
Depends: libfwupd1 (= ${binary:Version}),
+ gir1.2-fwupd-1.0 (= ${binary:Version}),
${misc:Depends}
Breaks: fwupd-dev (<< 0.5.4-2~)
Replaces: fwupd-dev (<< 0.5.4-2~)
@@ -98,6 +99,21 @@ Description: development files for libfwupd
.
This package provides the development files for libfwupd
+Package: gir1.2-fwupd-1.0
+Architecture: linux-any
+Multi-Arch: same
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ ${gir:Depends}
+Breaks: libfwupd1 (<< 0.7.0-2~)
+Replaces: libfwupd1 (<< 0.7.0-2~)
+Section: introspection
+Description: GObject introspection data for libfwupd
+ This package provides the introspection data for libfwupd.
+ .
+ It can be used by packages using the GIRepository format to generate
+ dynamic bindings.
+
Package: libdfu-dev
Architecture: linux-any
Multi-Arch: same
diff --git a/debian/gir1.2-fwupd-1.0.install b/debian/gir1.2-fwupd-1.0.install
new file mode 100644
index 0000000..5386272
--- /dev/null
+++ b/debian/gir1.2-fwupd-1.0.install
@@ -0,0 +1 @@
+usr/lib/*/girepository-1.0/Fwupd-1.0.typelib
diff --git a/debian/libfwupd1.install b/debian/libfwupd1.install
index b1173c8..6467ff9 100644
--- a/debian/libfwupd1.install
+++ b/debian/libfwupd1.install
@@ -1,2 +1 @@
usr/lib/*/libfwup*.so.*
-usr/lib/*/girepository-1.0/Fwup*.typelib
diff --git a/debian/rules b/debian/rules
index 1d0ef9d..8f3b293 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ ifeq "1.2.12" "$(word 1, $(sort 1.2.12 $(COLORHUG_VERSION)))"
endif
%:
- dh $@ --with autoreconf
+ dh $@ --with autoreconf,gir
override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf ./autogen.sh
Reply to: