diff --git a/anda/tools/buildsys/gradle/gradle.spec b/anda/tools/buildsys/gradle/gradle.spec index 3455f4fbd1..21f4f25444 100644 --- a/anda/tools/buildsys/gradle/gradle.spec +++ b/anda/tools/buildsys/gradle/gradle.spec @@ -36,9 +36,8 @@ mv %{name}-%_ver/README . mv %{name}-%_ver/LICENSE . rmdir %{name}-%_ver unzip %{SOURCE0} -cd %{name}-%_ver -cat < dist/gradle.sh +cat < gradle.sh #!/bin/sh export GRADLE_HOME=/usr/share/java/gradle EOF @@ -68,7 +67,7 @@ export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}" cd %{name}-%_ver/dist # install profile.d script -install -Dm755 gradle.sh %{buildroot}/etc/profile.d/ +install -Dm755 ../../gradle.sh %{buildroot}/etc/profile.d/ # create the necessary directory structure install -d "%{buildroot}/usr/share/java/%{name}/bin"