Properly store patch in SRPM
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
fe044972b6
commit
f20099b2d6
11
grpc.spec
11
grpc.spec
@ -24,10 +24,8 @@ BuildRequires: python3-Cython
|
||||
Patch0: 0001-enforce-system-crypto-policies.patch
|
||||
# https://github.com/grpc/grpc/pull/15532
|
||||
Patch1: 0002-patch-from-15532.patch
|
||||
|
||||
%if 0%{?fedora} < 30
|
||||
# F29 and older has too old protobuf without ruby plugin
|
||||
Patch2: 0001-Do-not-build-the-Ruby-plugin.patch
|
||||
%endif
|
||||
|
||||
%description
|
||||
gRPC is a modern open source high performance RPC framework that can run in any
|
||||
@ -81,7 +79,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Python3 bindings for gRPC library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup -N
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if 0%{?fedora} && 0%{?fedora} < 30
|
||||
%patch2 -p1
|
||||
%endif
|
||||
sed -i 's:^prefix ?= .*:prefix ?= %{_prefix}:' Makefile
|
||||
sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:' Makefile
|
||||
sed -i 's:^GTEST_LIB =.*::' Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user