Projects
home:dingli:branches:openEuler:24.03-hadoop-nodejs
hadoop
_service:tar_scm:hadoop-protoc-gen-grpc-java.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:hadoop-protoc-gen-grpc-java.spec of Package hadoop
%global _debuginfo_template %{nil} %global _debugsource_template %{nil} %global protobuf_version 3.11.0 %global gradle_version 5.6.2 Name: hadoop-protoc-gen-grpc-java Version: 1.26.0 Release: 1 Summary: Protobuf gRPC compiler for Java License: MIT URL: https://github.com/grpc/grpc-java Source0: https://github.com/grpc/grpc-java/archive/refs/tags/v%{version}.tar.gz Source1: https://services.gradle.org/distributions/gradle-%{gradle_version}-bin.zip Source2: https://github.com/google/protobuf/releases/download/v%{protobuf_version}/protobuf-all-%{protobuf_version}.tar.gz Source3: https://github.com/protocolbuffers/protobuf/archive/refs/tags/v%{protobuf_version}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: zlib-devel BuildRequires: libstdc++-static BuildRequires: java-1.8.0-openjdk-devel maven maven-local Patch0: 1001-Added-support-for-building-the-riscv64-protoc-gen-gr.patch Patch1: 1002-Added-support-for-building-the-riscv64-protoc-binari.patch ExclusiveArch: riscv64 %description Protobuf gRPC compiler for Java. %prep %setup -q -n grpc-java-%{version} %patch0 -p1 sed -i "s,@HOME@,${HOME},g" build.gradle sed -i 's|https\\://services.gradle.org/distributions|file://%{_tmppath}/source|g' gradle/wrapper/gradle-wrapper.properties # prepare gradle and protobuf for build mkdir -p %{_tmppath}/source cp %{SOURCE1} %{_tmppath}/source tar xzf %{SOURCE2} -C %{_tmppath}/source mkdir -p %{_tmppath}/source/protoc-gen-tmp tar xzf %{SOURCE3} -C %{_tmppath}/source/protoc-gen-tmp # prepare protoc.exe for build pushd %{_tmppath}/source/protoc-gen-tmp/protobuf-%{protobuf_version} %patch1 -p1 ./autogen.sh %ifarch riscv64 ./protoc-artifacts/build-protoc.sh linux riscv64 protoc mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=%{protobuf_version} -Dclassifier=linux-riscv64 -Dpackaging=exe -Dfile=./protoc-artifacts/target/linux/riscv64/protoc.exe %endif popd %build %ifarch riscv64 SKIP_TESTS=true ARCH=riscv64 ./buildscripts/kokoro/unix.sh %endif %install install -d -m 0755 %{buildroot}%{_bindir}/%{name}-%{version} %ifarch riscv64 install -m 0755 mvn-artifacts/io/grpc/protoc-gen-grpc-java/%{version}/protoc-gen-grpc-java-%{version}-linux-riscv64.exe %{buildroot}%{_bindir}/%{name}-%{version}/protoc-gen-grpc-java-%{version}-linux-riscv64.exe echo %{_bindir}/%{name}-%{version}/protoc-gen-grpc-java-%{version}-linux-riscv64.exe >> .mfiles %endif %files -f .mfiles %changelog * Thu May 30 2024 Dingli Zhang <dingli@iscas.ac.cn> - 1.26.0-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2