From 702153286c72da9bb2c1483673f1b1a83a9a617b35cc198801fe509f849d486a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 24 Oct 2024 07:55:58 +0000 Subject: [PATCH] little fixes around architecture OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=186 --- protobuf-java.changes | 7 +++++++ protobuf-java.spec | 32 ++++++++++++++++---------------- protobuf.changes | 7 +++++++ python-protobuf.changes | 7 +++++++ 4 files changed, 37 insertions(+), 16 deletions(-) diff --git a/protobuf-java.changes b/protobuf-java.changes index 96ec67b..83dad29 100644 --- a/protobuf-java.changes +++ b/protobuf-java.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 23 08:44:06 UTC 2024 - Fridrich Strba + +- Java: fix generating proper maven descriptor for protoc on aarch64 +- Java: rename global variable buildarch -> protoc_arch to avoid + name clash on sle15 + ------------------------------------------------------------------- Mon Oct 21 20:55:21 UTC 2024 - Fridrich Strba diff --git a/protobuf-java.spec b/protobuf-java.spec index 6ec27cc..5e94248 100644 --- a/protobuf-java.spec +++ b/protobuf-java.spec @@ -19,44 +19,44 @@ %define tarname protobuf %define baseversion 28.2 -%global buildarch %{_arch} -%ifarch x86_64 -%global buildarch x86_64 +%global protoc_arch %{_arch} +%ifarch x86_64 %{?x86_64} +%global protoc_arch x86_64 %endif %ifarch ppc -%global buildarch ppc_32 +%global protoc_arch ppc_32 %endif %ifarch ppc64 -%global buildarch ppc_64 +%global protoc_arch ppc_64 %endif %ifarch ppc64le -%global buildarch ppcle_64 +%global protoc_arch ppcle_64 %endif %ifarch %{ix86} -%global buildarch x86_32 +%global protoc_arch x86_32 %endif %ifarch ia64 -%global buildarch itanium_64 +%global protoc_arch itanium_64 %endif %ifarch s390 -%global buildarch s390_32 +%global protoc_arch s390_32 %endif %ifarch s390x -%global buildarch s390_64 +%global protoc_arch s390_64 %endif %ifarch %{arm} -%global buildarch arm_32 +%global protoc_arch arm_32 %endif -%ifarch %{aarch64} -%global buildarch aarch_64 +%ifarch aarch64 %{arm64} +%global protoc_arch aarch_64 %endif # 32 bit sparc, optimized for v9 %ifarch sparcv9 -%global buildarch sparc_32 +%global protoc_arch sparc_32 %endif # 64 bit sparc %ifarch sparc64 -%global buildarch sparc_64 +%global protoc_arch sparc_64 %endif Name: protobuf-java Version: 4.%{baseversion} @@ -344,7 +344,7 @@ cat <<__PROTOBUF__ >>%{buildroot}%{_datadir}/maven-metadata/%{name}-protoc.xml com.google.protobuf protoc exe - linux-%{buildarch} + linux-%{protoc_arch} %{version} $(type -p protoc) diff --git a/protobuf.changes b/protobuf.changes index 96ec67b..83dad29 100644 --- a/protobuf.changes +++ b/protobuf.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 23 08:44:06 UTC 2024 - Fridrich Strba + +- Java: fix generating proper maven descriptor for protoc on aarch64 +- Java: rename global variable buildarch -> protoc_arch to avoid + name clash on sle15 + ------------------------------------------------------------------- Mon Oct 21 20:55:21 UTC 2024 - Fridrich Strba diff --git a/python-protobuf.changes b/python-protobuf.changes index 96ec67b..83dad29 100644 --- a/python-protobuf.changes +++ b/python-protobuf.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 23 08:44:06 UTC 2024 - Fridrich Strba + +- Java: fix generating proper maven descriptor for protoc on aarch64 +- Java: rename global variable buildarch -> protoc_arch to avoid + name clash on sle15 + ------------------------------------------------------------------- Mon Oct 21 20:55:21 UTC 2024 - Fridrich Strba