Summary: Groovy based build system
Name: gradle
-Version: 4.0.1
+Version: 4.5
Release: 1
License: Apache v2.0
Group: Development/Languages/Java
Source0: http://services.gradle.org/distributions/%{name}-%{version}-bin.zip
-# Source0-md5: fa07f5660b882b4239494cb3d5b1441c
+# Source0-md5: 9c7cbfd98810317ddb831f318bd009ce
URL: http://www.gradle.org/
+BuildRequires: rpmbuild(macros) >= 1.672
Requires: jdk >= 1.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noautoreq_java ClassDataVersion
+
%description
Gradle is a build system written in Groovy. It uses Groovy
also as the language for its build scripts. It has a powerful
%prep
%setup -q
+%{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' bin/gradle
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/bin}