fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-trx/+/43114?usp=email )


Change subject: debian: add packaging for libosmo-trx
......................................................................

debian: add packaging for libosmo-trx

Add the usual Debian packaging files, closely following the ones in
libosmocore.git: the shared library package libosmotrx0, as well as
the -dev, -doc, and -dbg packages.

Change-Id: I56f0074ad121ecacb076b508d1adfdd71cce99ec
---
M debian/control
A debian/libosmo-trx-dev.install
A debian/libosmo-trx-doc.doc-base
A debian/libosmo-trx-doc.install
A debian/libosmotrx0.install
M debian/rules
6 files changed, 77 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/14/43114/1

diff --git a/debian/control b/debian/control
index 20dda3f..c51db2f 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,8 @@
                liblimesuite-dev,
                libbladerf-dev,
                libosmocore-dev (>= 1.10.0),
-               osmo-gsm-manuals-dev (>= 1.6.0)
+               osmo-gsm-manuals-dev (>= 1.6.0),
+               doxygen
 Standards-Version: 3.9.6
 Vcs-Browser: https://gitea.osmocom.org/cellular-infrastructure/osmo-trx
 Vcs-Git: https://gitea.osmocom.org/cellular-infrastructure/osmo-trx
@@ -30,10 +31,69 @@
 Architecture: any
 Section: debug
 Priority: extra
-Depends: osmo-trx-uhd (= ${binary:Version}), osmo-trx-usrp1 (= 
${binary:Version}), osmo-trx-lms (= ${binary:Version}), osmo-trx-ipc (= 
${binary:Version}), ${misc:Depends}
+Depends: osmo-trx-uhd (= ${binary:Version}),
+         osmo-trx-usrp1 (= ${binary:Version}),
+         osmo-trx-lms (= ${binary:Version}),
+         osmo-trx-ipc (= ${binary:Version}),
+         ${misc:Depends}
 Description: Debug symbols for the osmo-trx-*
  Make debugging possible

+Package: libosmotrx0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Description: Osmocom TRX protocol (TRXC/TRXD) library
+ The libosmo-trx library implements the TRXC/TRXD (OpenBTS-style TRX)
+ protocol, spoken over UDP sockets between a transceiver (e.g. OsmoTRX)
+ and L1 software (e.g. OsmoBTS): message codecs, a TRXC client command
+ queue engine, and osmo_io based socket endpoint management.
+
+Package: libosmo-trx-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libosmocore-dev,
+         libosmotrx0 (= ${binary:Version})
+Multi-Arch: same
+Description: Development headers for the Osmocom TRX protocol library
+ The libosmo-trx library implements the TRXC/TRXD (OpenBTS-style TRX)
+ protocol, spoken over UDP sockets between a transceiver (e.g. OsmoTRX)
+ and L1 software (e.g. OsmoBTS): message codecs, a TRXC client command
+ queue engine, and osmo_io based socket endpoint management.
+ .
+ This package contains the development files needed for developing with
+ the libosmo-trx library.
+
+Package: libosmo-trx-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         libosmotrx0,
+         libjs-jquery
+Description: Documentation for the Osmocom TRX protocol library
+ The libosmo-trx library implements the TRXC/TRXD (OpenBTS-style TRX)
+ protocol, spoken over UDP sockets between a transceiver (e.g. OsmoTRX)
+ and L1 software (e.g. OsmoBTS): message codecs, a TRXC client command
+ queue engine, and osmo_io based socket endpoint management.
+ .
+ This package contains the documentation for the libosmo-trx library.
+
+Package: libosmo-trx-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: libosmotrx0 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: Debug symbols for the Osmocom TRX protocol library
+ The libosmo-trx library implements the TRXC/TRXD (OpenBTS-style TRX)
+ protocol, spoken over UDP sockets between a transceiver (e.g. OsmoTRX)
+ and L1 software (e.g. OsmoBTS): message codecs, a TRXC client command
+ queue engine, and osmo_io based socket endpoint management.
+ .
+ This package contains the debug symbols for the library.
+
 Package: osmo-trx-uhd
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
diff --git a/debian/libosmo-trx-dev.install b/debian/libosmo-trx-dev.install
new file mode 100644
index 0000000..a0c9f74
--- /dev/null
+++ b/debian/libosmo-trx-dev.install
@@ -0,0 +1,4 @@
+usr/include/osmocom/trx/*
+usr/lib/*/libosmotrx.so
+usr/lib/*/libosmotrx.la
+usr/lib/*/pkgconfig/libosmotrx.pc
diff --git a/debian/libosmo-trx-doc.doc-base b/debian/libosmo-trx-doc.doc-base
new file mode 100644
index 0000000..bede62b
--- /dev/null
+++ b/debian/libosmo-trx-doc.doc-base
@@ -0,0 +1,7 @@
+Document: libosmo-trx-doc
+Title: Documentation for the libosmo-trx library
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libosmo-trx/html/index.html
+Files: /usr/share/doc/libosmo-trx/html/*.html
diff --git a/debian/libosmo-trx-doc.install b/debian/libosmo-trx-doc.install
new file mode 100644
index 0000000..080d7d8
--- /dev/null
+++ b/debian/libosmo-trx-doc.install
@@ -0,0 +1 @@
+usr/share/doc/libosmo-trx/*
diff --git a/debian/libosmotrx0.install b/debian/libosmotrx0.install
new file mode 100644
index 0000000..d3010d4
--- /dev/null
+++ b/debian/libosmotrx0.install
@@ -0,0 +1 @@
+usr/lib/*/libosmotrx*.so.*
diff --git a/debian/rules b/debian/rules
index 5d4c73d..db558ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,8 @@
                $(NULL)

 override_dh_strip:
-       dh_strip --dbg-package=osmo-trx-dbg
+       dh_strip -posmo-trx-uhd -posmo-trx-usrp1 -posmo-trx-lms -posmo-trx-ipc 
--dbg-package=osmo-trx-dbg
+       dh_strip -plibosmotrx0 --dbg-package=libosmo-trx-dbg

 # Don't create .pdf.gz files (barely saves space and they can't be opened 
directly by most pdf readers)
 override_dh_compress:

--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43114?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I56f0074ad121ecacb076b508d1adfdd71cce99ec
Gerrit-Change-Number: 43114
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to