Skip to content

Commit c88da74

Browse files
authored
Merge pull request wolfi-dev#68455 from wolfi-dev/grpc-1.75
Adding VersionStream for grpc-1.75
2 parents c705583 + a88d9fe commit c88da74

1 file changed

Lines changed: 173 additions & 0 deletions

File tree

grpc-1.75.yaml

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
package:
2+
name: grpc-1.75
3+
version: "1.75.1"
4+
epoch: 0
5+
description: The C based gRPC
6+
copyright:
7+
- license: Apache-2.0 AND BSD-3-Clause AND MIT
8+
resources:
9+
cpu: "24"
10+
memory: 24Gi
11+
dependencies:
12+
provides:
13+
- grpc=${{package.full-version}}
14+
15+
var-transforms:
16+
- from: ${{package.version}}
17+
match: ^(\d+\.\d+)\.\d+$
18+
replace: "$1"
19+
to: major-minor-version
20+
21+
vars:
22+
pypi-package: grpcio
23+
import: grpc
24+
25+
data:
26+
- name: py-versions
27+
items:
28+
3.10: "310"
29+
3.11: "311"
30+
3.12: "312"
31+
3.13: "313"
32+
33+
environment:
34+
contents:
35+
packages:
36+
- abseil-cpp-dev
37+
- autoconf
38+
- automake
39+
- benchmark-dev
40+
- build-base
41+
- busybox
42+
- c-ares-dev
43+
- ca-certificates-bundle
44+
- chrpath
45+
- cmake
46+
- curl
47+
- icu-dev
48+
- libstdc++-dev
49+
- libsystemd
50+
- libtool
51+
- linux-headers
52+
- openssl-dev
53+
- protobuf-dev
54+
- py3-supported-build-base
55+
- py3-supported-cython
56+
- py3-supported-python-dev
57+
- python3
58+
- re2
59+
- re2-dev
60+
- samurai
61+
- systemd-dev
62+
- wolfi-base
63+
- xxhash-dev
64+
- yaml-dev
65+
- zlib-dev
66+
environment:
67+
# https://github.com/wolfi-dev/os/issues/34568
68+
GCC_SPEC_FILE: no-hardening.spec
69+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117739
70+
GRPC_PYTHON_CFLAGS: "-std=c++17"
71+
GRPC_PYTHON_BUILD_SYSTEM_CARES: "True"
72+
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL: "True"
73+
GRPC_PYTHON_BUILD_SYSTEM_ZLIB: "True"
74+
GRPC_PYTHON_BUILD_SYSTEM_RE2: "True"
75+
GRPC_PYTHON_BUILD_SYSTEM_ABSL: "True"
76+
GRPC_PYTHON_BUILD_SYSTEM_CYTHON: "True"
77+
78+
pipeline:
79+
- uses: git-checkout
80+
with:
81+
repository: https://github.com/grpc/grpc
82+
tag: v${{package.version}}
83+
expected-commit: 9b63ce0d513672c5daad4f28342f03863c5589e5
84+
85+
- runs: |
86+
mkdir -p "${{targets.destdir}}"/usr/share/doc/grpc
87+
cmake -B _build -G Ninja \
88+
-DCMAKE_BUILD_TYPE=None \
89+
-DCMAKE_INSTALL_PREFIX=/usr \
90+
-DCMAKE_CXX_STANDARD=17 \
91+
-DBUILD_SHARED_LIBS=ON \
92+
-DgRPC_INSTALL=ON \
93+
-DgRPC_CARES_PROVIDER=package \
94+
-DgRPC_SSL_PROVIDER=package \
95+
-DgRPC_ZLIB_PROVIDER=package \
96+
-DgRPC_PROTOBUF_PROVIDER=package \
97+
-DgRPC_ABSL_PROVIDER=package \
98+
-DgRPC_RE2_PROVIDER=package \
99+
-DgRPC_BENCHMARK_PROVIDER=package \
100+
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
101+
-DgRPC_BUILD_TESTS=OFF \
102+
-DgRPC_BUILD_CODEGEN=ON
103+
cmake --build _build
104+
105+
- runs: |
106+
DESTDIR="${{targets.destdir}}" cmake --install _build
107+
cd doc
108+
find ./ -type f -print -exec install -Dm644 {} "${{targets.destdir}}"/usr/share/doc/grpc/{} \;
109+
rm "${{targets.destdir}}"/usr/share/doc/grpc/.gitignore
110+
find "${{targets.destdir}}" -type f -name roots.pem -exec \
111+
sh -c 'rm $0 && ln -s /etc/ssl/certs/ca-certificates.crt $0' "{}" \;
112+
113+
subpackages:
114+
- range: py-versions
115+
name: py${{range.key}}-grpcio-${{vars.major-minor-version}}
116+
description: python${{range.key}} version of grpcio
117+
dependencies:
118+
provider-priority: ${{range.value}}
119+
provides:
120+
- py3-grpcio-${{vars.major-minor-version}}
121+
- py3-grpcio
122+
- py${{range.key}}-grpcio
123+
pipeline:
124+
- uses: py/pip-build-install
125+
with:
126+
python: python${{range.key}}
127+
- uses: strip
128+
test:
129+
pipeline:
130+
- uses: python/import
131+
with:
132+
python: python${{range.key}}
133+
imports: |
134+
import ${{vars.import}}
135+
136+
- name: py3-supported-grpcio-${{vars.major-minor-version}}
137+
description: meta package providing ${{vars.pypi-package}} for supported python versions.
138+
dependencies:
139+
runtime:
140+
- py3.10-grpcio-${{vars.major-minor-version}}
141+
- py3.11-grpcio-${{vars.major-minor-version}}
142+
- py3.12-grpcio-${{vars.major-minor-version}}
143+
- py3.13-grpcio-${{vars.major-minor-version}}
144+
test:
145+
pipeline:
146+
- uses: test/metapackage
147+
148+
- name: ${{package.name}}-dev
149+
pipeline:
150+
- uses: split/dev
151+
dependencies:
152+
runtime:
153+
- ${{package.name}}
154+
provides:
155+
- grpc-dev=${{package.full-version}}
156+
description: grpc dev
157+
test:
158+
pipeline:
159+
- uses: test/tw/ldd-check
160+
with:
161+
packages: ${{subpkg.name}}
162+
163+
update:
164+
enabled: true
165+
github:
166+
identifier: grpc/grpc
167+
strip-prefix: v
168+
use-tag: true
169+
tag-filter-prefix: v1.75.
170+
171+
test:
172+
pipeline:
173+
- uses: test/tw/ldd-check

0 commit comments

Comments
 (0)