meta-virtualization/recipes-containers/oci-image-spec/oci-image-spec_git.bb
Bruce Ashfield f5bf9b80af oci-image-spec: update to 1.0.2
Bumping image-spec to version v1.0.2-144-g02efb9a, which comprises the following commits:

    d6ce48a Add mediaType fields into example manifest & image index JSON references
    bc44f5b Fixing charter link
    02c5c05 implementations: adding the C and Rust libraries
    a36b0c8 Handle multiple matching index entries
    a3eee7d README.md: Remove link to OCI scope table The OCI scope table no-longer exists.
    4533d3e schema: use Go's embed package instead of esc
    d147780 .tool: remove lint tool, call linter directly
    0e094f3 schema, specs-go: fix lint errors
    d3cd202 *: switch to golangci-lint
    4d865bc go: have the go.mod at top-level
    0f6c001 Remove unneeded docker pull of pandoc image
    de28903 Makefile: stale installation of glide was failing
    3a46ac8 github: bring forward the versions of golang tested/built with
    6ced3bd media-types: `.mediaType` is available in both OCI and Docker
    3be64d9 version: bump main back to -dev
    beccafd version: release 1.0.2
    5b82148 specs-go: adding `mediaType` to the index and manifest structures
    2eb4046 *.md: bring mediaType out of reserved status
    e3885ce version: bump main back to -dev
    67d2d56 version: release 1.0.2
    dcdcb7f specs-go: adding `mediaType` to the index and manifest structures
    5f31485 *.md: bring mediaType out of reserved status
    3fee04b Adding ACR to implementations
    8087946 Reflect docker dontation of distribution to CNCF
    bd2fa25 Minor spelling correction
    fc4df0a Fix very minor oversight in config example
    0d98a6c Scope data verification to content consumers
    83479d4 Clean up portability considerations
    fccc435 Implementations MUST NOT populate data arbitrarily
    2596ec0 Expand godoc for Data
    58c082d Add note about portability concerns
    ce281ce Add Embedded Data section
    aaf8045 Define the data field
    4f080a7 Add go.mod and pin dependencies

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-21 17:31:29 -04:00

42 lines
1.3 KiB
BlitzBasic

DESCRIPTION = "The OCI Image Format project creates and maintains the software shipping container image format spec"
HOMEPAGE = "https://github.com/opencontainers/image-spec"
SECTION = "devel/go"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://src/${PKG_NAME}/LICENSE;md5=27ef03aa2da6e424307f102e8b42621d"
SRCNAME = "image-spec"
PKG_NAME = "github.com/opencontainers/${SRCNAME}"
SRC_URI = "git://${PKG_NAME}.git;destsuffix=git/src/${PKG_NAME};branch=main;protocol=https"
SRCREV = "02efb9a75ee11e05937b535cc5f228f9343ab2f5"
PV = "v1.0.2+git${SRCPV}"
S = "${WORKDIR}/git"
# NO-OP the do compile rule because this recipe is source only.
do_compile() {
}
do_install() {
install -d ${D}${prefix}/local/go/src/${PKG_NAME}
for j in $(cd ${S} && find src/${PKG_NAME} -name "*.go"); do
cp --parents $j ${D}${prefix}/local/go/
done
# .tool isn't useful, so remote it.
rm -rf ${D}${prefix}/local/go/src/${PKG_NAME}/.tool/
cp -r ${S}/src/${PKG_NAME}/LICENSE ${D}${prefix}/local/go/src/${PKG_NAME}/
}
SYSROOT_PREPROCESS_FUNCS += "image_spec_file_sysroot_preprocess"
image_spec_file_sysroot_preprocess () {
install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}
FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
CLEANBROKEN = "1"