2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # Docs: https://packit.dev/docs/
5 specfile_path: .packit_rpm/systemd.spec
8 - src: .packit_rpm/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}"
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-'"
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
35 - fedora-rawhide-aarch64
37 - fedora-rawhide-ppc64le
38 - fedora-rawhide-s390x
39 - fedora-rawhide-x86_64
46 - fedora-rawhide-x86_64