Fix tense in SD_MESSAGE_SHUTDOWN_STR
[systemd.io.git] / .packit.yml
blob697defd3e7248ceb2cafd81bf48fa447ce5fe912
1 ---
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # Docs: https://packit.dev/docs/
5 specfile_path: .packit_rpm/systemd.spec
6 files_to_sync:
7   - .packit.yml
8   - src: .packit_rpm/systemd.spec
9     dest: systemd.spec
10 # `git describe` returns in systemd's case 'v245-xxx' which breaks RPM version
11 # detection (that expects 245-xxxx'). Let's tweak the version string accordingly
12 upstream_tag_template: "v{version}"
13 srpm_build_deps: []
15 actions:
16   get-current-version:
17     # Show the closest matching tag for the checked out revision, otherwise
18     # Packit tries to get the latest tag by creation date, which doesn't work
19     # well in the systemd-stable repo. We also need to sanitize it manually
20     # since "upstream_tag_template" defined above doesn't apply here.
21     - "bash -ec 'git describe --tags --abbrev=0 | cut -b 2-'"
23   post-upstream-clone:
24     # Use the Fedora Rawhide specfile
25     - git clone https://src.fedoraproject.org/rpms/systemd .packit_rpm --depth=1
26     - bash -c 'echo "%bcond upstream 1" > .packit_rpm/systemd.spec.new'
27     - bash -c 'echo "%define meson_extra_configure_options --werror" >> .packit_rpm/systemd.spec.new'
28     - bash -c 'cat .packit_rpm/systemd.spec >> .packit_rpm/systemd.spec.new'
29     - mv .packit_rpm/systemd.spec.new .packit_rpm/systemd.spec
31 jobs:
32 - job: copr_build
33   trigger: pull_request
34   targets:
35   - fedora-rawhide-aarch64
36   - fedora-rawhide-i386
37   - fedora-rawhide-ppc64le
38   - fedora-rawhide-s390x
39   - fedora-rawhide-x86_64
41 - job: tests
42   trigger: pull_request
43   fmf_path: test/fmf
44   tmt_plan: ci
45   targets:
46   - fedora-rawhide-x86_64