Change-Id: I8c8056be67e106f68370ddfb3c5db4171b7a4c6d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4954
Reviewed-by: Sharath George
Tested-by: Sharath George
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,65 @@ |
| 0 |
+Summary: Google RPC |
|
| 1 |
+Name: grpc |
|
| 2 |
+Version: 1.10.0 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: Apache License, Version 2.0 |
|
| 5 |
+URL: https://grpc.io |
|
| 6 |
+Group: Development/Libraries |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: https://github.com/grpc/grpc/archive/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 grpc=0755317f82455f79228d3d30e306dc3c9e44de3c |
|
| 11 |
+BuildRequires: build-essential |
|
| 12 |
+BuildRequires: which |
|
| 13 |
+BuildRequires: c-ares-devel |
|
| 14 |
+BuildRequires: zlib-devel |
|
| 15 |
+BuildRequires: gperftools-devel |
|
| 16 |
+Requires: protobuf-c |
|
| 17 |
+Requires: c-ares-devel |
|
| 18 |
+Requires: zlib-devel |
|
| 19 |
+Requires: openssl-devel |
|
| 20 |
+ |
|
| 21 |
+%description |
|
| 22 |
+Remote Procedure Calls (RPCs) provide a useful abstraction for building |
|
| 23 |
+distributed applications and services. The libraries in this repository |
|
| 24 |
+provide a concrete implementation of the gRPC protocol, layered over HTTP/2. |
|
| 25 |
+These libraries enable communication between clients and servers using and |
|
| 26 |
+combination of the supported languages. |
|
| 27 |
+ |
|
| 28 |
+%package devel |
|
| 29 |
+Summary: Development files for grpc |
|
| 30 |
+Group: Development/Libraries |
|
| 31 |
+Requires: grpc = %{version}-%{release}
|
|
| 32 |
+ |
|
| 33 |
+%description devel |
|
| 34 |
+The grpc-devel package contains libraries and header files for |
|
| 35 |
+developing applications that use grpc. |
|
| 36 |
+ |
|
| 37 |
+%prep |
|
| 38 |
+%setup -q |
|
| 39 |
+ |
|
| 40 |
+%build |
|
| 41 |
+make %{_smp_mflags} prefix=%{_prefix} libdir=%{_libdir}
|
|
| 42 |
+ |
|
| 43 |
+%install |
|
| 44 |
+make install prefix=%{buildroot}%{_prefix} libdir=%{buildroot}%{_libdir}
|
|
| 45 |
+ln -sf libgrpc++.so.6 %{buildroot}%{_libdir}/libgrpc++.so.1
|
|
| 46 |
+ln -sf libgrpc++_reflection.so.6 %{buildroot}%{_libdir}/libgrpc++_reflection.so.1
|
|
| 47 |
+ln -sf libgrpc++_unsecure.so.6 %{buildroot}%{_libdir}/libgrpc++_unsecure.so.1
|
|
| 48 |
+ln -sf libgrpc++_error_details.so.6 %{buildroot}%{_libdir}/libgrpc++_error_details.so.1
|
|
| 49 |
+ |
|
| 50 |
+%post -p /sbin/ldconfig |
|
| 51 |
+%postun -p /sbin/ldconfig |
|
| 52 |
+ |
|
| 53 |
+%files |
|
| 54 |
+%{_bindir}/*
|
|
| 55 |
+%{_libdir}/lib*
|
|
| 56 |
+%{_datarootdir}/%{name}
|
|
| 57 |
+ |
|
| 58 |
+%files devel |
|
| 59 |
+%{_includedir}/*
|
|
| 60 |
+%{_libdir}/pkgconfig/*
|
|
| 61 |
+ |
|
| 62 |
+%changelog |
|
| 63 |
+* Tue Mar 27 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-1 |
|
| 64 |
+- initial version |