package created using the webbuild interface [release 7.1.1-1mamba;Sun Jul 25 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:24:25 +01:00
parent 697dedc0cd
commit ac381f86ce
4 changed files with 134 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# gradle # gradle
Powerful build system for the JVM.

View File

@ -0,0 +1,15 @@
--- gradle-7.1.1/gradle/shared-with-buildSrc/mirrors.settings.gradle.kts.orig 1980-02-01 00:00:00.000000000 +0100
+++ gradle-7.1.1/gradle/shared-with-buildSrc/mirrors.settings.gradle.kts 2021-07-25 17:37:11.982286120 +0200
@@ -66,10 +66,10 @@
return if (result.endsWith("/")) result else "$result/"
}
-if (System.getProperty(PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY) == null && !isEc2Agent() && !isMacAgent() && !ignoreMirrors()) {
+if (System.getProperty(PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY) == null && isEc2Agent() && !isMacAgent() && !ignoreMirrors()) {
// https://github.com/gradle/gradle-private/issues/2725
// https://github.com/gradle/gradle-private/issues/2951
- System.setProperty(PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY, "https://dev12.gradle.org/artifactory/gradle-plugins/")
+ System.setProperty(PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY, "https://repo.grdev.net/artifactory/grade-plugin-portal-prod/")
gradle.buildFinished {
System.clearProperty(PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY)
}

2
gradle.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
export GRADLE_HOME=/usr/share/java/gradle

115
gradle.spec Normal file
View File

@ -0,0 +1,115 @@
Name: gradle
Version: 7.1.1
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
%patch0 -p1
%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
* Sun Jul 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 7.1.1-1mamba
- package created using the webbuild interface