6551ab9f13
Take the binary list from cmd/ in the Makefile, the RPM packaging and the release pipeline so a new tool ships without a pipeline edit.
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
---
|
|
# nfpm config for the puppet-catalog-tools RPM.
|
|
# Rendered through envsubst (see scripts/build-rpm.sh) then fed to `nfpm pkg`.
|
|
|
|
name: ${PACKAGE_NAME}
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: ${PACKAGE_ARCH}
|
|
platform: ${PACKAGE_PLATFORM}
|
|
section: default
|
|
priority: extra
|
|
description: "${PACKAGE_DESCRIPTION}"
|
|
|
|
maintainer: ${PACKAGE_MAINTAINER}
|
|
homepage: ${PACKAGE_HOMEPAGE}
|
|
license: ${PACKAGE_LICENSE}
|
|
|
|
disable_globbing: false
|
|
|
|
replaces:
|
|
- puppet-catalog-tools
|
|
provides:
|
|
- puppet-catalog-tools
|
|
|
|
# Globs, so a new tool under cmd/ ships without editing this file.
|
|
contents:
|
|
- src: dist/bin/*
|
|
dst: /usr/bin
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
# Shell completions (generated by scripts/build-rpm.sh before packaging,
|
|
# already named as they install).
|
|
- src: dist/completions/bash/*
|
|
dst: /usr/share/bash-completion/completions
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/zsh/*
|
|
dst: /usr/share/zsh/site-functions
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/fish/*
|
|
dst: /usr/share/fish/vendor_completions.d
|
|
file_info:
|
|
mode: 0644
|