name: "lua-curl"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "${VERSION}"
release: "${RELEASE}${DIST}"
section: "default"
priority: "optional"
maintainer: "Centreon <contact@centreon.com>"
description: |
  lua curl library
  Commit: @COMMIT_HASH@
vendor: "Centreon"
homepage: "https://www.centreon.com"
license: "Apache-2.0"

contents:
  - src: "../../lua-curl-src/lcurl.so"
    dst: "/usr/lib64/lua/@luaver@/lcurl.so"
    file_info:
      mode: 0644
    packager: rpm
  - src: "../../lua-curl-src/lcurl.so"
    dst: "/usr/lib/x86_64-linux-gnu/lua/@luaver@/lcurl.so"
    file_info:
      mode: 0644
    packager: deb

  - src: "../../lua-curl-src/src/lua/cURL.lua"
    dst: "/usr/share/lua/@luaver@/cURL.lua"

  - src: "../../lua-curl-src/src/lua/cURL"
    dst: "/usr/share/lua/@luaver@/cURL"

overrides:
  rpm:
    depends:
      - lua
  deb:
    depends:
      - lua@luaver@
    provides:
      - lua@luaver@-curl
    conflicts:
      - lua@luaver@-curl
    replaces:
      - lua@luaver@-curl

rpm:
  summary: lua curl
  signature:
    key_file: ${RPM_SIGNING_KEY_FILE}
    key_id: ${RPM_SIGNING_KEY_ID}
