已开启
add support for loongarch64 #48
dpdwaj创建于 7月13日
add support for loongarch64 #48
已开启
共 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: 5 | 5 | +Release: 6 |
| 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: https://github.com/os72/protoc-jar/archive/refs/tags/v3.5.1.1.tar.gz | 16 | Source5: https://github.com/os72/protoc-jar/archive/refs/tags/v3.5.1.1.tar.gz |
| 17 | Source6: https://github.com/os72/protoc-jar-maven-plugin/archive/refs/tags/v3.5.1.1.zip | 17 | Source6: 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 | ||
| 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 | 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} |
| 50 | mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc | 53 | mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc |
| 51 | mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-algorithm -Dversion=5.1.5-jhyde -Dpackaging=jar -Dfile=%{SOURCE2} | 54 | mvn 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 | ||
| 52 | cp %{SOURCE1} ./.xmvn-reactor | 62 | cp %{SOURCE1} ./.xmvn-reactor |
| 53 | echo `pwd` > absolute_prefix.log | 63 | echo `pwd` > absolute_prefix.log |
| 54 | sed -i 's/\//\\\//g' absolute_prefix.log | 64 | sed -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 | %changelog | 155 | %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-5 | 159 | * Mon Dec 16 2024 litian <dev11105@linx-info.com> - 3.1.3-5 |
| 147 | - fix %patchN is deprecated warning | 160 | - 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