SHA256
1
0
forked from jengelh/grpc

adjust library versioning to match Makefile

OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=21
This commit is contained in:
2018-05-18 14:07:31 +00:00
committed by Git OBS Bridge
parent 013079cc2f
commit 45c7394d0c
2 changed files with 46 additions and 15 deletions

View File

@@ -16,7 +16,6 @@
#
%define lname libgrpc6
Name: grpc
Version: 1.12.0
Release: 0
@@ -42,11 +41,20 @@ The reference implementation of the gRPC protocol, done on top of
HTTP/2 with support for synchronous and asynchronous calls. gRPC uses
Protocol Buffers as the Interface Definition Language by default.
%package -n %lname
%package -n libgrpc6
Summary: HTTP/2-based Remote Procedure Call implementation
Group: System/Libraries
%description -n %lname
%description -n libgrpc6
The reference implementation of the gRPC protocol, done on top of
HTTP/2 with support for synchronous and asynchronous calls. gRPC uses
Protocol Buffers as the Interface Definition Language by default.
%package -n libgrpc++1
Summary: C++ interface to grpc, a HTTP/2-based Remote Procedure Call implementation
Group: System/Libraries
%description -n libgrpc++1
The reference implementation of the gRPC protocol, done on top of
HTTP/2 with support for synchronous and asynchronous calls. gRPC uses
Protocol Buffers as the Interface Definition Language by default.
@@ -54,7 +62,8 @@ Protocol Buffers as the Interface Definition Language by default.
%package devel
Summary: Development files for grpc, a HTTP/2 Remote Procedure Call implementation
Group: Development/Tools/Building
Requires: %lname = %version
Requires: libgrpc++1 = %version
Requires: libgrpc6 = %version
%description devel
This subpackage contains libraries and header files for developing
@@ -93,12 +102,19 @@ cp x/opt/pkgconfig/*.pc "$b/%_libdir/pkgconfig/"
# ln -s "${i##*/}" "${i%%-%version.so}.so"
#done
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post -n libgrpc6 -p /sbin/ldconfig
%postun -n libgrpc6 -p /sbin/ldconfig
%post -n libgrpc++1 -p /sbin/ldconfig
%postun -n libgrpc++1 -p /sbin/ldconfig
%files -n %lname
%files -n libgrpc6
%defattr(-,root,root)
%_libdir/libg*.so.6
%_libdir/libgrpc.so.6*
%_libdir/libgrpc_*.so.6*
%files -n libgrpc++1
%defattr(-,root,root)
%_libdir/libgrpc++*.so.1
%files devel
%defattr(-,root,root)