With rust-srpm-macros-17-4.el9, `%cargo_pre` without `-V` option will put the crates.io registry to empty folder, hence break all snapshot rpm builds. The fix is use create vendor tarball for snapshot rpm build. Also fixed Fedora compiling issue by removing the pin of ctrlc crate version. Signed-off-by: Gris Ge <fge@redhat.com>
30 lines
569 B
YAML
30 lines
569 B
YAML
---
|
|
specfile_path: nmstate.spec
|
|
upstream_package_name: nmstate
|
|
upstream_project_url: https://nmstate.io
|
|
enable_net: true
|
|
srpm_build_deps:
|
|
- cargo
|
|
- make
|
|
- git
|
|
- tar
|
|
- xz
|
|
notifications:
|
|
pull_request:
|
|
successful_build: true
|
|
actions:
|
|
post-upstream-clone:
|
|
- "make packaging/nmstate.spec"
|
|
- "cp packaging/nmstate.spec nmstate.spec"
|
|
fix-spec-file:
|
|
- "make dist"
|
|
get-current-version:
|
|
- "cat VERSION"
|
|
jobs:
|
|
- job: copr_build
|
|
trigger: pull_request
|
|
metadata:
|
|
targets:
|
|
- centos-stream-9-x86_64
|
|
- epel-9-x86_64
|