diff options
Diffstat (limited to 'UNT.spec')
-rw-r--r-- | UNT.spec | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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 |