Skip to content

Commit

Permalink
add necessary runtime dependencies to apache-tika (#38512)
Browse files Browse the repository at this point in the history
<!---
Provide a short summary in the Title above. Examples of good PR titles:
* "ruby-3.1: new package"
* "haproxy: fix CVE-2014-123456"
-->

<!--
Please include references to any related issues or delete this section
otherwise.
 -->

Fixes:

Related:

### Pre-review Checklist

<!--
This checklist is mostly useful as a reminder of small things that can
easily be
forgotten – it is meant as a helpful tool rather than hoops to jump
through.

At the moment of this PR you have the most information on what all the
change
will affect, so please take the time to jot it down.

Put an `x` in all the items that apply, make notes next to any that
haven't been
addressed, and remove any items that are not relevant to this PR.

-->

#### For new package PRs only
<!-- remove if unrelated -->
- [ ] This PR is marked as fixing a pre-existing package request bug
- [ ] Alternatively, the PR is marked as related to a pre-existing
package request bug, such as a dependency
- [x] REQUIRED - The package is available under an OSI-approved or
FSF-approved license
- [x] REQUIRED - The version of the package is still receiving security
updates
- [ ] This PR links to the upstream project's support policy (e.g.
`endoflife.date`)

Signed-off-by: Batuhan Apaydin <[email protected]>
  • Loading branch information
developer-guy authored Dec 30, 2024
1 parent b50bdd5 commit 403210b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apache-tika-3.0.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package:
name: apache-tika-3.0
version: 3.0.0
epoch: 2
epoch: 3
description: The Apache Tika toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF).
copyright:
- license: Apache-2.0
dependencies:
runtime:
- openjdk-17-jre
- dash-binsh
- openjdk-17-default-jvm
provides:
- apache-tika=${{package.full-version}}

Expand Down Expand Up @@ -44,7 +45,7 @@ subpackages:
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/share/java/tika-server-standard-${{package.version}}.jar ${{targets.subpkgdir}}/tika-server-standard-${{package.version}}.jar
ln -sf /usr/share/java/tika-server-standard-${{package.version}}.jar ${{targets.subpkgdir}}/tika-server-standard.jar
update:
enabled: true
Expand All @@ -63,9 +64,8 @@ test:
pipeline:
- name: "start server and verify endpoint"
runs: |
TIKA_JAR=$(ls /tika-server-standard-*.jar 2>/dev/null | head -n 1)
(
java -jar /tika-server-standard-3.0.0.jar &
java -jar /tika-server-standard.jar &
) && \
sleep 2 && \
curl -s http://localhost:9998/ | \
Expand Down

0 comments on commit 403210b

Please sign in to comment.