Skip to content

Commit ceae627

Browse files
author
Andriy Beregovenko
committed
Add debian package files
1 parent f6c873a commit ceae627

File tree

8 files changed

+337
-0
lines changed

8 files changed

+337
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pymavlink (2.4.41) UNRELEASED; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Andrii Beregovenko <[email protected]> Sat, 09 Mar 2024 14:00:50 +0100

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/control

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Source: pymavlink
2+
Section: python
3+
Priority: optional
4+
Maintainer: Andrii Beregovenko <[email protected]>
5+
Build-Depends: debhelper (>= 10),
6+
dh-python,
7+
python3-all-dev (>= 3.3.3),
8+
libxml2-dev, libxslt1-dev, zlib1g-dev,
9+
python3-setuptools (>= 0.6.29),
10+
python3-numpy,
11+
python3-pytest,
12+
X-Python-Version: all
13+
Standards-Version: 4.5.1
14+
Homepage: https://github.com/ArduPilot/pymavlink
15+
16+
Package: python3-pymavlink
17+
Architecture: any
18+
Multi-Arch: same
19+
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-future, python3-lxml
20+
Provides: ${python3:Provides}
21+
Description: Pymavlink is a Python implementation of the MAVLink protocol
22+
Pymavlink is a Python implementation of the MAVLink protocol. It includes
23+
a source code generator (generator/mavgen.py) to create MAVLink protocol
24+
implementations for other programming languages as well. Also contains tools
25+
for analyzing flight logs.

