[go: up one dir, main page]

File: gbp.conf

package info (click to toggle)
libmongocrypt 1.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,212 kB
  • sloc: ansic: 67,195; python: 4,399; cpp: 620; sh: 441; makefile: 44; awk: 8
file content (20 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[DEFAULT]
pristine-tar = False
no-create-orig = True

prebuild = bash -c "
    # Show execution trace
    set -x &&
    # Use debian/changelog (not VERSION_CURRENT) to get upstream version to build
    upstream_version=$(dpkg-parsechangelog | sed -E -n 's/^Version: +(.*)-.*/\1/p') &&
    # Determine list of embedded sources to exclude from Debian source package
    third_party_filter_files=\"$([ -d third-party ] && find third-party/ -mindepth 1 -maxdepth 1 -printf "libmongocrypt-\${upstream_version}/%p ")\" &&
    third_party_rm_files=\"$([ -d third-party ] && find third-party/ -mindepth 1 -maxdepth 1 -printf '%p ')\" &&
    # Create upstream tarball from reference, exclude items that do not belong
    pushd $GBP_GIT_DIR/.. &&
    git archive --format=tar --prefix=libmongocrypt-\${upstream_version}/ HEAD | tar -f - --delete libmongocrypt-\${upstream_version}/debian \$third_party_filter_files | gzip > $GBP_BUILD_DIR/../libmongocrypt_\${upstream_version}.orig.tar.gz &&
    popd &&
    rm -rf \$third_party_rm_files"

upstream-tag = %(version)s
debian-branch = debian/unstable