2024-01-05 23:24:25 +01:00
|
|
|
Name: gradle
|
2024-01-05 23:24:25 +01:00
|
|
|
Version: 7.2
|
2024-01-05 23:24:25 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Powerful build system for the JVM
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://gradle.org/
|
|
|
|
Source: https://services.gradle.org/distributions/gradle-%{version}-src.zip
|
|
|
|
Source1: gradle.sh
|
|
|
|
Source2: https://services.gradle.org/distributions/gradle-%{version}-bin.zip
|
|
|
|
Patch0: gradle-7.1.1-replace_gradle_plugin_repository.patch
|
|
|
|
License: Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: javapackages
|
|
|
|
BuildRequires: java-environment
|
|
|
|
BuildRequires: kotlin
|
|
|
|
|
|
|
|
%description
|
|
|
|
Powerful build system for the JVM.
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Summary: Gradle documentation
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
This package contains the apache server documentation in HTML format.
|
|
|
|
|
|
|
|
%package src
|
|
|
|
Summary: Gradle sources
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description src
|
|
|
|
This package contains the apache server documentation in HTML format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 23:24:25 +01:00
|
|
|
#%patch0 -p1
|
2024-01-05 23:24:25 +01:00
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
unzip %{SOURCE2}
|
|
|
|
mv gradle-%{version} dist
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
#:<< _EOF
|
|
|
|
#export PATH="%{_jvmdir}/java-11-openjdk/bin:${PATH}"
|
|
|
|
%ifnarch %{ix86}
|
|
|
|
./gradlew installAll \
|
|
|
|
-PfinalRelease=true \
|
|
|
|
-Pgradle_installPath="$(pwd)/dist"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_bindir}
|
|
|
|
install -d -m0755 %{buildroot}%{_javadir}/gradle/{lib/plugins,init.d}
|
|
|
|
install -D -m0644 dist/lib/*.jar %{buildroot}%{_javadir}/gradle/lib/
|
|
|
|
install -D -m0644 dist/lib/plugins/*.jar %{buildroot}%{_javadir}/gradle/lib/plugins
|
|
|
|
|
|
|
|
install -D -m0755 dist/bin/gradle %{buildroot}%{_javadir}/gradle/bin/gradle
|
|
|
|
install -m0644 dist/init.d/*.* %{buildroot}%{_javadir}/gradle/init.d/
|
|
|
|
|
|
|
|
# install profile.d
|
|
|
|
install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/gradle.sh
|
|
|
|
|
|
|
|
# link to gradle binary
|
|
|
|
ln -s ../share/java/gradle/bin/gradle %{buildroot}%{_bindir}/gradle
|
|
|
|
|
|
|
|
%ifnarch %{ix86}
|
|
|
|
# docs
|
|
|
|
install -d %{buildroot}%{_javadir}/gradle/docs
|
|
|
|
cp -r dist/docs/* %{buildroot}%{_javadir}/gradle/docs/
|
|
|
|
|
|
|
|
# src
|
|
|
|
install -d %{buildroot}%{_javadir}/gradle/src
|
|
|
|
cp -r dist/src/* %{buildroot}%{_javadir}/gradle/src/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/profile.d/gradle.sh
|
|
|
|
%{_bindir}/gradle
|
|
|
|
%dir %{_datadir}/java/gradle
|
|
|
|
%dir %{_datadir}/java/gradle/bin
|
|
|
|
%{_datadir}/java/gradle/bin/gradle
|
|
|
|
%dir %{_datadir}/java/gradle/init.d
|
|
|
|
%{_datadir}/java/gradle/init.d/readme.txt
|
|
|
|
%dir %{_datadir}/java/gradle/lib
|
|
|
|
%{_datadir}/java/gradle/lib/*.jar
|
|
|
|
%dir %{_datadir}/java/gradle/lib/plugins
|
|
|
|
%{_datadir}/java/gradle/lib/plugins/*.jar
|
|
|
|
|
|
|
|
%ifnarch %{ix86}
|
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/java/gradle/docs
|
|
|
|
%{_datadir}/java/gradle/docs/*
|
|
|
|
|
|
|
|
%files src
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/java/gradle/src
|
|
|
|
%{_datadir}/java/gradle/src/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:24:25 +01:00
|
|
|
* Mon Sep 13 2021 Automatic Build System <autodist@mambasoft.it> 7.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:24:25 +01:00
|
|
|
* Sun Jul 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 7.1.1-1mamba
|
|
|
|
- package created using the webbuild interface
|