Skip to content

Commit 9b80f70

Browse files
committed
Add metadata for building an RPM
1 parent 2c4f5a4 commit 9b80f70

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Cargo.toml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[package]
2-
authors = ["Jeffrey Smith <jeffrey.smith7@gmail.com>"]
3-
edition = "2024"
4-
license = "Apache-2.0"
5-
name = "git_sync"
6-
version = "1.0.0"
2+
authors = ["Jeffrey Smith <jeffrey.smith@acceldata.io>"]
3+
description = "A tool for managing git repositories"
4+
edition = "2024"
5+
homepage = "https://github.com/acceldata-io/git_sync"
6+
license = "Apache-2.0"
7+
name = "git_sync"
8+
version = "1.0.0"
79

810

911
[dependencies]
@@ -76,3 +78,11 @@ slack = []
7678
[profile.release]
7779
lto = "thin"
7880
strip = true
81+
82+
[package.metadata.generate-rpm]
83+
assets = [
84+
{ source = "target/release/git_sync", dest = "/usr/bin/git_sync", mode = "755" },
85+
]
86+
87+
[package.metadata.generate-rpm.requires]
88+
git = " > 2.40"

0 commit comments

Comments
 (0)