debian/copyright

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
This repository contains the generator for the MAVLink protocol. The generator itself is
2+
(L)GPL v3 licensed, while the generated code is subject to different licenses:
3+
4+
5+
========================================================================================
6+
7+
Exception to the (L)GPL v.3:
8+
9+
As an exception, if you use this Software to compile your source code and
10+
portions of this Software, including messages ("the generator output"), are embedded
11+
into the binary product as a result, you may redistribute such product and such
12+
product is hereby licensed under the following MIT license:
13+
14+
Copyright (C) the ArduPilot project
15+
http://ardupilot.org/
16+
17+
Permission is hereby granted, free of charge, to any person obtaining a copy
18+
of the generated software (the "Generated Software"), to deal
19+
in the Generated Software without restriction, including without limitation the
20+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21+
copies of the Generated Software, and to permit persons to whom the Generated
22+
Software is furnished to do so, subject to the following conditions:
23+
24+
The above copyright notice and this permission notice shall be included in
25+
all copies or substantial portions of the Generated Software.
26+
27+
THE GENERATED SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32+
OUT OF OR IN CONNECTION WITH THE GENERATED SOFTWARE OR THE USE OR OTHER DEALINGS
33+
IN THE GENERATED SOFTWARE.
34+
35+
=========================================================================================
36+
37+
38+
39+
GNU LESSER GENERAL PUBLIC LICENSE
40+
Version 3, 29 June 2007
41+
42+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
43+
Everyone is permitted to copy and distribute verbatim copies
44+
of this license document, but changing it is not allowed.
45+
46+
47+
This version of the GNU Lesser General Public License incorporates
48+
the terms and conditions of version 3 of the GNU General Public
49+
License, supplemented by the additional permissions listed below.
50+
51+
0. Additional Definitions.
52+
53+
As used herein, "this License" refers to version 3 of the GNU Lesser
54+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
55+
General Public License.
56+
57+
"The Library" refers to a covered work governed by this License,
58+
other than an Application or a Combined Work as defined below.
59+
60+
An "Application" is any work that makes use of an interface provided
61+
by the Library, but which is not otherwise based on the Library.
62+
Defining a subclass of a class defined by the Library is deemed a mode
63+
of using an interface provided by the Library.
64+
65+
A "Combined Work" is a work produced by combining or linking an
66+
Application with the Library. The particular version of the Library
67+
with which the Combined Work was made is also called the "Linked
68+
Version".
69+
70+
The "Minimal Corresponding Source" for a Combined Work means the
71+
Corresponding Source for the Combined Work, excluding any source code
72+
for portions of the Combined Work that, considered in isolation, are
73+
based on the Application, and not on the Linked Version.
74+
75+
The "Corresponding Application Code" for a Combined Work means the
76+
object code and/or source code for the Application, including any data
77+
and utility programs needed for reproducing the Combined Work from the
78+
Application, but excluding the System Libraries of the Combined Work.
79+
80+
1. Exception to Section 3 of the GNU GPL.
81+
82+
You may convey a covered work under sections 3 and 4 of this License
83+
without being bound by section 3 of the GNU GPL.
84+
85+
2. Conveying Modified Versions.
86+
87+
If you modify a copy of the Library, and, in your modifications, a
88+
facility refers to a function or data to be supplied by an Application
89+
that uses the facility (other than as an argument passed when the
90+
facility is invoked), then you may convey a copy of the modified
91+
version:
92+
93+
a) under this License, provided that you make a good faith effort to
94+
ensure that, in the event an Application does not supply the
95+
function or data, the facility still operates, and performs
96+
whatever part of its purpose remains meaningful, or
97+
98+
b) under the GNU GPL, with none of the additional permissions of
99+
this License applicable to that copy.
100+
101+
3. Object Code Incorporating Material from Library Header Files.
102+
103+
The object code form of an Application may incorporate material from
104+
a header file that is part of the Library. You may convey such object
105+
code under terms of your choice, provided that, if the incorporated
106+
material is not limited to numerical parameters, data structure
107+
layouts and accessors, or small macros, inline functions and templates
108+
(ten or fewer lines in length), you do both of the following:
109+
110+
a) Give prominent notice with each copy of the object code that the
111+
Library is used in it and that the Library and its use are
112+
covered by this License.
113+
114+
b) Accompany the object code with a copy of the GNU GPL and this license
115+
document.
116+
117+
4. Combined Works.
118+
119+
You may convey a Combined Work under terms of your choice that,
120+
taken together, effectively do not restrict modification of the
121+
portions of the Library contained in the Combined Work and reverse
122+
engineering for debugging such modifications, if you also do each of
123+
the following:
124+
125+
a) Give prominent notice with each copy of the Combined Work that
126+
the Library is used in it and that the Library and its use are
127+
covered by this License.
128+
129+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
130+
document.
131+
132+
c) For a Combined Work that displays copyright notices during
133+
execution, include the copyright notice for the Library among
134+
these notices, as well as a reference directing the user to the
135+
copies of the GNU GPL and this license document.
136+
137+
d) Do one of the following:
138+
139+
0) Convey the Minimal Corresponding Source under the terms of this
140+
License, and the Corresponding Application Code in a form
141+
suitable for, and under terms that permit, the user to
142+
recombine or relink the Application with a modified version of
143+
the Linked Version to produce a modified Combined Work, in the
144+
manner specified by section 6 of the GNU GPL for conveying
145+
Corresponding Source.
146+
147+
1) Use a suitable shared library mechanism for linking with the
148+
Library. A suitable mechanism is one that (a) uses at run time
149+
a copy of the Library already present on the user's computer
150+
system, and (b) will operate properly with a modified version
151+
of the Library that is interface-compatible with the Linked
152+
Version.
153+
154+
e) Provide Installation Information, but only if you would otherwise
155+
be required to provide such information under section 6 of the
156+
GNU GPL, and only to the extent that such information is
157+
necessary to install and execute a modified version of the
158+
Combined Work produced by recombining or relinking the
159+
Application with a modified version of the Linked Version. (If
160+
you use option 4d0, the Installation Information must accompany
161+
the Minimal Corresponding Source and Corresponding Application
162+
Code. If you use option 4d1, you must provide the Installation
163+
Information in the manner specified by section 6 of the GNU GPL
164+
for conveying Corresponding Source.)
165+
166+
5. Combined Libraries.
167+
168+
You may place library facilities that are a work based on the
169+
Library side by side in a single library together with other library
170+
facilities that are not Applications and are not covered by this
171+
License, and convey such a combined library under terms of your
172+
choice, if you do both of the following:
173+
174+
a) Accompany the combined library with a copy of the same work based
175+
on the Library, uncombined with any other library facilities,
176+
conveyed under the terms of this License.
177+
178+
b) Give prominent notice with the combined library that part of it
179+
is a work based on the Library, and explaining where to find the
180+
accompanying uncombined form of the same work.
181+
182+
6. Revised Versions of the GNU Lesser General Public License.
183+
184+
The Free Software Foundation may publish revised and/or new versions
185+
of the GNU Lesser General Public License from time to time. Such new
186+
versions will be similar in spirit to the present version, but may
187+
differ in detail to address new problems or concerns.
188+
189+
Each version is given a distinguishing version number. If the
190+
Library as you received it specifies that a certain numbered version
191+
of the GNU Lesser General Public License "or any later version"
192+
applies to it, you have the option of following the terms and
193+
conditions either of that published version or of any later version
194+
published by the Free Software Foundation. If the Library as you
195+
received it does not specify a version number of the GNU Lesser
196+
General Public License, you may choose any version of the GNU Lesser
197+
General Public License ever published by the Free Software Foundation.
198+
199+
If the Library as you received it specifies that a proxy can decide
200+
whether future versions of the GNU Lesser General Public License shall
201+
apply, that proxy's public statement of acceptance of any version is
202+
permanent authorization for you to choose that version for the
203+
Library.

