Skip to content

Commit fa034b4

Browse files
committed
Add centos-stream package to specfile packit.yaml
To be able to propose-downstream using packit follow this guide: https://gitlab.com/CentOS/Integration/packit-cbs/docs
1 parent 442e2a9 commit fa034b4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.packit.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,32 @@ packages:
3333
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
3434
get-current-version: python3 -m setuptools_scm
3535

36+
specfile-centos-stream:
37+
upstream_package_name: specfile
38+
downstream_package_name: python-specfile
39+
specfile_path: &specfile_path_centos centos-stream/python-specfile.spec
40+
files_to_sync:
41+
- *specfile_path_centos
42+
- .packit.yaml
43+
- src: plans/
44+
dest: plans/
45+
- src: .fmf/
46+
dest: .fmf/
47+
srpm_build_deps:
48+
- python3-build
49+
- python3-setuptools_scm
50+
actions:
51+
pre-sync:
52+
- python3 plans/git_reference.py
53+
create-archive:
54+
- python3 -m build --sdist --outdir ./fedora/
55+
- bash -c "ls -1t ./centos-stream/*.tar.gz | head -n 1"
56+
get-current-version: python3 -m setuptools_scm
57+
dist_git_base_url: https://gitlab.com # this are not taken into account by centpkg-sig!
58+
dist_git_namespace: CentOS/Integration/packit-cbs/rpms # this are not taken into account by centpkg-sig!
59+
#sig: Integration/packit-cbs # this are not taken into account by centpkg-sig!
60+
pkg_tool: centpkg-sig
61+
3662
specfile-epel8:
3763
upstream_package_name: specfile
3864
downstream_package_name: python-specfile
@@ -171,6 +197,11 @@ jobs:
171197
packages: [specfile-epel8]
172198
dist_git_branches:
173199
- epel-8
200+
- job: propose_downstream
201+
trigger: release
202+
packages: [specfile-centos-stream]
203+
dist_git_branches:
204+
- c9-sig-integration
174205

175206
- job: pull_from_upstream
176207
trigger: release
@@ -185,6 +216,11 @@ jobs:
185216
packages: [specfile-epel8]
186217
dist_git_branches:
187218
- epel-8
219+
- job: pull_from_upstream
220+
trigger: release
221+
packages: [specfile-centos-stream]
222+
dist_git_branches:
223+
- c9-sig-integration
188224

189225
- job: koji_build
190226
trigger: commit
@@ -204,6 +240,13 @@ jobs:
204240
allowed_pr_authors: ["packit-stg", "packit"]
205241
dist_git_branches:
206242
- epel-8
243+
- job: koji_build
244+
trigger: commit
245+
packages: [specfile-centos-stream]
246+
packit_instances: ["stg"]
247+
allowed_pr_authors: ["packit-stg", "packit"]
248+
dist_git_branches:
249+
- c9-sig-integration
207250

208251
- job: bodhi_update
209252
trigger: commit

0 commit comments

Comments
 (0)