diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | UNT.spec | 19 | ||||
-rw-r--r-- | sources | 4 |
3 files changed, 16 insertions, 10 deletions
@@ -1,2 +1,5 @@ /UNT-v1.0.tar.gz /maven-resources-plugin-2.6.jar +/maven.tgz.part-aa +/maven.tgz.part-ab +/maven.tgz.part-ac @@ -5,7 +5,9 @@ Summary: UDF native tool License: MulanPSL-2.0 URL: https://gitee.com/openeuler/UNT.git Source0: https://gitee.com/openeuler/UNT/repository/archive/%{name}-v%{version}.tar.gz -Source1: maven-resources-plugin-2.6.jar +Source1: maven.tgz.part-aa +Source2: maven.tgz.part-ab +Source3: maven.tgz.part-ac BuildRequires: maven BuildArch: noarch @@ -17,18 +19,17 @@ and then compile native code to native binary. %prep %setup -q -n %{name} +cat %{SOURCE1} %{SOURCE2} %{SOURCE3} > %{_builddir}/maven-repo.tgz +mkdir -p %{_builddir}/.m2 +tar -xzf %{_builddir}/maven-repo.tgz -C %{_builddir}/.m2 %build cat > %{_builddir}/settings.xml << EOF <settings> - <mirrors> - <mirror> - <id>custom-mirror</id> - <mirrorOf>*</mirrorOf> - <name>Custom Maven Repository Mirror</name> - <url>%{maven_mirror_url}</url> - </mirror> - </mirrors> + <localRepository>%{_builddir}/.m2/repository</localRepository> + <activeProfiles> + <activeProfile>custom-repo</activeProfile> + </activeProfiles> </settings> EOF mvn -s %{_builddir}/settings.xml package -DskipTests @@ -1,2 +1,4 @@ ae82067e24fbd0530f4ae8f9f4d4fc02 UNT-v1.0.tar.gz -e7cc4bbb6888e6c9dd5acdad08cf4bd3 maven-resources-plugin-2.6.jar +b273129bd4a5190980e6fe21e131dcbe maven.tgz.part-aa +93db41876d5f2d39a2bab2b990a309ff maven.tgz.part-ab +4e502ce3290e20a3811c42bb93f48995 maven.tgz.part-ac |