Skip to content

Commit

Permalink
Merge pull request #582 from 7flying/fix-packit
Browse files Browse the repository at this point in the history
chore: fix Fedora Packit builds
  • Loading branch information
mergify[bot] authored Jan 16, 2024
2 parents a3eeb67 + edd84ce commit e472c3a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
21 changes: 9 additions & 12 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,29 @@ srpm_build_deps:

actions:
create-archive:
- "cargo vendor vendor"
- bash -c "sed -i -r \"s/Source0:.+/Source0:\ fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar/\" fido-device-onboard.spec"
- bash -c "sed -i \"/Source1/d\" fido-device-onboard.spec"
- bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
- bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
- bash -c "cp -Ra vendor fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}"
- bash -c "tar -czf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar.gz fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}"
- bash -c "rm -rf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION} fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar vendor"
- bash -c "ls -1 ./fido-device-onboard-rs-*.tar.gz"
- bash -c "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
fix-spec-file:
- sed -i fido-device-onboard.spec -e "s/with_packit 0/with_packit 1/"
- bash -c "sed -i -r \"s/Release:(\s*)\S+/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" fido-device-onboard.spec"
- "cat fido-device-onboard.spec"

jobs:
- job: copr_build
trigger: pull_request
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development
- fedora-latest
- fedora-latest-aarch64
- job: copr_build
trigger: commit
branch: main
owner: "@fedora-iot" # copr repo namespace
project: fedora-iot # copr repo name so you can consume the builds
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development
- fedora-development
- fedora-latest
- fedora-latest-aarch64
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e472c3a

Please sign in to comment.