diff --git a/druid-0.22.1.tar.gz b/druid-0.22.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e7a469c493c665e216765e571d070d52540e519d Binary files /dev/null and b/druid-0.22.1.tar.gz differ diff --git a/druid.spec b/druid.spec new file mode 100644 index 0000000000000000000000000000000000000000..3bafede1f73837aa795cb11a13c92e578e1e7a2d --- /dev/null +++ b/druid.spec @@ -0,0 +1,40 @@ +%define _define _jar_repack %{nil} +%define debug_package %{nil} + +Name: druid +Version: 0.22.1 +Release: 1 +Summary: Druid is a high performance real-time analytics. + +License: Apache-2.0 +URL: https://druid.apache.org +Source0: https://github.com/apache/druid/archive/refs/tags/%{name}-%{version}.tar.gz +Source1: settings.xml + +BuildRequires: java-1.8.0-openjdk-devel maven zlib npm gcc-c++ gcc gcc-gfortran libgcc python3-pip git +Requires: java-1.8.0-openjdk + +%description +Druid is a high performance real-time analytics. + +%prep +%autosetup -p1 -n %{name}-%{name}-%{version} +cp %{SOURCE1} ./ + +%build +pip install pyyaml==5.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +mvn clean install -Pdist -DskipTests -Dcheckstyle.skip -Dmaven.test.skip=true -s settings.xml + +%install +mkdir -p $RPM_BUILD_ROOT/opt/druid +cp -r %{_builddir}/druid-druid-0.22.1/distribution/target/apache-druid-0.22.1-bin.tar.gz %{_builddir} +cd %{_builddir} +tar -xf apache-druid-0.22.1-bin.tar.gz +cp -r %{_builddir}/apache-druid-0.22.1 $RPM_BUILD_ROOT/opt/druid + +%files +/opt/druid + +%changelog +* Mon Apr 25 2022 xiexing -0.22.1-1 +-Initial package release diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..7506a672cf65305abf20a060c0b955ed8d9aba3d --- /dev/null +++ b/settings.xml @@ -0,0 +1,65 @@ + + + + + + + + + + alimaven + central + aliyun maven + https://maven.aliyun.com/repository/central + + + alimaven + central + aliyun maven + http://maven.aliyun.com/nexus/content/groups/public/ + + + huawei + central + https://repo.huaweicloud.com/repository/maven/ + + + + + + + + + aliyunmaven + aliyunmaven + https://maven.aliyun.com/repository/public + default + + true + + + true + + + + MavenCentral + http://repo1.maven.org/maven2/ + default + + true + + + true + + + + aliyunmavenApache + https://maven.aliyun.com/repository/apache-snapshots + + + + +