diff --git a/0001-fix-can-not-connect-http-dl.bintray.com.patch b/0001-fix-can-not-connect-http-dl.bintray.com.patch new file mode 100644 index 0000000000000000000000000000000000000000..0093413866e6e041f3941b8b05d072728d260102 --- /dev/null +++ b/0001-fix-can-not-connect-http-dl.bintray.com.patch @@ -0,0 +1,25 @@ +From c07d1d34d23997c36e195a430ded2ae439118faa Mon Sep 17 00:00:00 2001 +From: xiewenhao +Date: Wed, 30 Mar 2022 17:01:47 +0800 +Subject: [PATCH] fix-can-not-connect-http-dl.bintray.com + +--- + gradle/buildscript.gradle | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gradle/buildscript.gradle b/gradle/buildscript.gradle +index 83967bb..5ba971a 100644 +--- a/gradle/buildscript.gradle ++++ b/gradle/buildscript.gradle +@@ -17,7 +17,7 @@ repositories { + repositories { + // For license plugin. + maven { +- url 'https://dl.bintray.com/content/netflixoss/external-gradle-plugins/' ++ url 'https://repos.spark-packages.org/content/netflixoss/external-gradle-plugins/' + } + } + } +-- +2.18.1 + diff --git a/kafka.spec b/kafka.spec index c2bd2ae0ef1216577ffcac0eb571eed006d96d23..baf1ec2069068c01622a3f6d4024ed5ebadf9da1 100644 --- a/kafka.spec +++ b/kafka.spec @@ -4,7 +4,7 @@ Name: kafka Version: 2.6.0 -Release: 2 +Release: 3 Summary: A Distributed Streaming Platform. License: Apache License, Version 2.0 @@ -12,6 +12,8 @@ Source0: https://archive.apache.org/dist/%{name}/%{version}/%{name}-%{version}-s Source1: https://services.gradle.org/distributions/gradle-6.5-bin.zip Source2: kafka.service +Patch1: 0001-fix-can-not-connect-http-dl.bintray.com.patch + BuildRequires: systemd java-1.8.0-openjdk-devel Provides: kafka = %{version} Requires: java-1.8.0-openjdk @@ -28,6 +30,7 @@ exit 0 %prep %setup -q -n %{name}-%{version}-src +%patch1 -p1 %build unzip -q $RPM_SOURCE_DIR/gradle-6.5-bin.zip @@ -56,6 +59,9 @@ cp -n */*/build/dependant-libs*/* $RPM_BUILD_ROOT%{kafka_home}/libs rm -rf %{buildroot} %changelog +* Wed Mar 30 2022 xiewenhao 2.6.0 - 3 +- fix can not connect dl.bintray.com + * Thu Mar 25 2021 huanghaitao 2.6.0 - 2 - Remove dist macros