diff --git a/0003-Skip-flink-avro-confluent-registry-test.patch b/0003-Skip-flink-avro-confluent-registry-test.patch new file mode 100644 index 0000000000000000000000000000000000000000..7d65d317f3a02ac73431fa0071b0df1a82cc859f --- /dev/null +++ b/0003-Skip-flink-avro-confluent-registry-test.patch @@ -0,0 +1,25 @@ +From 2b17debeeef8845c9d0f347d028ea8e388f4222a Mon Sep 17 00:00:00 2001 +From: wei dong +Date: Wed, 5 Jan 2022 14:20:49 +0800 +Subject: [PATCH] Skip flink-avro-confluent-registry test + +Signed-off-by: wei dong +--- + flink-formats/flink-avro-confluent-registry/pom.xml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/flink-formats/flink-avro-confluent-registry/pom.xml b/flink-formats/flink-avro-confluent-registry/pom.xml +index 9d412708..54710d4e 100644 +--- a/flink-formats/flink-avro-confluent-registry/pom.xml ++++ b/flink-formats/flink-avro-confluent-registry/pom.xml +@@ -34,6 +34,7 @@ under the License. + + 2.4.1 + 5.5.2 ++ true + + + +-- +2.27.0 + diff --git a/flink.spec b/flink.spec index b8e95db7f8f5f01ffb2c5c38e79798941c25de03..b5b45d46330e765bf9c4ce7853b2b5f354d32ff0 100644 --- a/flink.spec +++ b/flink.spec @@ -11,7 +11,7 @@ Name: flink Version: 1.12.7 -Release: 1 +Release: 2 Summary: Stateful Computations over Data Streams License: Apache License v2.0 URL: https://github.com/apache/%{name} @@ -20,9 +20,11 @@ Source1: settings.xml Source2: https://packages.confluent.io/maven/io/confluent/kafka-schema-registry-client/5.5.2/kafka-schema-registry-client-5.5.2.jar Source3: https://packages.confluent.io/maven/io/confluent/kafka-avro-serializer/5.5.2/kafka-avro-serializer-5.5.2.jar Source4: https://packages.confluent.io/maven/io/confluent/kafka-schema-serializer/5.5.2/kafka-schema-serializer-5.5.2.jar +Source5: https://maven.aliyun.com/repository/public/io/confluent/kafka-clients/5.5.2-ccs/kafka-clients-5.5.2-ccs.jar Patch0: 0001-add-npm.hw-repo.patch Patch1: 0002-fix-compilation-failure.patch +Patch2: 0003-Skip-flink-avro-confluent-registry-test.patch BuildRequires: java-1.8.0-openjdk-devel maven Requires: java-1.8.0-openjdk @@ -35,6 +37,7 @@ Apache Flink is a framework and distributed processing engine for stateful compu mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-registry-client -Dversion=5.5.2 -Dpackaging=jar -Dfile=%{SOURCE2} mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-avro-serializer -Dversion=5.5.2 -Dpackaging=jar -Dfile=%{SOURCE3} mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-serializer -Dversion=5.5.2 -Dpackaging=jar -Dfile=%{SOURCE4} +mvn install:install-file -DgroupId=org.apache.kafka -DartifactId=kafka-clients -Dversion=5.5.2-ccs -Dpackaging=jar -Dfile=%{SOURCE5} %build maven_cmd="clean package " @@ -66,6 +69,9 @@ find %{buildroot}/opt/apache-%{name}-%{version}/ -type f -name '*.py' | xargs -i %license LICENSE %changelog +* Wed Jan 05 2022 weidong - 1.12.7-2 +- Fix compilation failure. + * Fri Dec 17 2021 weidong - 1.12.7-1 - Update version. diff --git a/kafka-clients-5.5.2-ccs.jar b/kafka-clients-5.5.2-ccs.jar new file mode 100644 index 0000000000000000000000000000000000000000..4832cc65068c5e4ee8fdf1c32d462deb9aa8f713 Binary files /dev/null and b/kafka-clients-5.5.2-ccs.jar differ