This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grpcio.spec
101 lines (84 loc) · 3.02 KB
/
grpcio.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : grpcio
Version : 1.27.1
Release : 40
URL : https://files.pythonhosted.org/packages/e5/db/2b747faac8d840223f406dda2aa048e9cc1ef297005d42a80af1224b4e77/grpcio-1.27.1.tar.gz
Source0 : https://files.pythonhosted.org/packages/e5/db/2b747faac8d840223f406dda2aa048e9cc1ef297005d42a80af1224b4e77/grpcio-1.27.1.tar.gz
Summary : HTTP/2-based RPC framework
Group : Development/Tools
License : Apache-2.0
Requires: grpcio-license = %{version}-%{release}
Requires: grpcio-python = %{version}-%{release}
Requires: grpcio-python3 = %{version}-%{release}
Requires: Cython
Requires: coverage
Requires: protobuf
Requires: six
Requires: wheel
BuildRequires : Cython
BuildRequires : buildreq-distutils3
BuildRequires : coverage
BuildRequires : protobuf
BuildRequires : python3-dev
BuildRequires : six
BuildRequires : wheel
%description
gRPC - An RPC library and framework
===================================
gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems.
%package license
Summary: license components for the grpcio package.
Group: Default
%description license
license components for the grpcio package.
%package python
Summary: python components for the grpcio package.
Group: Default
Requires: grpcio-python3 = %{version}-%{release}
%description python
python components for the grpcio package.
%package python3
Summary: python3 components for the grpcio package.
Group: Default
Requires: python3-core
%description python3
python3 components for the grpcio package.
%prep
%setup -q -n grpcio-1.27.1
cd %{_builddir}/grpcio-1.27.1
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1581186895
# -Werror is for werrorists
export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fcf-protection=full -fno-lto -fstack-protector-strong "
export FCFLAGS="$CFLAGS -fcf-protection=full -fno-lto -fstack-protector-strong "
export FFLAGS="$CFLAGS -fcf-protection=full -fno-lto -fstack-protector-strong "
export CXXFLAGS="$CXXFLAGS -fcf-protection=full -fno-lto -fstack-protector-strong "
export MAKEFLAGS=%{?_smp_mflags}
python3 setup.py build
%install
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/grpcio
cp %{_builddir}/grpcio-1.27.1/LICENSE %{buildroot}/usr/share/package-licenses/grpcio/2b8b815229aa8a61e483fb4ba0588b8b6c491890
python3 -tt setup.py build install --root=%{buildroot}
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
echo ----[ mark ]----
%files
%defattr(-,root,root,-)
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/grpcio/2b8b815229aa8a61e483fb4ba0588b8b6c491890
%files python
%defattr(-,root,root,-)
%files python3
%defattr(-,root,root,-)
/usr/lib/python3*/*