已开启
add support for loongarch64 #48
dpdwaj创建于 7月13日
add support for loongarch64 #48
已开启
dpdwaj创建于 7月13日
4 个文件变更+14-1
Mhive.spec+14-1
@@ -2,7 +2,7 @@
2 2 
3Name: hive3Name: hive
4Version: 3.1.34Version: 3.1.3
5-Release: 55+Release: 6
6Summary: The Apache Hadoop data warehouse6Summary: The Apache Hadoop data warehouse
7 7 
8License: Apache-2.0 and Python-2.0 and MPL-2.0 and BSD and ICU8License: Apache-2.0 and Python-2.0 and MPL-2.0 and BSD and ICU
@@ -15,6 +15,9 @@ Source3: guava-27.0-jre.jar
15Source4: mysql-connector-java.jar15Source4: mysql-connector-java.jar
16Source5: https://github.com/os72/protoc-jar/archive/refs/tags/v3.5.1.1.tar.gz16Source5: https://github.com/os72/protoc-jar/archive/refs/tags/v3.5.1.1.tar.gz
17Source6: https://github.com/os72/protoc-jar-maven-plugin/archive/refs/tags/v3.5.1.1.zip17Source6: https://github.com/os72/protoc-jar-maven-plugin/archive/refs/tags/v3.5.1.1.zip
18+Source7: protoc-2.5.0-linux-loongarch_64.exe
19+Source8: protoc-jar-3.5.1.1-loongarch64.tar.gz
20+Source9: protoc-jar-maven-plugin-3.5.1.1-loongarch64.tar.gz
18 21 
19BuildRequires: cmake java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local protobuf2-devel protobuf2-compiler22BuildRequires: cmake java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local protobuf2-devel protobuf2-compiler
20 23 
@@ -49,6 +52,13 @@ mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dver
49%setup -q -n %{name}-rel-release-%{version}52%setup -q -n %{name}-rel-release-%{version}
50mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc53mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc
51mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-algorithm -Dversion=5.1.5-jhyde -Dpackaging=jar -Dfile=%{SOURCE2}54mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-algorithm -Dversion=5.1.5-jhyde -Dpackaging=jar -Dfile=%{SOURCE2}
55+%if "%{_arch}" == "loongarch64"
56+mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-loongarch_64 -Dpackaging=exe -Dfile=%{SOURCE7}
57+mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar/
58+tar -mxf %{SOURCE8} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar/
59+mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/
60+tar -mxf %{SOURCE9} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/
61+%endif
52cp %{SOURCE1} ./.xmvn-reactor62cp %{SOURCE1} ./.xmvn-reactor
53echo `pwd` > absolute_prefix.log63echo `pwd` > absolute_prefix.log
54sed -i 's/\//\\\//g' absolute_prefix.log64sed -i 's/\//\\\//g' absolute_prefix.log
@@ -143,6 +153,9 @@ ln -s %{_javadir}/%{name}/%{name}-shims.jar %{buildroot}%{_datadir}/hadoop/mapre
143 153 
144 154 
145%changelog155%changelog
156+* Mon Jul 13 2026 doupengda <doupengda@loongson.cn> - 3.1.3-6
157+- add support for loongarch64
158+ 
146* Mon Dec 16 2024 litian <dev11105@linx-info.com> - 3.1.3-5159* Mon Dec 16 2024 litian <dev11105@linx-info.com> - 3.1.3-5
147- fix %patchN is deprecated warning160- fix %patchN is deprecated warning
148 161 
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview