From 29122dc229823284f2fd51d4e873e25d848192ef Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 17 Jan 2019 17:22:04 +0100 Subject: add debian packaging for libosmodsp --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 69 ++++++++++++++++++++++++++++++++++++++++++ debian/copyright | 28 +++++++++++++++++ debian/libosmodsp-dev.install | 5 +++ debian/libosmodsp-doc.doc-base | 7 +++++ debian/libosmodsp-doc.install | 1 + debian/libosmodsp0.install | 1 + debian/rules | 24 +++++++++++++++ debian/source/format | 1 + 10 files changed, 142 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libosmodsp-dev.install create mode 100644 debian/libosmodsp-doc.doc-base create mode 100644 debian/libosmodsp-doc.install create mode 100644 debian/libosmodsp0.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b2e944c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libosmodsp (0.3.0) testing; urgency=low + + * Initial release. + + -- Harald Welte Thu, 17 Jan 2019 17:19:00 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2172229 --- /dev/null +++ b/debian/control @@ -0,0 +1,69 @@ +Source: libosmodsp +Section: libs +Priority: optional +Maintainer: Harald Welte +Build-Depends: debhelper (>= 9), + autotools-dev, + autoconf, + automake, + libtool, + dh-autoreconf, + libdpkg-perl, + git, + doxygen, + pkg-config, + libfftw3-dev +Standards-Version: 3.9.6 +Vcs-Browser: http://git.osmocom.org/libosmo-dsp/ +Vcs-Git: git://git.osmocom.org/libosmo-dsp.git +Homepage: https://osmocom.org/projects/libosmo-dsp + +Package: libosmodsp0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: same +Description: Osmocom Software Defined Radio Digital Signal Processing Library + C-language library for common DSP (Digital Signal Processing) primitives + for SDR (Software Defined Radio). They are part of the Osmocom (Open + Source Mobile Communications) project. + +Package: libosmodsp-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, + libosmodsp0 (= ${binary:Version}) +Multi-Arch: same +Description: Development headers for Osmocom DSP Library + C-language library for common DSP (Digital Signal Processing) primitives + for SDR (Software Defined Radio). They are part of the Osmocom (Open + Source Mobile Communications) project. + . + This package contains the development files needed for developing with + the libosmodsp library. + +Package: libosmodsp-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, + libosmodsp0, + libjs-jquery +Description: Documentation for the Osmocom DSP Library + C-language library for common DSP (Digital Signal Processing) primitives + for SDR (Software Defined Radio). They are part of the Osmocom (Open + Source Mobile Communications) project. + . + This package contains the documentation for the libosmodsp library. + +Package: libosmodsp-dbg +Section: debug +Architecture: any +Priority: extra +Depends: libosmodsp0 (= ${binary:Version}), ${misc:Depends} +Multi-Arch: same +Description: Debug symbols for Osmocom DSP library + C-language library for common DSP (Digital Signal Processing) primitives + for SDR (Software Defined Radio). They are part of the Osmocom (Open + Source Mobile Communications) project. + . + This package contains the debug symbols for the library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a4fef49 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libosmodsp +Source: git://git.osmocom.org/libosmo-dsp.git + +Files: * +Copyright: 2011-2013 Sylvain Munaut +License: GPL-2+ + +Files: debian/* +Copyright: 2018 Harald Welte +License: GPL-2+ + +License: GPL-2+ + This package is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/libosmodsp-dev.install b/debian/libosmodsp-dev.install new file mode 100644 index 0000000..465f933 --- /dev/null +++ b/debian/libosmodsp-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/lib*.la +usr/lib/*/pkgconfig/* diff --git a/debian/libosmodsp-doc.doc-base b/debian/libosmodsp-doc.doc-base new file mode 100644 index 0000000..58b31c0 --- /dev/null +++ b/debian/libosmodsp-doc.doc-base @@ -0,0 +1,7 @@ +Document: libosmodsp-doc +Title: Documentation for the libosmods library +Section: Programming + +Format: HTML +Index: /usr/share/doc/libosmodsp/html/index.html +Files: /usr/share/doc/libosmodsp/html/*.html diff --git a/debian/libosmodsp-doc.install b/debian/libosmodsp-doc.install new file mode 100644 index 0000000..f04f649 --- /dev/null +++ b/debian/libosmodsp-doc.install @@ -0,0 +1 @@ +usr/share/doc/libosmodsp/* diff --git a/debian/libosmodsp0.install b/debian/libosmodsp0.install new file mode 100644 index 0000000..c4f1e46 --- /dev/null +++ b/debian/libosmodsp0.install @@ -0,0 +1 @@ +usr/lib/*/libosmodsp*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ce048f8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) +DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) +VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +#export DH_VERBOSE=1 + + +%: + dh $@ --with autoreconf --fail-missing + +override_dh_strip: + dh_strip --dbg-package=libosmodsp-dbg + +override_dh_install: + sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'` + dh_install + +override_dh_clean: + dh_clean + rm -f .version diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3