diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | opensearch.spec | 36 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 38 insertions, 0 deletions
@@ -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 <fundawang@yeah.net> - 2.16.0-1 +- Package init @@ -0,0 +1 @@ +04c2b3a86fdcf47f3f3abeaac08de197 2.16.0.tar.gz |