Add debian directory

Related: OS#3218
Change-Id: I5ff1d76f533b9ac68ab3f2c70ead6b66f4413b4f
This commit is contained in:
Pau Espin 2018-04-26 19:26:58 +02:00 committed by Harald Welte
parent 85538b98d0
commit 52f0929e62
11 changed files with 138 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libusrp (3.4.2) unstable; urgency=medium
* Initial release
-- Harald Welte <laforge@gnumonks.org> Sat, 28 Apr 2018 10:06:51 +0000

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

50
debian/control vendored Normal file
View File

@ -0,0 +1,50 @@
Source: libusrp
Priority: optional
Maintainer: Pau Espin Pedrol <pespin@sysmocom.de>
Build-Depends: debhelper (>=9),
dh-autoreconf,
autotools-dev,
autoconf,
automake,
doxygen,
libtool,
pkg-config,
libusb-1.0-0-dev,
libboost-all-dev
Standards-Version: 3.9.8
Section: libs
Homepage: https://osmocom.org/projects/osmotrx/
Vcs-Git: git://git.osmocom.org/libusrp
Vcs-Browser: https://git.osmocom.org/libusrp
Package: libusrp1
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: gnuradio based driver library for the USRP1 SDR
Gnuradio removed libusrp as it switched to UHD support, including USRP1
devices. However, USRP1 on UHD doesn't support timestamps, so this library
remains needed for applications that use timestamps such as osmo-trx. To find
out how this library was forked from gnuradio, check libusrp.git commit
description ec6adccbbdda1a4614089aaf52f9e1bab75494e7.
Package: libusrp-dev
Section: libdevel
Architecture: any
Depends: libusrp1 (= ${binary:Version}), ${misc:Depends}
Description: gnuradio based driver library for the USRP1 SDR - dev files
Package: libusrp-firmware
Architecture: any
Depends: libusrp1 (= ${binary:Version}), ${misc:Depends}
Description: gnuradio based driver library for the USRP1 SDR - firmware files
Package: libusrp-utils
Architecture: any
Depends: libusrp1 (= ${binary:Version}), ${misc:Depends}
Description: gnuradio based driver library for the USRP1 SDR - several tools
Package: libusrp-doc
Section: doc
Architecture: all
Depends: libusrp1 (= ${binary:Version}), ${misc:Depends}, libjs-jquery
Description: Documentation for gnuradio based driver library for the USRP1 SDR

41
debian/copyright vendored Normal file
View File

@ -0,0 +1,41 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libusrp
Source: git://git.osmocom.org/libusrp
Files: *
Copyright: 2003-2010 Free Software Foundation, Inc.
License: GPL-3.0+
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; either version 2 of the License, or
(at your option) any later version.
.
This package 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 <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General Public License
Version 3 can be found in "/usr/share/common-licenses/GPL-3".
Files: debian/*
Copyright: 2018 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
License: GPL-3.0+
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; either version 2 of the License, or
(at your option) any later version.
.
This package 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 <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General Public License
Version 3 can be found in "/usr/share/common-licenses/GPL-3".

4
debian/libusrp-dev.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/lib*.la
usr/lib/*/pkgconfig/*

1
debian/libusrp-doc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/doc/*

1
debian/libusrp-firmware.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/usrp/*/*.rbf

2
debian/libusrp-utils.install vendored Normal file
View File

@ -0,0 +1,2 @@
usr/bin/usrper
usr/bin/usrp_cal_dc_offset

1
debian/libusrp1.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/lib*.so.*

31
debian/rules vendored Executable file
View File

@ -0,0 +1,31 @@
#!/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_autoreconf:
echo $(VERSION) > .tarball-version
dh_autoreconf
override_dh_auto_configure:
dh_auto_configure -- --enable-doxygen
override_dh_install:
sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
dh_install
override_dh_clean:
dh_clean
rm -f tests/package.m4 tests/testsuite .version .tarball-version
override_dh_auto_test:
dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)