From c776a64bcfcec55004357b7a234ce85e4395fe6b88681717a2d16d2c4636d9ce Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 21 Feb 2024 14:36:54 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/libreadline-java?expand=0&rev=36 --- libreadline-java.changes | 5 +++++ libreadline-java.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libreadline-java.changes b/libreadline-java.changes index b468100..0f3f379 100644 --- a/libreadline-java.changes +++ b/libreadline-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 21 14:36:44 UTC 2024 - Fridrich Strba + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Mon May 9 14:32:42 UTC 2022 - David Anes diff --git a/libreadline-java.spec b/libreadline-java.spec index 7df63af..9cd8b19 100644 --- a/libreadline-java.spec +++ b/libreadline-java.spec @@ -1,7 +1,7 @@ # # spec file for package libreadline-java # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%global make make Name: libreadline-java Version: 0.8.3 Release: 0 @@ -53,17 +54,17 @@ wrapper. This package contains the javadoc documentation for it. %prep %setup -q -%patch0 -%patch1 -%patch3 -p1 +%patch -P 0 +%patch -P 1 +%patch -P 3 -p1 find . -name "*.jar" -exec rm -f {} \; sed -i 's|@LIBDIR@|%{_libdir}|' src/org/gnu/readline/Readline.java %build export JAVA_HOME=%{java_home} export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH -make CFLAGS="%{optflags} -fPIC -DPOSIX" T_LIBS=JavaEditline -j1 -make apidoc -j1 +%make CFLAGS="%{optflags} -fPIC -DPOSIX" T_LIBS=JavaEditline -j1 +%make apidoc -j1 # fix debuginfo package rm -f org test