[hamradio-commits] [cubicsdr] 03/03: Add debian directory and files

Andreas E. Bombe aeb at moszumanska.debian.org
Mon Dec 26 02:40:34 UTC 2016


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

aeb pushed a commit to branch master
in repository cubicsdr.

commit 77fd65d0b3cc849724b6b72931841b722df4e3fb
Author: Andreas Bombe <aeb at debian.org>
Date:   Sat Dec 24 22:49:19 2016 +0100

    Add debian directory and files
---
 debian/changelog                      |   5 ++
 debian/compat                         |   1 +
 debian/control                        |  31 ++++++++
 debian/copyright                      | 133 ++++++++++++++++++++++++++++++++++
 debian/patches/disable-deb-processing |  15 ++++
 debian/patches/series                 |   3 +
 debian/patches/use-system-rtaudio     |  38 ++++++++++
 debian/patches/use-system-tinyxml     |  39 ++++++++++
 debian/rules                          |  10 +++
 debian/source/format                  |   1 +
 debian/watch                          |   3 +
 11 files changed, 279 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f4266e7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cubicsdr (0.2.0+dfsg-1) unstable; urgency=medium
+
+  * Initial release (Closes: #829516)
+
+ -- Andreas Bombe <aeb at debian.org>  Mon, 26 Dec 2016 02:58:40 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7b8984f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: cubicsdr
+Section: hamradio
+Priority: optional
+Maintainer: Debian Hamradio Maintainers <debian-hams at lists.debian.org>
+Uploaders: Andreas Bombe <aeb at debian.org>
+Build-Depends: debhelper (>= 10),
+    cmake,
+    pkg-config,
+    libsoapysdr-dev,
+    libliquid-dev,
+    libhamlib-dev,
+    libwxgtk3.0-dev,
+    libgl-dev,
+    librtaudio-dev,
+    libtinyxml-dev
+Standards-Version: 3.9.8
+Homepage: http://cubicsdr.org/
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-hamradio/cubicsdr.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-hamradio/cubicsdr.git
+
+Package: cubicsdr
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Software Defined Radio receiver
+ CubicSDR is a cross-platform Software-Defined Radio application which allows
+ you to navigate the radio spectrum and demodulate any signals you might
+ discover. It currently includes several common analog demodulation schemes such
+ as AM and FM and will support digital modes in the future.
+ .
+ CubicSDR uses SoapySDR to access SDR hardware and thereby supports all hardware
+ for which a SoapySDR module exists.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..75473e7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,133 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CubicSDR
+Upstream-Contact: Charles J. Cliffe <cj at cubicproductions.com>
+Source: http://cubicsdr.com/
+Files-Excluded: external/msvc
+                external/liquid-dsp
+                external/hamlib
+                external/deb
+                external/rtaudio
+                external/tinyxml
+                external/wglext
+
+Files: *
+Copyright: 2013-2014 Charles J. Cliffe
+Comment:
+ The source files do not contain a copyright header, although a LICENSE
+ file with the GPL-2 is included. As to whether it is GPL-2 or GPL-2+,
+ the author said "I'll make sure to clarify that it's GPL v2 or later
+ and put the appropriate information in the source headings." in
+ https://github.com/cjcliffe/CubicSDR/issues/463.
+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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of the GNU GPL version 2 can be
+ found in '/usr/share/common-licenses/GPL-2'.
+
+Files: src/util/DataTree.*
+Copyright: 2003 Charles J. Cliffe
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+Files: external/lodepng/*
+Copyright: 2005-2016 Lode Vandevenne
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+     1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+ .
+     2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+ .
+     3. This notice may not be removed or altered from any source
+     distribution.
+
+Files: font/*.png
+Copyright: 2003 Bitstream, Inc.
+Comment:
+ The PNG images in fonts/ contain sets of characters rendered in
+ different sizes from Vera Sans Mono. Upstream does not mention font
+ copyright or licenses, the following license text is copied from the
+ Debian package ttf-bitstream-vera.
+License: Bitstream
+ All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of the fonts accompanying this license ("Fonts") and associated
+ documentation files (the "Font Software"), to reproduce and distribute
+ the Font Software, including without limitation the rights to use, copy,
+ merge, publish, distribute, and/or sell copies of the Font Software, and
+ to permit persons to whom the Font Software is furnished to do so,
+ subject to the following conditions:
+ .
+ The above copyright and trademark notices and this permission notice
+ shall be included in all copies of one or more of the Font Software
+ typefaces.
+ .
+ The Font Software may be modified, altered, or added to, and in
+ particular the designs of glyphs or characters in the Fonts may be
+ modified and additional glyphs or characters may be added to the Fonts,
+ only if the fonts are renamed to names not containing either the words
+ "Bitstream" or the word "Vera".
+ .
+ This License becomes null and void to the extent applicable to Fonts or
+ Font Software that has been modified and is distributed under the
+ "Bitstream Vera" names.
+ .
+ The Font Software may be sold as part of a larger software package but
+ no copy of one or more of the Font Software typefaces may be sold by
+ itself.
+ .
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+ COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
+ BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL,
+ OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
+ SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
+ .
+ Except as contained in this notice, the names of Gnome, the Gnome
+ Foundation, and Bitstream Inc., shall not be used in advertising or
+ otherwise to promote the sale, use or other dealings in this Font
+ Software without prior written authorization from the Gnome Foundation
+ or Bitstream Inc., respectively. For further information, contact:
+ <fonts at gnome.org>.
diff --git a/debian/patches/disable-deb-processing b/debian/patches/disable-deb-processing
new file mode 100644
index 0000000..86bf82f
--- /dev/null
+++ b/debian/patches/disable-deb-processing
@@ -0,0 +1,15 @@
+Description: Disable some deb processing in CMakeLists.txt
+Author: Andreas Bombe <aeb at debian.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -944,8 +944,6 @@
+     INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.desktop"
+         	DESTINATION share/applications)
+         
+-    CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/external/deb/deb_post.sh.in" 
+-			"${CMAKE_CURRENT_BINARY_DIR}/deb_post.sh" @ONLY IMMEDIATE)
+     CONFIGURE_FILE(
+       "${PROJECT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
+       "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..884e45f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+use-system-rtaudio
+use-system-tinyxml
+disable-deb-processing
diff --git a/debian/patches/use-system-rtaudio b/debian/patches/use-system-rtaudio
new file mode 100644
index 0000000..8bdc3b5
--- /dev/null
+++ b/debian/patches/use-system-rtaudio
@@ -0,0 +1,38 @@
+Description: Use system librtaudio instead of embedded copy
+ Edit the cmake script to use the system installed librtaudio instead of
+ the (removed in Debian) embedded copy.
+Author: Andreas Bombe <aeb at debian.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -120,6 +120,13 @@
+ include_directories(${LIQUID_INCLUDES})
+ SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} ${LIQUID_LIBRARIES})
+ 
++
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(RTAUDIO REQUIRED rtaudio)
++include_directories(${RTAUDIO_INCLUDE_DIRS})
++SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} ${RTAUDIO_LIBRARIES})
++
++
+ find_package(wxWidgets COMPONENTS gl core propgrid adv base REQUIRED)
+ set(wxWidgets_CONFIGURATION mswu)
+ include(${wxWidgets_USE_FILE})
+@@ -304,7 +311,6 @@
+     src/forms/SDRDevices/SDRDevicesForm.cpp
+     src/forms/SDRDevices/SDRDeviceAdd.cpp
+     src/forms/SDRDevices/SDRDeviceAddForm.cpp
+-	external/rtaudio/RtAudio.cpp
+ 	external/lodepng/lodepng.cpp
+ 	external/tinyxml/tinyxml.cpp
+ 	external/tinyxml/tinystr.cpp
+@@ -408,7 +414,6 @@
+     src/forms/SDRDevices/SDRDevicesForm.h
+     src/forms/SDRDevices/SDRDeviceAdd.h
+     src/forms/SDRDevices/SDRDeviceAddForm.h
+-	external/rtaudio/RtAudio.h
+ 	external/lodepng/lodepng.h
+ 	external/tinyxml/tinyxml.h
+ 	external/tinyxml/tinystr.h
diff --git a/debian/patches/use-system-tinyxml b/debian/patches/use-system-tinyxml
new file mode 100644
index 0000000..4324d43
--- /dev/null
+++ b/debian/patches/use-system-tinyxml
@@ -0,0 +1,39 @@
+Description: Use system libtinyxml instead of embedded copy
+ Edit the cmake script to use the system installed libtinyxml instead of
+ the (removed in Debian) embedded copy.
+Author: Andreas Bombe <aeb at debian.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -126,6 +126,10 @@
+ include_directories(${RTAUDIO_INCLUDE_DIRS})
+ SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} ${RTAUDIO_LIBRARIES})
+ 
++pkg_check_modules(TIXML REQUIRED tinyxml)
++include_directories(${TIXML_INCLUDE_DIRS})
++SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} ${TIXML_LIBRARIES})
++
+ 
+ find_package(wxWidgets COMPONENTS gl core propgrid adv base REQUIRED)
+ set(wxWidgets_CONFIGURATION mswu)
+@@ -312,10 +316,6 @@
+     src/forms/SDRDevices/SDRDeviceAdd.cpp
+     src/forms/SDRDevices/SDRDeviceAddForm.cpp
+ 	external/lodepng/lodepng.cpp
+-	external/tinyxml/tinyxml.cpp
+-	external/tinyxml/tinystr.cpp
+-	external/tinyxml/tinyxmlparser.cpp
+-	external/tinyxml/tinyxmlerror.cpp
+ 	external/cubicvr2/math/cubic_math.cpp
+ )
+ 
+@@ -415,8 +415,6 @@
+     src/forms/SDRDevices/SDRDeviceAdd.h
+     src/forms/SDRDevices/SDRDeviceAddForm.h
+ 	external/lodepng/lodepng.h
+-	external/tinyxml/tinyxml.h
+-	external/tinyxml/tinystr.h
+ 	external/cubicvr2/math/aabb.h
+ 	external/cubicvr2/math/cubic_math.h
+ 	external/cubicvr2/math/cubic_types.h
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8c07f5b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+
+%:
+	dh ${@}
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DUSE_HAMLIB=ON
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..630edbf
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts="dversionmangle=s/\+dfsg\d*$//" \
+https://github.com/cjcliffe/CubicSDR/releases .*/([\d\.]+)\.tar\.(?:xz|gz|bz2)

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



More information about the pkg-hamradio-commits mailing list