]>
Commit | Line | Data |
---|---|---|
62f43191 JP |
1 | Summary: Groovy based build system |
2 | Name: gradle | |
cd8bd6ab | 3 | Version: 6.7.1 |
62f43191 | 4 | Release: 1 |
8343316d | 5 | License: Apache v2.0 |
62f43191 | 6 | Group: Development/Languages/Java |
f8c7a4e7 | 7 | Source0: https://services.gradle.org/distributions/%{name}-%{version}-bin.zip |
cd8bd6ab | 8 | # Source0-md5: d9a00ebe42fa4e2345c0e8e3287ff8c9 |
62f43191 | 9 | URL: http://www.gradle.org/ |
8e4c327b | 10 | BuildRequires: rpmbuild(macros) >= 1.672 |
5ff98a21 | 11 | Requires: jdk >= 1.8 |
62f43191 JP |
12 | BuildArch: noarch |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
8e4c327b JP |
15 | %define _noautoreq_java ClassDataVersion |
16 | ||
62f43191 JP |
17 | %description |
18 | Gradle is a build system written in Groovy. It uses Groovy | |
19 | also as the language for its build scripts. It has a powerful | |
20 | multi-project build support. It has a layer on top of Ivy | |
21 | that provides a build-by-convention integration for Ivy. It | |
22 | gives you always the choice between the flexibility of Ant | |
23 | and the convenience of a build-by-convention behavior. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
27 | ||
f8f7a06a JP |
28 | %{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' bin/gradle |
29 | ||
62f43191 JP |
30 | %install |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/bin} | |
33 | ln -sf %{_datadir}/%{name}/bin/gradle $RPM_BUILD_ROOT%{_bindir}/gradle | |
34 | ||
35 | install -d $RPM_BUILD_ROOT | |
36 | install bin/gradle $RPM_BUILD_ROOT%{_datadir}/%{name}/bin | |
5a411a29 | 37 | cp -a lib $RPM_BUILD_ROOT%{_datadir}/%{name} |
62f43191 JP |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
f8c7a4e7 | 44 | %doc NOTICE README |
62f43191 JP |
45 | %attr(755,root,root) %{_bindir}/gradle |
46 | %dir %{_datadir}/%{name} | |
47 | %dir %{_datadir}/%{name}/bin | |
48 | %attr(755,root,root) %{_datadir}/%{name}/bin/gradle | |
49 | %{_datadir}/%{name}/lib |