deb: fix build by adding libosmogb doc package

Change-Id: I3fe45feaee4033c17e25c4c0552d54a81d9b44f5
Fixes: OS#2340
diff --git a/debian/control b/debian/control
index 9b3761b..b19448e 100644
--- a/debian/control
+++ b/debian/control
@@ -162,6 +162,21 @@
  The libosmogb library in particular contains a GPRS BSSGP protocol
  implementation.
 
+Package: libosmogb-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         libosmogb4,
+         libjs-jquery
+Description: Documentation for the Osmo GPRS Gb library
+ This is part of the libosmocore "meta"-library. The libosmocore library
+ contains various utility functions that were originally developed as part of
+ the OpenBSC project, but which are of a more generic nature and thus useful to
+ (at least) other programs that are developed in the sphere of Free Software /
+ Open Source mobile communication.
+ .
+ This package contains the documentation for the libosmogb library.
+
 Package: libosmogsm7
 Section: libs
 Architecture: any
diff --git a/debian/libosmogb-doc.doc-base b/debian/libosmogb-doc.doc-base
new file mode 100644
index 0000000..f690318
--- /dev/null
+++ b/debian/libosmogb-doc.doc-base
@@ -0,0 +1,7 @@
+Document: libosmogb-doc
+Title: Documentation for the libosmogb library
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libosmocore/gb/html/index.html
+Files: /usr/share/doc/libosmocore/gb/html/*.html
diff --git a/debian/libosmogb-doc.install b/debian/libosmogb-doc.install
new file mode 100644
index 0000000..957c82c
--- /dev/null
+++ b/debian/libosmogb-doc.install
@@ -0,0 +1 @@
+usr/share/doc/libosmocore/gb/
diff --git a/debian/rules b/debian/rules
index e173510..2399b01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,5 +53,6 @@
 	$(RM) -r doc/codec/
 	$(RM) -r doc/core/
 	$(RM) -r doc/gsm/
+	$(RM) -r doc/gb/
 	$(RM) -r doc/vty/html/
 	$(RM) -r doc/vty/latex/