[hamradio-commits] [lysdr] 02/02: Initial commit of Debian packaging files.

Iain Learmonth irl-guest at moszumanska.debian.org
Sun Oct 12 17:43:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

irl-guest pushed a commit to branch master
in repository lysdr.

commit 3c54e8fce697bd610d9ac834fa949483ce49fe5f
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Sun Oct 12 18:29:12 2014 +0100

    Initial commit of Debian packaging files.
    
     * Based on Debian Hamradio Maintainers template [1]
     * Added README.source to explain the dfsg repack for waf [2]
     * Wrote a man page based on help2man's output for lysdr
     * Added a patch for waf to stop it climbing to parent directories
       avoiding permissions errors when performing a clean
    
    [1]: http://anonscm.debian.org/viewvc/pkg-hamradio/trunk/package_template/
    [2]: https://wiki.debian.org/UnpackWaf
---
 debian/README.source                        |  9 +++++
 debian/changelog                            |  5 +++
 debian/compat                               |  1 +
 debian/control                              | 36 ++++++++++++++++++
 debian/copyright                            | 29 +++++++++++++++
 debian/lysdr.1                              | 58 +++++++++++++++++++++++++++++
 debian/lysdr.manpages                       |  1 +
 debian/patches/add_no_climb_distclean.patch | 14 +++++++
 debian/patches/series                       |  1 +
 debian/rules                                | 40 ++++++++++++++++++++
 debian/source/format                        |  1 +
 debian/watch                                |  5 +++
 12 files changed, 200 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..f563c52
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+
+The upstream source was repacked in order to unpack the waf binary. See [1] for
+more details on why this was necessary.
+
+[1]: https://wiki.debian.org/UnpackWaf
+
+The get-orig-source rule in debian/rules will perform this repacking
+automatically.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f79288c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+lysdr (1.0~git20141012+dfsg1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Iain R. Learmonth <irl at fsfe.org>  Sun, 12 Oct 2014 16:22:03 +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..a11ee56
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: lysdr
+Section: hamradio
+Priority: optional
+Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
+Uploaders: Iain R. Learmonth <irl at fsfe.org>
+Build-Depends: debhelper (>= 9),
+               python (>= 2.7.0),
+               pkg-config,
+               libgtk2.0-dev,
+               libjack-dev,
+               libfftw3-dev
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-hamradio/lysdr.git
+Vcs-Git: http://anonscm.debian.org/git/pkg-hamradio/lysdr.git
+Homepage: https://github.com/gordonjcp/lysdr
+
+Package: lysdr
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Simple software-defined radio
+ A simple SDR application that takes an IQ source, either a soundcard or a
+ prerecorded file, and produces a waterfall and allows demodulation using either
+ USB or LSB.
+
+Package: lysdr-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, lysdr (= ${binary:Version})
+Description: Simple software-defined radio -- debugging symbols
+ A simple SDR application that takes an IQ source, either a soundcard or a
+ prerecorded file, and produces a waterfall and allows demodulation using either
+ USB or LSB.
+ .
+ This package contains the debugging symbols for lysdr.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f57cd15
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lysdr
+Source: https://github.com/gordonjcp/lysdr
+
+Files: *
+Copyright: © 2010-2014 Gordon JC Pearce MM0YEQ
+License: GPL-2+
+
+Files: debian/*
+Copyright: © 2014 Iain R. Learmonth <irl at fsfe.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program 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 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 <http://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-2".
+
diff --git a/debian/lysdr.1 b/debian/lysdr.1
new file mode 100644
index 0000000..3b610a2
--- /dev/null
+++ b/debian/lysdr.1
@@ -0,0 +1,58 @@
+.TH LYSDR "1" "October 2014" "lysdr" "User Commands"
+.SH NAME
+lysdr \- simple software-defined radio
+.SH SYNOPSIS
+lysdr [OPTIONS]
+.SH DESCRIPTION
+A simple SDR application that takes an IQ source, either a soundcard or a
+prerecorded file, and produces a waterfall and allows demodulation using either
+USB or LSB.
+.SH OPTIONS
+.IP
+.SS "Help Options:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show help options
+.TP
+\fB\-\-help\-all\fR
+Show all help options
+.TP
+\fB\-\-help\-gtk\fR
+Show GTK+ Options
+.SS "Application Options:"
+.TP
+\fB\-H\fR, \fB\-\-horizontal\fR
+Horizontal waterfall
+.TP
+\fB\-\-ci\fR
+Autoconnect input to first two jack capture ports
+.TP
+\fB\-\-co\fR
+Autoconnect output to first two jack playback ports
+.TP
+\fB\-f\fR, \fB\-\-freq\fR=\fI\,FREQUENCY\/\fR
+Set the centre frequency in Hz
+.TP
+\fB\-F\fR, \fB\-\-fft\-size\fR=\fI\,FFT_SIZE\/\fR
+Set the FFT size (default=1024)
+.TP
+\fB\-\-tuning\-hook\fR=\fI\,PROGRAM\/\fR
+Program to run when tuned frequency changes
+.TP
+\fB\-\-display\fR=\fI\,DISPLAY\/\fR
+X display to use
+.PP
+.SH AUTHORS
+lysdr is Copyright © 2010-2014 Gordon JC Pearce MM0YEQ and contributors.
+.SH COPYRIGHT
+This manual page is Copyright © 2014 Iain R. Learmonth.
+
+This manual page was written for the Debian system (but may be used by others).
+
+Permission is granted to copy, distribute and/or modify this document under the
+terms of the GNU General Public License, Version 2 or (at your option) any
+later version published by the Free Software Foundation.
+
+On Debian systems, the complete text of the GNU General Public License can be
+found in /usr/share/common-licenses/GPL-2.
+
diff --git a/debian/lysdr.manpages b/debian/lysdr.manpages
new file mode 100644
index 0000000..35131c7
--- /dev/null
+++ b/debian/lysdr.manpages
@@ -0,0 +1 @@
+debian/lysdr.1
diff --git a/debian/patches/add_no_climb_distclean.patch b/debian/patches/add_no_climb_distclean.patch
new file mode 100644
index 0000000..4095676
--- /dev/null
+++ b/debian/patches/add_no_climb_distclean.patch
@@ -0,0 +1,14 @@
+Author: Iain R. Learmonth <irl at fsfe.org>
+Description: Do not try to climb when cleaning to avoid permission errors
+
+--- lysdr.orig/waflib/Scripting.py
++++ lysdr/waflib/Scripting.py
+@@ -5,7 +5,7 @@
+ import os,shutil,traceback,datetime,inspect,errno,sys,stat
+ from waflib import Utils,Configure,Logs,Options,ConfigSet,Context,Errors,Build,Node
+ build_dir_override=None
+-no_climb_commands=['configure']
++no_climb_commands=['configure','distclean']
+ def waf_entry_point(current_directory,version,wafdir):
+ 	Logs.init_log()
+ 	if Context.WAFVERSION!=version:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..200596a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add_no_climb_distclean.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..92ec5a2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
+dfsg_version = $(upstream_version)+dfsg1
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
+%:
+	dh $@
+
+clean:
+	dh $@
+	./waf --nocache distclean
+	find waflib -name "*.pyc" -delete
+
+build:
+	dh $@ --before configure
+	./waf --nocache configure --prefix=/usr
+	dh $@ --after configure --until build
+	./waf --nocache build
+	dh $@ --remaining
+
+binary:
+	dh $@ --until dh_auto_install
+	./waf --nocache install --destdir=debian/lysdr
+	dh $@ --remaining --before dh_strip
+	dh_strip --dbg-package=lysdr-dbg
+	dh $@ --remaining
+
+get-orig-source:
+	# get-orig-source to drop waf
+	uscan --noconf --force-download --rename --repack --download-current-version --destdir=.
+	tar -xzf $(pkg)_$(upstream_version).orig.tar.gz
+	mv $(pkg)-$(upstream_version) $(pkg)-$(dfsg_version)
+	cd $(pkg)-$(dfsg_version) ; python waf --help > /dev/null
+	mv $(pkg)-$(dfsg_version)/.waf-*/* $(pkg)-$(dfsg_version)
+	sed -i '/^#==>$$/,$$d' $(pkg)-$(dfsg_version)/waf
+	rmdir $(pkg)-$(dfsg_version)/.waf-*
+	GZIP="-9fn" tar -czf $(pkg)_$(dfsg_version).orig.tar.gz $(pkg)-$(dfsg_version)
+	rm -rf $(pkg)-$(dfsg_version)
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c6ebda8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+
+opts=dversionmangle=s/[~\+]dfsg[0-9]*// \
+ https://github.com/gordonjcp/lysdr/tags .*/v(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/lysdr.git



More information about the pkg-hamradio-commits mailing list