Accepting request 784547 from home:scarabeus_iv:branches:devel:tools
- Add conditional to build without python2 if needed OBS-URL: https://build.opensuse.org/request/show/784547 OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=60
This commit is contained in:
parent
84ab1ce226
commit
134ac76bec
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 06:53:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add conditional to build without python2 if needed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 9 11:39:15 UTC 2020 - Michał Rostecki <mrostecki@opensuse.org>
|
Thu Jan 9 11:39:15 UTC 2020 - Michał Rostecki <mrostecki@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package grpc
|
# spec file for package grpc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,6 +19,7 @@
|
|||||||
%define lver 8
|
%define lver 8
|
||||||
%define lverp 1
|
%define lverp 1
|
||||||
%define src_install_dir /usr/src/%name
|
%define src_install_dir /usr/src/%name
|
||||||
|
%bcond_without python2
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: grpc
|
Name: grpc
|
||||||
Version: 1.25.0
|
Version: 1.25.0
|
||||||
@ -96,7 +97,6 @@ This subpackage contains source code of the gRPC reference implementation.
|
|||||||
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
|
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: libgrpc%lver = %version-%release
|
Requires: libgrpc%lver = %version-%release
|
||||||
Requires: python = %python2_version
|
|
||||||
|
|
||||||
%description -n python2-grpcio
|
%description -n python2-grpcio
|
||||||
This subpackage contains the python2 bindings.
|
This subpackage contains the python2 bindings.
|
||||||
@ -105,7 +105,6 @@ This subpackage contains the python2 bindings.
|
|||||||
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
|
Summary: Python language bindings for grpc, a HTTP/2 Remote Procedure Call implementation
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: libgrpc%lver = %version-%release
|
Requires: libgrpc%lver = %version-%release
|
||||||
Requires: python = %python3_version
|
|
||||||
|
|
||||||
%description -n python3-grpcio
|
%description -n python3-grpcio
|
||||||
This subpackage contains the python3 bindings.
|
This subpackage contains the python3 bindings.
|
||||||
@ -179,8 +178,10 @@ cp -r * "%buildroot/%src_install_dir"
|
|||||||
%files source
|
%files source
|
||||||
%src_install_dir
|
%src_install_dir
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
%files -n python2-grpcio
|
%files -n python2-grpcio
|
||||||
%python2_sitearch/grpc*
|
%python2_sitearch/grpc*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-grpcio
|
%files -n python3-grpcio
|
||||||
%python3_sitearch/grpc*
|
%python3_sitearch/grpc*
|
||||||
|
Loading…
Reference in New Issue
Block a user