Skip to content

Commit

Permalink
chore: try to fix Packit builds
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying committed Nov 29, 2023
1 parent 913490d commit f846d6d
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@ srpm_build_deps:
actions:
create-archive:
- "cargo vendor vendor"
- 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"
- "rm -rf vendor/winapi/src/*"
- "touch vendor/winapi/src/lib.rs"
- "rm -rf vendor/winapi-x86_64-pc-windows-gnu/lib/*"
- "rm -rf vendor/winapi-i686-pc-windows-gnu/lib/*"
- "rm -rf vendor/vcpkg/test-data"
- "tar cJf fido-device-onboard-rs-${PACKIT_PROJECT_COMMIT}-vendor-patched.tar.xz vendor/"
- "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_COMMIT}-vendor-patched.tar.xz"
# - 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
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"
#- 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""
- bash -c "sed -i -r \"s/Release:(\s*)\S+/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" fido-device-onboard.spec""
- bash -c "sed -i -r \"s/Version:(\s*)\S+/Version:\${PACKIT_PROJECT_COMMIT}/\" fido-device-onboard.spec""

jobs:
- job: copr_build
Expand All @@ -45,4 +54,4 @@ jobs:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development
- fedora-development

0 comments on commit f846d6d

Please sign in to comment.