new packages: bencmark, grpc, warpinator and index

This commit is contained in:
suvari
2022-06-11 17:42:35 +03:00
parent 5d8ee38b85
commit 72855d2dfb
14 changed files with 309602 additions and 308509 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("DgRPC_INSTALL=ON \
-DgRPC_ABSL_PROVIDER=package \
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
-DgRPC_CARES_PROVIDER=package \
-DgRPC_PROTOBUF_PROVIDER=package \
-DgRPC_RE2_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \
-DgRPC_BUILD_TESTS=$(usex test) \
-DCMAKE_CXX_STANDARD=17", sourceDir="..")
def build():
cmaketools.make("-C build")
def install():
shelltools.cd("build")
cmaketools.install()
#cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
#pisitools.dodoc("LICENSE", "README.md")
@@ -0,0 +1,46 @@
diff --git a/setup.py b/setup.py
index 4d34c43..5826663 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,7 @@ from distutils import extension as _extension
from distutils import util
import os
import os.path
+import pathlib
import platform
import re
import shlex
@@ -155,6 +156,11 @@ BUILD_WITH_SYSTEM_CARES = _env_bool_value('GRPC_PYTHON_BUILD_SYSTEM_CARES',
# runtime, the shared library must be installed
BUILD_WITH_SYSTEM_RE2 = _env_bool_value('GRPC_PYTHON_BUILD_SYSTEM_RE2', 'False')
+# Export this variable to use the system installation of abseil. You need to
+# have the header files installed (in /usr/include/absl) and during
+# runtime, the shared library must be installed
+BUILD_WITH_SYSTEM_ABSL = os.environ.get('GRPC_PYTHON_BUILD_SYSTEM_ABSL', False)
+
# Export this variable to force building the python extension with a statically linked libstdc++.
# At least on linux, this is normally not needed as we can build manylinux-compatible wheels on linux just fine
# without statically linking libstdc++ (which leads to a slight increase in the wheel size).
@@ -297,6 +303,10 @@ if BUILD_WITH_SYSTEM_RE2:
CORE_C_FILES = filter(lambda x: 'third_party/re2' not in x, CORE_C_FILES)
RE2_INCLUDE = (os.path.join('/usr', 'include', 're2'),)
+if BUILD_WITH_SYSTEM_ABSL:
+ CORE_C_FILES = filter(lambda x: 'third_party/abseil-cpp' not in x, CORE_C_FILES)
+ ABSL_INCLUDE = (os.path.join('/usr', 'include'),)
+
EXTENSION_INCLUDE_DIRECTORIES = ((PYTHON_STEM,) + CORE_INCLUDE + ABSL_INCLUDE +
ADDRESS_SORTING_INCLUDE + CARES_INCLUDE +
RE2_INCLUDE + SSL_INCLUDE + UPB_INCLUDE +
@@ -326,6 +336,10 @@ if BUILD_WITH_SYSTEM_CARES:
EXTENSION_LIBRARIES += ('cares',)
if BUILD_WITH_SYSTEM_RE2:
EXTENSION_LIBRARIES += ('re2',)
+if BUILD_WITH_SYSTEM_ABSL:
+ EXTENSION_LIBRARIES += tuple(
+ lib.stem[3:] for lib in pathlib.Path('/usr').glob('lib*/libabsl_*.so')
+ )
DEFINE_MACROS = (('_WIN32_WINNT', 0x600),)
asm_files = []
+95
View File
@@ -0,0 +1,95 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>grpc</Name>
<Homepage>The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)</Homepage>
<Packager>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Packager>
<License>Apache</License>
<IsA>library</IsA>
<Summary>The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)</Summary>
<Description>High performance, open source, general RPC framework that puts mobile and HTTP/2 first.</Description>
<Archive sha1sum="00d95fdaa75eb97444a22e166133c14d50f1437d" type="targz">https://github.com/grpc/grpc/archive/refs/tags/v1.46.3.tar.gz</Archive>
<Archive sha1sum="7b100bb68db8df1060e178c495f3cbe941c9b058" type="targz" target="v1.46.3">https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>re2c</Dependency>
<Dependency>ninja</Dependency>
<Dependency>cmake</Dependency>
<Dependency>cython3</Dependency>
<Dependency>chrpath</Dependency>
<Dependency>re2-devel</Dependency>
<Dependency>php-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>gtest-devel</Dependency>
<Dependency>c-ares-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>protobuf-devel</Dependency>
<Dependency>benchmark-devel</Dependency>
<Dependency>abseil-cpp-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>NetworkManager-devel</Dependency>
<Dependency>python3-pygobject3-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>python-grpcio-use-system-abseil.patch</Patch>
</Patches>
</Source>
<Package>
<Name>grpc</Name>
<RuntimeDependencies>
<Dependency>xapp</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>polkit</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>python3</Dependency>
<Dependency>chrpath</Dependency>
<Dependency>protobuf</Dependency>
<Dependency>benchmark</Dependency>
<Dependency>abseil-cpp</Dependency>
<Dependency>NetworkManager</Dependency>
<Dependency>python3-pynacl</Dependency>
<Dependency>python3-protobuf</Dependency>
<Dependency>python3-zeroconf</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-pygobject3</Dependency>
<Dependency>python3-cryptography</Dependency>
<Dependency>python3-setproctitle</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/grpc</Path>
<Path fileType="library">/usr/lib/libgrpc*</Path>
<Path fileType="library">/usr/lib/libgpr*</Path>
<Path fileType="library">/usr/lib/libupb*</Path>
<Path fileType="library">/usr/lib/libaddress*</Path>
</Files>
</Package>
<Package>
<Name>grpc-devel</Name>
<RuntimeDependencies>
<Dependency>openssl-devel</Dependency>
<Dependency>abseil-cpp-devel</Dependency>
<Dependency release="current">grpc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/cmake</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2022-06-11</Date>
<Version>1.46.3</Version>
<Comment>First release</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>grpc</Name>
<Summary xml:lang="tr">C tabanlı gRPC (C++, Python, Ruby, Objective-C, PHP, C#)</Summary>
<Description xml:lang="tr">Mobil ve HTTP/2'yi ilk sıraya koyan yüksek performanslı, açık kaynak, genel RPC çerçevesi.</Description>
</Source>
</PISI>