Skip to content

Commit fe41589

Browse files
committed
Initial Packit Configuration
Signed-off-by: mulhern <[email protected]>
1 parent 7317ee6 commit fe41589

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.packit.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
packages:
2+
libcryptsetup-rs:
3+
specfile_path: ../distro/rust-libcryptsetup-rs.spec
4+
downstream_package_name: rust-libcryptsetup-rs
5+
actions:
6+
post-upstream-clone:
7+
- "mkdir ../distro"
8+
- "bash -c '(cd ../distro; wget https://src.fedoraproject.org/rpms/rust-libcryptsetup-rs/raw/rawhide/f/rust-libcryptsetup-rs.spec)'"
9+
- "cargo install cargo-get"
10+
create-archive:
11+
- "cargo package"
12+
- "echo 'target/package/libcryptsetup-rs-0.13.0.crate'"
13+
fix-spec-file:
14+
- "bash -c '(cd ../distro; rust2rpm)'"
15+
get-current-version:
16+
- "cargo get package.version"
17+
18+
srpm_build_deps:
19+
- cargo
20+
- rust2rpm
21+
- rust2rpm-helper
22+
- wget2
23+
- wget2-wget
24+
- gcc
25+
- clang-devel
26+
- cryptsetup-devel
27+
28+
jobs:
29+
- job: copr_build
30+
trigger: pull_request
31+
manual_trigger: true
32+
targets:
33+
- fedora-all

0 commit comments

Comments
 (0)