debian/patches/series

Whitespace-only changes.

debian/rules

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# Uncomment this to turn on verbose mode.
5+
#export DH_VERBOSE=1
6+
7+
PY3VERS := $(shell py3versions -vs)
8+
PY3VER := $(shell py3versions -vd)
9+
10+
include /usr/share/dpkg/pkg-info.mk
11+
12+
include /usr/share/python3/python.mk
13+
14+
# Some locales trigger reproducibility issues in html documentation
15+
export LC_ALL=C.UTF-8
16+
export LANG=C.UTF-8
17+
18+
prebuild: prebuild-stamp
19+
prebuild-stamp:
20+
touch $@
21+
22+
build-arch: build
23+
build-indep: build
24+
build: build3-stamp
25+
26+
build3-stamp: $(PY3VERS:%=build3-python%) doc-build3-python$(PY3VER)
27+
touch $@
28+
build3-python%: prebuild
29+
python$* setup.py build
30+
touch $@
31+
doc-build3-python$(PY3VER): build3-python$(PY3VER)
32+
touch $@
33+
34+
clean:
35+
dh_testdir
36+
dh_testroot
37+
rm -f build*-stamp build*-python* dbg-build*-python* prebuild-stamp
38+
rm -rf build dist __pycache__
39+
-find -name '*.py[co]' | xargs rm -f
40+
rm -rf [23].[0-9]
41+
dh_clean
42+
43+
install: build install-prereq $(PY3VERS:%=install3-python%)
44+
-find debian -name '*.py[co]' | xargs rm -f
45+
-find debian -name __pycache__ | xargs rm -rf
46+
rm -rf debian/python*-pymavlink/usr/lib/python
47+
48+
install-prereq:
49+
dh_testdir
50+
dh_testroot
51+
dh_prep
52+
53+
install3-python%:
54+
mkdir -p debian/python3-pymavlink/usr/bin
55+
mkdir -p debian/python3-pymavlink/$(call py_libdir, $*)
56+
python$* setup.py install \
57+
--root=$(CURDIR)/debian/python3-pymavlink --install-layout=deb
58+
59+
# Build architecture-independent files here.
60+
binary-indep: build install
61+
dh_testdir
62+
dh_testroot
63+
dh_installchangelogs -i
64+
dh_installdocs -i
65+
dh_installexamples -i samples/*
66+
dh_compress -i -X.xml -X.py \
67+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
68+
dh_fixperms -i
69+
dh_installdeb -i
70+
dh_shlibdeps -i
71+
dh_gencontrol -i
72+
dh_md5sums -i
73+
dh_builddeb -i
74+
75+
# Build architecture-dependent files here.
76+
binary-arch: build install
77+
dh_testdir
78+
dh_testroot
79+
# dh_installchangelogs -a CHANGES.txt
80+
# dh_installdocs -a CREDITS.txt README.rst TODO.txt
81+
dh_installdocs -a README.md
82+
# dh_installexamples -a examples/*
83+
dh_python3 -a
84+
dh_strip -ppython3-pymavlink
85+
dh_compress -a -X.xml -X.py \
86+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
87+
dh_fixperms -a
88+
dh_installdeb -a
89+
dh_shlibdeps -a
90+
dh_gencontrol -a
91+
dh_md5sums -a
92+
dh_builddeb -a
93+
94+
binary: binary-indep binary-arch
95+
.PHONY: build clean binary-indep binary-arch binary install

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/watch

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version=4
2+
opts="\
3+
compression=gzip, \
4+
dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//, \
5+
downloadurlmangle=s#/tag/#/download/#;s#(v?@ANY_VERSION@)$#$1/@PACKAGE@-$2.tar.gz#, \
6+
filenamemangle=s#v?@ANY_VERSION@#@PACKAGE@-$1.tar.gz#" \
7+
https://github.com/ArduPilot/@PACKAGE@/tags .*/releases/tag/v?@ANY_VERSION@

0 commit comments

Comments
 (0)