!2 package init
From: @weidongkl Reviewed-by: @hubble_zhu Signed-off-by: @hubble_zhu
This commit is contained in:
commit
dfabb421fb
66
flink.spec
Normal file
66
flink.spec
Normal file
@ -0,0 +1,66 @@
|
||||
%define __jar_repack %{nil}
|
||||
|
||||
%global debug_package %{nil}
|
||||
|
||||
# Use local caches compile
|
||||
%global compile_for_local 1
|
||||
|
||||
%global with_debug 0
|
||||
|
||||
%global with_tests 0
|
||||
|
||||
Name: flink
|
||||
Version: 1.12.0
|
||||
Release: 2
|
||||
Summary: Stateful Computations over Data Streams
|
||||
License: Apache License v2.0
|
||||
URL: https://github.com/apache/%{name}
|
||||
Source0: https://github.com/apache/%{name}/archive/release-%{version}.tar.gz
|
||||
Source1: settings.xml
|
||||
|
||||
BuildRequires: java-1.8.0-openjdk-devel maven
|
||||
Requires: java-1.8.0-openjdk
|
||||
|
||||
%description
|
||||
Apache Flink is a framework and distributed processing engine for stateful computations over unbounded and bounded data streams. Flink has been designed to run in all common cluster environments, perform computations at in-memory speed and at any scale.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-release-%{version}
|
||||
|
||||
%build
|
||||
|
||||
maven_cmd="clean package -Dskip.npm "
|
||||
|
||||
%if 0%{?compile_for_local}
|
||||
cp %{SOURCE1} ./
|
||||
maven_cmd="${maven_cmd} -s settings.xml"
|
||||
%endif
|
||||
|
||||
%if 0%{?with_debug}
|
||||
maven_cmd="${maven_cmd} -X "
|
||||
%endif
|
||||
|
||||
%if 0%{?with_tests:1}
|
||||
maven_cmd="${maven_cmd} -DskipTests"
|
||||
%endif
|
||||
|
||||
mvn ${maven_cmd}
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/opt/
|
||||
cp -rf ../%{name}-release-%{version}/flink-dist/target/%{name}-%{version}-bin/%{name}-%{version} %{buildroot}/opt/apache-%{name}-%{version}
|
||||
|
||||
find %{buildroot}/opt/apache-%{name}-%{version}/ -type f -name '*.py' | xargs -i sed -i 's/\#!\/usr\/bin\/env python$/\#!\/usr\/bin\/python3/' {}
|
||||
|
||||
%files
|
||||
/opt/apache-%{name}-%{version}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Dec 17 2020 weidong <weidong@uniontech.com> - 1.12.0-2
|
||||
- Fix compilation issues.
|
||||
|
||||
* Mon Dec 14 2020 weidong <weidong@uniontech.com> - 1.12.0-1
|
||||
- Initial package.
|
||||
BIN
release-1.12.0.tar.gz
Normal file
BIN
release-1.12.0.tar.gz
Normal file
Binary file not shown.
59
settings.xml
Normal file
59
settings.xml
Normal file
@ -0,0 +1,59 @@
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<localRepository/>
|
||||
<interactiveMode/>
|
||||
<usePluginRegistry/>
|
||||
<offline/>
|
||||
<pluginGroups/>
|
||||
<servers/>
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>confluent</id>
|
||||
<mirrorOf>confluent</mirrorOf>
|
||||
<name>confluent</name>
|
||||
<url>http://packages.confluent.io/maven</url>
|
||||
</mirror>
|
||||
<mirror>
|
||||
<id>mapr-public</id>
|
||||
<mirrorOf>mapr-releases</mirrorOf>
|
||||
<name>mapr-releases</name>
|
||||
<url>https://maven.aliyun.com/repository/mapr-public</url>
|
||||
</mirror>
|
||||
<mirror>
|
||||
<id>nexus-aliyun</id>
|
||||
<mirrorOf>*,!jeecg,!jeecg-snapshots,!mapr-releases,!icm</mirrorOf>
|
||||
<name>Nexus aliyun</name>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
<proxies/>
|
||||
<activeProfiles/>
|
||||
<profiles>
|
||||
<profile>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>aliyunmaven</id>
|
||||
<name>aliyunmaven</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<layout>default</layout>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>MavenCentral</id>
|
||||
<url>http://repo1.maven.org/maven2/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>aliyunmavenApache</id>
|
||||
<url>https://maven.aliyun.com/repository/apache-snapshots</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
||||
Loading…
x
Reference in New Issue
Block a user