删除文件 grpc.spec_bak
This commit is contained in:
parent
04d6fce839
commit
2df4e8bca6
133
grpc.spec_bak
133
grpc.spec_bak
@ -1,133 +0,0 @@
|
||||
Name: grpc
|
||||
Version: 1.31.0
|
||||
Release: 1
|
||||
Summary: A modern, open source high performance RPC framework that can run in any environment
|
||||
License: ASL 2.0
|
||||
URL: https://www.grpc.io
|
||||
Source0: https://github.com/grpc/grpc/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: abseil-cpp-b832dce8489ef7b6231384909fd9b68d5a5ff2b7.tar.gz
|
||||
Source2: benchmark-v1.5.1.tar.gz
|
||||
Source3: re2-2020-08-01.tar.gz
|
||||
Source4: googletest-release-1.10.0.tar.gz
|
||||
|
||||
Patch0000: Copy-channel-args-hash-before-appending-ruby-user-ag.patch
|
||||
Patch0001: Ran-generate_proto_ruby.sh-to-update-generated-files.patch
|
||||
Patch0002: Add-ABSL_RANDOM_HWAES_FLAGS.patch
|
||||
Patch0003: Fix-destruction-race-between-subchannel-and-client_c.patch
|
||||
Patch0004: Fix-use-after-free-by-removing-stream-from-transport.patch
|
||||
Patch0005: repair-gflags-compile-error-with-cmake.patch
|
||||
Patch0006: repair-pkgconfig-path.patch
|
||||
Patch0007: add-secure-compile-option-in-Makefile.patch
|
||||
|
||||
BuildRequires: gcc-c++ pkgconfig protobuf-devel protobuf-compiler gdb
|
||||
BuildRequires: openssl-devel c-ares-devel gflags-devel gtest-devel zlib-devel gperftools-devel re2-devel
|
||||
BuildRequires: python3-devel python3-setuptools python3-Cython
|
||||
BuildRequires: cmake >= 3.13.0
|
||||
Requires: protobuf-compiler glfags
|
||||
|
||||
Provides: %{name}-plugins = %{version}-%{release}
|
||||
Provides: %{name}-cli = %{version}-%{release}
|
||||
Obsoletes: %{name}-plugins < %{version}-%{release}
|
||||
Obsoletes: %{name}-cli < %{version}-%{release}
|
||||
|
||||
%description
|
||||
gRPC is a modern open source high performance RPC framework that can run in any environment.
|
||||
It can efficiently connect services in and across data centers with pluggable support for
|
||||
load balancing, tracing, health checking and authentication. It is also applicable in last
|
||||
mile of distributed computing to connect devices, mobile applications and browsers to backend services.
|
||||
|
||||
%package devel
|
||||
Summary: gRPC library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development headers and files for gRPC libraries.
|
||||
|
||||
%package -n python3-grpcio
|
||||
Summary: Python3 language bindings for gRPC
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n python3-grpcio
|
||||
Python3 bindings for gRPC.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
tar -zxf %{SOURCE1} --strip-components 1 -C %{_builddir}/%{name}-%{version}/third_party/abseil-cpp/
|
||||
tar -zxf %{SOURCE2} --strip-components 1 -C %{_builddir}/%{name}-%{version}/third_party/benchmark/
|
||||
tar -zxf %{SOURCE3} --strip-components 1 -C %{_builddir}/%{name}-%{version}/third_party/re2/
|
||||
tar -zxf %{SOURCE4} --strip-components 1 -C %{_builddir}/%{name}-%{version}/third_party/googletest/
|
||||
|
||||
%build
|
||||
mkdir -p cmake/build
|
||||
cd cmake/build
|
||||
cmake ../../ -DgRPC_INSTALL=ON\
|
||||
-DgRPC_CARES_PROVIDER=package \
|
||||
-DgRPC_PROTOBUF_PROVIDER=package \
|
||||
-DgRPC_SSL_PROVIDER=package \
|
||||
-DgRPC_ZLIB_PROVIDER=package \
|
||||
-DgRPC_GFLAGS_PROVIDER=package \
|
||||
-DgRPC_INSTALL_LIBDIR=%{buildroot}%{_libdir} \
|
||||
-DgRPC_INSTALL_BINDIR=%{buildroot}%{_bindir} \
|
||||
-DgRPC_INSTALL_INCLUDEDIR=%{buildroot}%{_includedir} \
|
||||
-DgRPC_INSTALL_CMAKEDIR=%{buildroot}%{_prefix}/lib/cmake/%{name} \
|
||||
-DgRPC_INSTALL_SHAREDIR=%{buildroot}%{_datadir}/%{name} \
|
||||
-DgRPC_INSTALL_PKGCONFIGDIR=%{buildroot}%{_libdir}/pkgconfig \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
make %{_smp_mflags}
|
||||
cd ../..
|
||||
make grpc_cli
|
||||
|
||||
# build python module
|
||||
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
|
||||
export CFLAGS="%optflags"
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
cd cmake/build
|
||||
make install/local
|
||||
cd ../..
|
||||
cp bins/opt/grpc_cli %{buildroot}%{_bindir}
|
||||
rm -rf %{buildroot}%{_prefix}/lib
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%delete_la_and_a
|
||||
%py3_install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%{_bindir}/grpc_cli
|
||||
%{_bindir}/grpc_*_plugin
|
||||
|
||||
%{_libdir}/*.so.1*
|
||||
%{_libdir}/*.so.11*
|
||||
%{_libdir}/*absl*
|
||||
%{_libdir}/*re2*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_includedir}/grpc
|
||||
%{_includedir}/grpc++
|
||||
%{_includedir}/grpcpp
|
||||
|
||||
%files -n python3-grpcio
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitearch}/grpc
|
||||
%{python3_sitearch}/grpcio-%{version}-py?.?.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.22.0-2
|
||||
- Delete unused patch
|
||||
|
||||
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.22.0-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user