]> git.proxmox.com Git - systemd.git/blame - .packit.yml
bump version to 252.11-pve1
[systemd.git] / .packit.yml
CommitLineData
3a6ce677
BR
1---
2# vi:ts=2 sw=2 et:
3#
4# Docs: https://packit.dev/docs/
5
6specfile_path: .packit_rpm/systemd.spec
a6810822
LB
7files_to_sync:
8 - .packit.yml
3a6ce677
BR
9 - src: .packit_rpm/systemd.spec
10 dest: systemd.spec
11upstream_package_name: systemd
12downstream_package_name: systemd
13# `git describe` returns in systemd's case 'v245-xxx' which breaks RPM version
14# detection (that expects 245-xxxx'). Let's tweak the version string accordingly
15upstream_tag_template: "v{version}"
f5caa8fa 16srpm_build_deps: []
3a6ce677
BR
17
18actions:
19 post-upstream-clone:
20 # Use the Fedora Rawhide specfile
21 - "git clone https://src.fedoraproject.org/rpms/systemd .packit_rpm --depth=1"
8b3d4ff0
MB
22 # Drop the "sources" file so rebase-helper doesn't think we're a dist-git
23 - "rm -fv .packit_rpm/sources"
3a6ce677 24 # Drop backported patches from the specfile, but keep the downstream-only ones
9cde670f 25 # - Patch(0000-0499): backported patches from upstream
3a6ce677 26 # - Patch0500-9999: downstream-only patches
9cde670f 27 - "sed -ri '/^Patch(0[0-4]?[0-9]{0,2})?\\:.+\\.patch/d' .packit_rpm/systemd.spec"
3a6ce677
BR
28 # Build the RPM with --werror. Even though --werror doesn't work in all
29 # cases (see [0]), we can't use -Dc_args=/-Dcpp_args= here because of the
30 # RPM hardening macros, that use $CFLAGS/$CPPFLAGS (see [1]).
31 #
28085778
LB
32 # Remove ukify/new standalone handling, added in 253
33 - "sed -i '/ukify/d' .packit_rpm/split-files.py"
34 - "sed -i '/%files ukify/d' .packit_rpm/systemd.spec"
35 - "sed -i '/%files standalone-repart/d' .packit_rpm/systemd.spec"
36 - "sed -i '/%files standalone-shutdown/d' .packit_rpm/systemd.spec"
82126c13
LB
37 # These options were added in 253
38 - "sed -i '/-Ddefault-timeout-sec/d' .packit_rpm/systemd.spec"
39 - "sed -i '/-Ddefault-user-timeout-sec/d' .packit_rpm/systemd.spec"
3a6ce677
BR
40 # [0] https://github.com/mesonbuild/meson/issues/7360
41 # [1] https://github.com/systemd/systemd/pull/18908#issuecomment-792250110
42 - 'sed -i "/^CONFIGURE_OPTS=(/a--werror" .packit_rpm/systemd.spec'
a6810822
LB
43 # Ignore unpackages standalone binaries
44 - "sed -i 's/assert False,.*/pass/' .packit_rpm/split-files.py"
3a6ce677
BR
45
46jobs:
47- job: copr_build
48 trigger: pull_request
a6810822
LB
49 targets:
50 - fedora-rawhide-aarch64
51 - fedora-rawhide-i386
52 - fedora-rawhide-ppc64le
53 - fedora-rawhide-s390x
54 - fedora-rawhide-x86_64