-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.packit.yaml
More file actions
74 lines (62 loc) · 2.21 KB
/
Copy path.packit.yaml
File metadata and controls
74 lines (62 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# https://packit.dev/docs/configuration/
specfile_path: greenboot-rs.spec
files_to_sync:
- greenboot-rs.spec
- .packit.yaml
upstream_package_name: greenboot-rs
downstream_package_name: greenboot-rs
upstream_tag_template: v{version}
copy_upstream_release_description: true
sync_changelog: true
# Use clean release string without commit hashes/branch names
release_suffix: ""
srpm_build_deps:
- cargo
actions:
get-current-version:
- grep -oP '^Version:\s+\K\S+' greenboot-rs.spec
create-archive:
- "cargo vendor vendor"
# Create archive with version for spec compatibility
- bash -c "tar -cJf greenboot-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz vendor"
- bash -c "git archive --prefix=greenboot-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > greenboot-rs-${PACKIT_PROJECT_VERSION}.tar"
- bash -c "tar -xvf greenboot-rs-${PACKIT_PROJECT_VERSION}.tar"
- bash -c "tar -czf greenboot-rs-${PACKIT_PROJECT_VERSION}.tar.gz greenboot-rs-${PACKIT_PROJECT_VERSION}"
- bash -c "rm -rf greenboot-rs-${PACKIT_PROJECT_VERSION} greenboot-rs-${PACKIT_PROJECT_VERSION}.tar vendor"
- bash -c "ls -1 ./greenboot-rs-*.tar.gz"
post-upstream-clone:
- "sed -i '/^%global forgeurl/d' greenboot-rs.spec"
- "sed -i '/^%forgemeta/d' greenboot-rs.spec"
- "sed -i '/^%forgeautosetup/d' greenboot-rs.spec"
- bash -c "git config user.name 'Packit Build' || true"
- bash -c "git config user.email 'packit@fedoraproject.org' || true"
fix-spec-file:
# This runs after Packit's release processing - disable debug package to prevent saypaul error
- "sed -i '/^License:/a\\%global debug_package %{nil}' greenboot-rs.spec"
jobs:
- job: copr_build
trigger: pull_request
targets:
- centos-stream-10-aarch64
- centos-stream-10-x86_64
- fedora-development-aarch64
- fedora-development
- fedora-eln-aarch64
- fedora-eln
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-development
- fedora-stable
- job: koji_build
trigger: commit
allowed_pr_authors: [all_committers]
dist_git_branches:
- fedora-development
- fedora-stable
- job: bodhi_update
trigger: commit
allowed_builders: [all_committers]
dist_git_branches:
- fedora-development
- fedora-stable