schema: 1

bugzilla:
  product: "Core"
  component: "Graphics: ImageLib"

origin:
  name: "libpng"
  description: "PNG reference library"

  url: "http://www.libpng.org/pub/png/libpng.html"
  license: libpng

  release: v1.6.58 (2026-04-15T20:23:26+03:00).

  revision: "v1.6.58"

  license-file: LICENSE

updatebot:
  maintainer-phab: tnikkel
  maintainer-bz: tnikkel@gmail.com
  tasks:
    - type: vendoring
      enabled: True

vendoring:
  url: https://github.com/pnggroup/libpng
  source-hosting: github
  tracking: tag

  exclude:
    - "**"
    - "*/.editorconfig"

  include:
    - arm
    - contrib/arm-neon/linux.c
    - intel
    - loongarch
    - mips
    - powerpc
    - riscv
    - ANNOUNCE
    - AUTHORS
    - CHANGES
    - libpng-manual.txt
    - LICENSE
    - README
    - TRADEMARK
    - png.c
    - pngconf.h
    - pngdebug.h
    - pngerror.c
    - pngget.c
    - png.h
    - pnginfo.h
    - pngmem.c
    - pngpread.c
    - pngpriv.h
    - pngread.c
    - pngrio.c
    - pngrtran.c
    - pngrutil.c
    - pngset.c
    - pngstruct.h
    - pngtrans.c
    - pngwio.c
    - pngwrite.c
    - pngwtran.c
    - pngwutil.c

  keep:
    - MOZCHANGES
    - crashtests
    - pnglibconf.h

  update-actions:
    - action: copy-file
      from: 'contrib/arm-neon/linux.c'
      to: 'arm/linux.c'
    - action: delete-path
      path: 'contrib'

  patches:
    - "*.patch"
