mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Used these instructions as guide to create debian metadata:
https://wiki.debian.org/Packaging/Intro#The_packaging_work_flow
https://wiki.debian.org/Python/LibraryStyleGuide
Debian build instructions for upstream release 0.11.2.dev3:
-----------------------------------------------------------
# Assuming sbuild is installed and chroot is created
# https://wiki.debian.org/sbuild
# Download upstream tarball + signature and rename to expected pattern
wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz \
-O python-tuf_0.11.2.dev3.orig.tar.gz
wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz.asc \
-O python-tuf_0.11.2.dev3.orig.tar.gz.asc
# Extract upstream tarball
tar xf python-tuf_0.11.2.dev3.orig.tar.gz
# Clone upstream repo for debian files and tests
git clone https://github.com/theupdateframework/tuf.git \
tuf-upstream
# Copy debian files (from debian branch)
git -C tuf-upstream checkout debian --
cp -r tuf-upstream/debian tuf-0.11.2.dev3/
# Change to unpacked tarball
cd tuf-0.11.2.dev3
# Build (w/o tests)
# NOTE: (1) Securessystemslib is not yet in debian, you need to first build it
# locally (see instructions at
# 9d36a9fb3c)
# and pass it as `--extra-package`
# NOTE: (2) `--extra-package` does not seem to work for tests during sbuild,
# hence the nocheck option. This should be easier once securesystemslib is in.
DEB_BUILD_OPTIONS=nocheck sbuild -A -s -d unstable \
--extra-package /path/to/python3-securesystemslib_0.11.3-1_all.deb
# Sign debian files (replace keyid if necessary)
debsign -k 8BA69B87D43BE294F23E812089A2AD3C07D962E8
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
24 lines
No EOL
911 B
Text
24 lines
No EOL
911 B
Text
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
Upstream-Name: tuf
|
|
Source: https://github.com/theupdateframework
|
|
|
|
Files: *
|
|
Copyright: 2018 New York University
|
|
License: Apache-2.0
|
|
Copyright 2018 New York University
|
|
.
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
.
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
.
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
.
|
|
On Debian systems, the full text of the Apache-2.0
|
|
License can be found in the file
|
|
`/usr/share/common-licenses/Apache-2.0'. |