Summary: Groovy based build system
Name: gradle
-Version: 2.3
+Version: 5.0
Release: 1
License: Apache v2.0
Group: Development/Languages/Java
Source0: http://services.gradle.org/distributions/%{name}-%{version}-bin.zip
-# Source0-md5: 8adc26fe7ee5325b9cff735a12a79044
+# Source0-md5: 3fe272a99252a94ed368f47cf3bbba41
URL: http://www.gradle.org/
-Requires: jdk
+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}
%files
%defattr(644,root,root,755)
-%doc NOTICE changelog.txt getting-started.html
+%doc NOTICE getting-started.html
%attr(755,root,root) %{_bindir}/gradle
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/bin