stronger /env replacement
OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=178
This commit is contained in:
parent
c7b2eba2e2
commit
2ff2108b10
@ -126,14 +126,17 @@ This subpackage contains source code of the gRPC reference implementation.
|
||||
|
||||
%prep
|
||||
%autosetup -N
|
||||
find "." -type f -exec grep -l '/usr/bin/env' {} + | \
|
||||
xargs -r perl -i -lpe 's{#! ?/usr/bin/env python\S+}{#!/usr/bin/python3}g'
|
||||
find "." -type f -exec grep -l '/usr/bin/env ' {} + | \
|
||||
xargs -r perl -i -lpe 's{#! ?/usr/bin/env }{#!/usr/bin/}g'
|
||||
pushd third_party/xxhash
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
popd
|
||||
rm -Rf third_party/abseil-cpp/
|
||||
find . -type f -exec grep -l '#!/usr/bin/env py' | \
|
||||
xargs perl -i -lpe 's{#!/usr/bin/env py\w+}{#!/usr/bin/python3}g'
|
||||
|
||||
%build
|
||||
# protoc is invoked strangely; make it happy with this dir or it will assert()
|
||||
mkdir -p third_party/protobuf/src
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user