From 2f4517ce7a5826a6d5280d4affeee6a3ce5c3a28 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Aug 2024 14:08:22 +0000 Subject: automatic import of opensearch --- .gitignore | 1 + opensearch.spec | 36 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 38 insertions(+) create mode 100644 opensearch.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..267b177 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/2.16.0.tar.gz diff --git a/opensearch.spec b/opensearch.spec new file mode 100644 index 0000000..8ba88ec --- /dev/null +++ b/opensearch.spec @@ -0,0 +1,36 @@ +Summary: Open source distributed and RESTful search engine +Name: opensearch +Version: 2.16.0 +Release: 1 +License: Apache-2.0 +URL: https://opensearch.org/docs/opensearch/index/ + +Source0: https://github.com/opensearch-project/OpenSearch/archive/refs/tags/%{version}.tar.gz + +BuildRequires: (java-devel without java-1.8.0-devel) + +%description +Open source distributed and RESTful search engine. + +%prep +%autosetup -p1 -n OpenSearch-%{version} + +%build +export GRADLE_OPTS="-Dbuild.snapshot=false -Dorg.gradle.jvmargs=-Xmx8192M" +echo "======================== Building OpenSearch ==========================" + +# OpenSearch +./gradlew :distribution:buildSystemdModule +./gradlew :distribution:archives:no-jdk-linux-tar:build + +%install +install -d %{buildroot}%{_datadir}/opensearch +install -d %{buildroot}/var/lib/opensearch +install -d %{buildroot}/var/log/opensearch +install -d %{buildroot}%{_bindir} + +%files + +%changelog +* Tue Aug 20 2024 Funda Wang - 2.16.0-1 +- Package init diff --git a/sources b/sources new file mode 100644 index 0000000..653ab73 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +04c2b3a86fdcf47f3f3abeaac08de197 2.16.0.tar.gz -- cgit v1.2.3