-
Notifications
You must be signed in to change notification settings - Fork 0
/
php82-pecl-grpc.spec
46 lines (38 loc) · 1.2 KB
/
php82-pecl-grpc.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
%global pecl_name grpc
%global ini_name 40-%{pecl_name}.ini
%global upstream_version 1.62.0
%global upstream_prever
%global sources %{pecl_name}-{%upstream_version}%{?upstream_prever}
Name: php82-pecl-%{pecl_name}
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}.8.2
License: Apache-2.0
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
BuildRequires: make
BuildRequires: gcc >= 7.0
BuildRequires: gcc-c++
BuildRequires: php-devel >= 7.0
BuildRequires: php-pear
BuildRequires: zlib-devel
%description
Remote Procedure Calls (RPCs) provide a useful abstraction for building
distributed applications and services. The libraries in this repository
provide a concrete implementation of the gRPC protocol, layered over HTTP/2.
These libraries enable communication between clients and servers using
any combination of the supported languages
Package built for PHP 8.2
%prep
%setup -q -c
# Create configuration file
cat << 'EOF' | tee %{ini_name}
; Enable "%{summary}" extension module
extension=%{pecl_name}.so
EOF
%build
cd %{sources}
phpize
./configure
make
%install
make install INSTALL_ROOT=%{buildroot}