SHA256
1
0
forked from pool/grpc
Jan Engelhardt 2018-05-18 15:11:37 +00:00 committed by Git OBS Bridge
parent b6a645a3b5
commit 30aa4f3ce5

View File

@ -61,14 +61,14 @@ applications that want to make use of the gRPC reference implementation.
%setup -q
%build
%make_jobs STRIP=/bin/true V=1 VERBOSE=1 CFLAGS="%optflags" CXXFLAGS="%optflags"
make %{?_smp_mflags} STRIP=/bin/true V=1 VERBOSE=1 CFLAGS="%optflags" CXXFLAGS="%optflags"
%install
b="%buildroot"
%make_install prefix="$b/%_prefix" STRIP=/bin/true V=1 VERBOSE=1
find "$b/%_includedir" -type f -exec chmod a-x {} +
pushd "$b/usr"
rm -f lib/*.a
rm -fv lib/*.a share/grpc/*.pem
perl -i -pe 's{^prefix=.*}{prefix=%_prefix}' lib/pkgconfig/*.pc
perl -i -pe 's{^libdir=.*}{libdir=%_libdir}' lib/pkgconfig/*.pc
if test ! -d lib64 && test "%_lib" = lib64; then
@ -92,6 +92,5 @@ popd
%_includedir/*
%_libdir/pkgconfig/*.pc
%_libdir/*.so
%_datadir/grpc/
%changelog