mirror of
https://github.com/coreos/chunkah.git
synced 2026-11-03 21:49:44 -09:00
I think the current list dates from when chunkah was just released and only living in Rawhide and the latest stable. Nowadays it's in all active releases. This also catches unreleased branched Fedora releases (e.g. Fedora 45 right now), which we really should be testing. Ref: https://packit.dev/docs/configuration#aliases
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
upstream_tag_template: v{version}
|
|
specfile_path: packaging/chunkah.spec
|
|
|
|
srpm_build_deps:
|
|
- cargo
|
|
- cargo-vendor-filterer
|
|
- git
|
|
- openssl-devel
|
|
- zlib-devel
|
|
|
|
actions:
|
|
# Packit defaults to `git describe` for the version, but for PRs that bump the
|
|
# Cargo.toml release, the versioned tarball that create-archive produces will
|
|
# not match what Packit expects. Always get the version from Cargo.toml.
|
|
get-current-version:
|
|
- bash -c 'cargo metadata --no-deps --format-version=1 | python3 -c "import json,sys; print(json.load(sys.stdin)[\"packages\"][0][\"version\"])"'
|
|
create-archive:
|
|
- tools/create-archives.sh --outdir packaging
|
|
# Packit only handles Source0 by default; we need to also rewrite Source1
|
|
# (the vendor tarball). Overriding this replaces all default behaviour, so
|
|
# we must handle Version, Release, and Source0 ourselves too.
|
|
fix-spec-file:
|
|
- >-
|
|
bash -c 'sed -i
|
|
-e "s/^Version:.*/Version: ${PACKIT_PROJECT_VERSION}/"
|
|
-e "s/^Release:.*/Release: ${PACKIT_RPMSPEC_RELEASE}%{?dist}/"
|
|
-e "s|^Source0:.*|Source0: ${PACKIT_PROJECT_ARCHIVE}|"
|
|
-e "s|^Source1:.*|Source1: chunkah-${PACKIT_PROJECT_VERSION}-vendor.tar.gz|"
|
|
packaging/chunkah.spec'
|
|
|
|
files_to_sync:
|
|
- src: packaging/chunkah.spec
|
|
dest: chunkah.spec
|
|
|
|
jobs:
|
|
# Build RPMs in COPR on every PR
|
|
- job: copr_build
|
|
trigger: pull_request
|
|
targets:
|
|
- fedora-all
|
|
|
|
# Propose updates to Fedora on release
|
|
- job: propose_downstream
|
|
trigger: release
|
|
dist_git_branches:
|
|
rawhide:
|
|
fast_forward_merge_into: [fedora-branched]
|