diff --git a/opa-fmgui.spec b/opa-fmgui.spec index 99d0b71..8a00c7f 100644 --- a/opa-fmgui.spec +++ b/opa-fmgui.spec @@ -22,6 +22,7 @@ %define appfolder opa-fmgui %define appjar opa-fmgui.jar %define _binary_payload w9.gzdio +%define gradle_version 2.9 Name: opa-fmgui Version: 10.1.0.0 @@ -67,7 +68,7 @@ Source33: swingx-mavensupport-1.6.5.jar Source34: swingx-painters-1.6.5.jar Source35: swingx-plaf-1.6.5.jar Source36: swingx-testsupport-1.6.5.jar -Source37: gradle-2.9-bin.zip +Source37: gradle-%{gradle_version}-bin.zip Source38: javax.mail-1.5.2.jar Patch1: gradle-use_local_repo.patch @@ -98,10 +99,10 @@ script fmgui. %patch5 -p1 %build -(cd %{_tmppath}; unzip $RPM_SOURCE_DIR/gradle-2.9-bin.zip) +(cd %{_tmppath}; unzip $RPM_SOURCE_DIR/gradle-%{gradle_version}-bin.zip) GRADLE_LIB_DIR=$RPM_SOURCE_DIR export GRADLE_LIB_DIR -%{_tmppath}/gradle-2.9/bin/gradle copyDeps build --info +%{_tmppath}/gradle-%{gradle_version}/bin/gradle copyDeps build --info %install mkdir -p %{buildroot}%{_javadir}/%{appfolder}