From 56468f762a61e0294731fb6feb2ee157e4a0201b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 12 Sep 2025 03:12:57 +0000 Subject: automatic import of UNT --- UNT.spec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'UNT.spec') diff --git a/UNT.spec b/UNT.spec index ea5669c..044bbd9 100644 --- a/UNT.spec +++ b/UNT.spec @@ -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 - - - custom-mirror - * - Custom Maven Repository Mirror - %{maven_mirror_url} - - + %{_builddir}/.m2/repository + + custom-repo + EOF mvn -s %{_builddir}/settings.xml package -DskipTests -- cgit v1.2.3