forked from secdev/scapy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.packit.yml
51 lines (48 loc) · 2.18 KB
/
.packit.yml
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
---
# Docs: https://packit.dev/docs
specfile_path: .packit_rpm/scapy.spec
files_to_sync:
- .packit.yml
- src: .packit_rpm/scapy.spec
dest: scapy.spec
upstream_package_name: scapy
downstream_package_name: scapy
upstream_tag_template: "v{version}"
srpm_build_deps: []
actions:
post-upstream-clone:
# Use the Fedora Rawhide specfile
- "git clone https://src.fedoraproject.org/rpms/scapy .packit_rpm --depth=1"
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- "rm -fv .packit_rpm/sources"
- "sed -i '/^# check$/a%check\\nOPENSSL_CONF=$(python3 ./.config/ci/openssl.py) ./test/run_tests -c test/configs/linux.utsc -K ci_only -K scanner' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: can-utils' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: libpcap' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: openssl' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: tcpdump' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: wireshark' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-ipython' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-brotli' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-can' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-coverage' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-cryptography' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-tkinter' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: python3-zstandard' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: samba' .packit_rpm/scapy.spec"
- "sed -i '/^BuildArch/aBuildRequires: samba-client' .packit_rpm/scapy.spec"
jobs:
- job: copr_build
trigger: pull_request
manual_trigger: true
enable_net: true
targets:
- fedora-latest-stable-aarch64
- fedora-latest-stable-i386
- fedora-latest-stable-ppc64le
- fedora-latest-stable-s390x
- fedora-latest-stable-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-i386
- fedora-rawhide-ppc64le
- fedora-rawhide-s390x
- fedora-rawhide-x86_64