[packages/grpc] - add opencensus-proto-0.3.0.tar.gz as source to avoid downloading on build

qboosh qboosh at pld-linux.org
Thu Jun 30 16:24:02 CEST 2022


commit 10fa4b749d9328dae438ca43b692bc913f838ec9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jun 30 16:25:38 2022 +0200

    - add opencensus-proto-0.3.0.tar.gz as source to avoid downloading on build

 grpc.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/grpc.spec b/grpc.spec
index bbe70d2..20baffe 100644
--- a/grpc.spec
+++ b/grpc.spec
@@ -16,6 +16,8 @@ Group:		Libraries
 #Source0Download: https://github.com/grpc/grpc/releases
 Source0:	https://github.com/grpc/grpc/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	ba6736177699865450206452a9ae49e0
+Source1:	https://github.com/census-instrumentation/opencensus-proto/archive/v0.3.0/opencensus-proto-0.3.0.tar.gz
+# Source1-md5:	0b208800a68548cbf2d4bff763c050a2
 Patch1:		%{name}-sphinx.patch
 Patch2:		%{name}-x32.patch
 Patch3:		%{name}-libdir.patch
@@ -121,6 +123,9 @@ Dokumentacja API biblioteki Pythona gRPC.
 
 %{__rm} doc/.gitignore
 
+# simulate download_archive result
+%{__tar} xf %{SOURCE1} -C third_party/opencensus-proto --strip-components=1 opencensus-proto-0.3.0/src
+
 %build
 install -d build
 cd build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grpc.git/commitdiff/10fa4b749d9328dae438ca43b692bc913f838ec9



More information about the pld-cvs-commit mailing list