Summary: Groovy based build system
Name: gradle
-Version: 1.8
+Version: 7.1
Release: 1
-License: Apache
+License: Apache v2.0
Group: Development/Languages/Java
-Source0: http://services.gradle.org/distributions/%{name}-%{version}-bin.zip
-# Source0-md5: 4cb542e09fb659df3a731a4bf92f4dce
+Source0: https://services.gradle.org/distributions/%{name}-%{version}-bin.zip
+# Source0-md5: a1060acfc49bb3960792c4f495ef47dd
URL: http://www.gradle.org/
-Requires: jdk
+BuildRequires: rpmbuild(macros) >= 1.672
+Requires: jdk >= 1.8
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}
install -d $RPM_BUILD_ROOT
install bin/gradle $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
-cp -a lib media $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -a lib $RPM_BUILD_ROOT%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc NOTICE changelog.txt getting-started.html
+%doc NOTICE README
%attr(755,root,root) %{_bindir}/gradle
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/bin
%attr(755,root,root) %{_datadir}/%{name}/bin/gradle
%{_datadir}/%{name}/lib
-%{_datadir}/%{name}/media