Hello community, here is the log from the commit of package grpc for openSUSE:Factory checked in at 2019-01-15 09:17:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grpc (Old) and /work/SRC/openSUSE:Factory/.grpc.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grpc" Tue Jan 15 09:17:17 2019 rev:12 rq:665021 version:1.16 Changes: -------- --- /work/SRC/openSUSE:Factory/grpc/grpc.changes 2018-11-12 09:45:57.848778538 +0100 +++ /work/SRC/openSUSE:Factory/.grpc.new.28833/grpc.changes 2019-01-15 09:17:42.442161066 +0100 @@ -1,0 +2,7 @@ +Mon Jan 7 11:39:15 UTC 2019 - MichaĆ Rostecki <mroste...@suse.de> + +- Add grpc-source package - some Go programs using gRPC need + protobuf definitions which are included inside the source code, + but are not included in the devel package. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grpc.spec ++++++ --- /var/tmp/diff_new_pack.VEygTn/_old 2019-01-15 09:17:43.098160454 +0100 +++ /var/tmp/diff_new_pack.VEygTn/_new 2019-01-15 09:17:43.098160454 +0100 @@ -1,7 +1,7 @@ # # spec file for package grpc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %define lname libgrpc6 +%define src_install_dir /usr/src/%{name} %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: grpc Version: 1.16 @@ -63,6 +64,14 @@ This subpackage contains libraries and header files for developing applications that want to make use of the gRPC reference implementation. +%package source +Summary: Source code of gRPC +Group: Development/sources +BuildArch: noarch + +%description -n grpc-source +This subpackage contains source code of the gRPC reference implementation. + %package -n python2-grpcio Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation Group: Development/Libraries/Python @@ -110,6 +119,15 @@ popd %python_install +# Install sources +mkdir -p %{buildroot}%{src_install_dir} +tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} +# Fix env-script-interpreter rpmlint error +find %{buildroot}%{src_install_dir} -type f -exec sed -i 's|#!/usr/bin/env bash|#!/bin/bash|' "{}" + +find %{buildroot}%{src_install_dir} -type f -exec sed -i 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' "{}" + +find %{buildroot}%{src_install_dir} -type f \( -name "*.bzl" -o -name "*.py" \) -exec sed -i 's|#!/usr/bin/env python2.7|#!/usr/bin/python2.7|' "{}" + +find %{buildroot}%{src_install_dir} -type f \( -name "*.bzl" -o -name "*.py" \) -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|' "{}" + + %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig @@ -127,6 +145,9 @@ %_libdir/pkgconfig/*.pc %_libdir/*.so +%files source +%{src_install_dir} + %files -n python2-grpcio %python2_sitearch/grpcio-%rver-py*.egg-info %python2_sitearch/grpc