diff --git a/knox.spec b/knox.spec new file mode 100644 index 0000000000000000000000000000000000000000..0a42655d4673b5f6343dbd201fd0c9f729ffc514 --- /dev/null +++ b/knox.spec @@ -0,0 +1,36 @@ +%define _jar_repack %{nil} +%define _define _jar_repack %{nil} +%define debug_package %{nil} + +Name: knox +Version: 1.6.1 +Release: 1 +Summary: The Apache Knox™ Gateway is an Application Gateway for interacting with the REST APIs and UIs of Apache Hadoop deployments. +License: Apache-2.0 +URL: https://knox.apache.org +Source0: https://github.com/apache/knox/archive/refs/tags/v1.6.1-release.tar.gz +Source1: settings.xml +BuildRequires: java-1.8.0-openjdk-devel maven ant +Requires: java-1.8.0-openjdk + +%description +The Apache Knox™ Gateway is an Application Gateway for interacting with the REST APIs and UIs of Apache Hadoop deployments. + +%prep +%autosetup -p1 -n knox-1.6.1-release +cp %{SOURCE1} ./ + +%build +mvn -Prelease clean install -Dcheckstyle.skip -DskipTests -Drat.skip=true -s settings.xml + +%install +mkdir -p $RPM_BUILD_ROOT/opt/knox +cp -r %{_builddir} $RPM_BUILD_ROOT/opt/knox +%files +#%doc +/opt/knox + +%changelog +* Mon Apr 25 2022 xiexing - 1.6.1-1 +- Init package + 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 + + + + + diff --git a/v1.6.1-release.tar.gz b/v1.6.1-release.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bf0410b7c0860345f70317234edede11c1fad7c7 Binary files /dev/null and b/v1.6.1-release.tar.gz differ