Skip to content

Commit 4f71fc8

Browse files
committed
Add cargo generate-rpm configuration
1 parent 7257283 commit 4f71fc8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Status: Available for use
1515

1616
### Added
1717
- Set minimum Rust version to 1.80
18+
- Add configuration for [`cargo generate-rpm`](https://crates.io/crates/cargo-generate-rpm), allowing an RPM for floki to be built using Cargo against the project
1819

1920
### Fixed
2021

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ shell-words = "1.1.0"
3636
[dev-dependencies]
3737
tempfile = "3.19.1"
3838

39+
[package.metadata.generate-rpm]
40+
assets = [
41+
{ source = "target/release/floki", dest = "/usr/bin/floki", mode = "0755" },
42+
{ source = "LICENSE", dest = "/usr/share/doc/floki/LICENSE", doc = true, mode = "0644" },
43+
]
44+
require-sh = false
45+
46+
[package.metadata.generate-rpm.requires]
47+
dnf = "*"
48+
3949
[profile.release]
4050
strip = true # Automatically strip symbols from the binary.
4151
opt-level = "z" # Optimize for size.

0 commit comments

Comments
 (0)