Skip to content

Commit 546a3a2

Browse files
authored
Add rpmpack (#1658)
Forked from #1484 Very minor changes compared to the original PR, I fixed the targets in the presubmit.yml, added the missing strip_prefix in the source.json, and put the correct MODULE.bazel contents here since they are already setup correctly upstream
1 parent 3e7ec9f commit 546a3a2

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

modules/rpmpack/0.6.0/MODULE.bazel

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module(
2+
name = "rpmpack",
3+
version = "0.6.0",
4+
)
5+
6+
bazel_dep(name = "rules_go", version = "0.46.0")
7+
bazel_dep(name = "gazelle", version = "0.35.0")
8+
9+
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
10+
go_deps.from_file(go_mod = "//:go.mod")
11+
12+
# All *direct* Go dependencies of the module have to be listed explicitly.
13+
use_repo(
14+
go_deps,
15+
"com_github_cavaliergopher_cpio",
16+
"com_github_google_go_cmp",
17+
"com_github_klauspost_compress",
18+
"com_github_klauspost_pgzip",
19+
"com_github_ulikunitz_xz",
20+
)

modules/rpmpack/0.6.0/presubmit.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
- macos
6+
- macos_arm64
7+
- windows
8+
bazel:
9+
- 7.x
10+
- 6.x
11+
tasks:
12+
verify_targets:
13+
name: Verify build targets
14+
platform: ${{ platform }}
15+
bazel: ${{ bazel }}
16+
build_targets:
17+
- '@rpmpack//cmd/tar2rpm'
18+
bcr_test_module:
19+
module_path: example_bazel
20+
matrix:
21+
platform:
22+
- debian10
23+
- ubuntu2004
24+
- macos
25+
- macos_arm64
26+
- windows
27+
bazel:
28+
- 7.x
29+
- 6.x
30+
tasks:
31+
run_test_module:
32+
name: Run test module
33+
platform: ${{ platform }}
34+
bazel: ${{ bazel }}
35+
build_targets:
36+
- '//:rpmtest-tar'
37+
- '//:rpmtest'

modules/rpmpack/0.6.0/source.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"url": "https://github.com/google/rpmpack/releases/download/v0.6.0/rpmpack-0.6.0.tar.gz",
3+
"integrity": "sha256-rgXCDM5Wf+QkNDvM/KYkRofNCTGX3ek+dWE5joS3bW8=",
4+
"strip_prefix": "rpmpack-0.6.0",
5+
"patch_strip": 0
6+
}

modules/rpmpack/metadata.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://github.com/google/rpmpack/",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "jarondl",
7+
"name": "Yaron de Leeuw"
8+
}
9+
],
10+
"repository": [
11+
"github:google/rpmpack"
12+
],
13+
"versions": [
14+
"0.6.0"
15+
],
16+
"yanked_versions": {}
17+
}

0 commit comments

Comments
 (0)