已开启
add support for loongarch64 #47
dpdwaj创建于 7月13日
add support for loongarch64 #47
已开启
共 4 个文件变更+14-1
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Name: hive | 3 | Name: hive |
| 4 | Version: 3.1.3 | 4 | Version: 3.1.3 |
| 5 | -Release: 3 | 5 | +Release: 4 |
| 6 | Summary: The Apache Hadoop data warehouse | 6 | Summary: The Apache Hadoop data warehouse |
| 7 | 7 | ||
| 8 | License: Apache-2.0 and Python-2.0 and MPL-2.0 and BSD and ICU | 8 | License: 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 | |||
| 15 | Source4: mysql-connector-java.jar | 15 | Source4: mysql-connector-java.jar |
| 16 | Source5: protoc-jar-3.5.1.1.tar.gz | 16 | Source5: protoc-jar-3.5.1.1.tar.gz |
| 17 | Source6: protoc-jar-maven-plugin-3.5.1.1.tar.gz | 17 | Source6: protoc-jar-maven-plugin-3.5.1.1.tar.gz |
| 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 | ||
| 19 | BuildRequires: cmake java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local protobuf2-devel protobuf2-compiler | 22 | BuildRequires: cmake java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local protobuf2-devel protobuf2-compiler |
| 20 | Requires: java-1.8.0-openjdk | 23 | Requires: java-1.8.0-openjdk |
| @@ -37,6 +40,13 @@ tar -mxf %{SOURCE5} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar/ | |||
| 37 | mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ | 40 | mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ |
| 38 | tar -mxf %{SOURCE6} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ | 41 | tar -mxf %{SOURCE6} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ |
| 39 | %endif | 42 | %endif |
| 43 | +%if "%{_arch}" == "loongarch64" | ||
| 44 | +mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-loongarch_64 -Dpackaging=exe -Dfile=%{SOURCE7} | ||
| 45 | +mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar/ | ||
| 46 | +tar -mxf %{SOURCE8} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar/ | ||
| 47 | +mkdir -p ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ | ||
| 48 | +tar -mxf %{SOURCE9} -C ${HOME}/.m2/repository/com/github/os72/protoc-jar-maven-plugin/ | ||
| 49 | +%endif | ||
| 40 | cp %{SOURCE1} ./.xmvn-reactor | 50 | cp %{SOURCE1} ./.xmvn-reactor |
| 41 | echo `pwd` > absolute_prefix.log | 51 | echo `pwd` > absolute_prefix.log |
| 42 | sed -i 's/\//\\\//g' absolute_prefix.log | 52 | sed -i 's/\//\\\//g' absolute_prefix.log |
| @@ -132,6 +142,9 @@ ln -s %{_javadir}/%{name}/%{name}-shims.jar %{buildroot}%{_datadir}/hadoop/mapre | |||
| 132 | 142 | ||
| 133 | 143 | ||
| 134 | %changelog | 144 | %changelog |
| 145 | +* Mon Jul 13 2026 doupengda <doupengda@loongson.cn> - 3.1.3-4 | ||
| 146 | +- add support for loongarch64 | ||
| 147 | + | ||
| 135 | * Wed May 29 2024 Dingli Zhang <dingli@iscas.ac.cn> - 3.1.3-3 | 148 | * Wed May 29 2024 Dingli Zhang <dingli@iscas.ac.cn> - 3.1.3-3 |
| 136 | - Fix riscv64 support | 149 | - Fix riscv64 support |
| 137 | 150 | ||
Binary files do not support preview
Binary files do not support preview
Binary files do not support preview