Accepting request 1148748 from Java:packages

rpm 4.20 compat

OBS-URL: https://build.opensuse.org/request/show/1148748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreadline-java?expand=0&rev=33
This commit is contained in:
Ana Guerrero 2024-02-21 17:01:46 +00:00 committed by Git OBS Bridge
commit a7e0caa481
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 21 14:36:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use %patch -P N instead of deprecated %patchN.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 9 14:32:42 UTC 2022 - David Anes <david.anes@suse.com> Mon May 9 14:32:42 UTC 2022 - David Anes <david.anes@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libreadline-java # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
# #
%global make make
Name: libreadline-java Name: libreadline-java
Version: 0.8.3 Version: 0.8.3
Release: 0 Release: 0
@ -53,17 +54,17 @@ wrapper. This package contains the javadoc documentation for it.
%prep %prep
%setup -q %setup -q
%patch0 %patch -P 0
%patch1 %patch -P 1
%patch3 -p1 %patch -P 3 -p1
find . -name "*.jar" -exec rm -f {} \; find . -name "*.jar" -exec rm -f {} \;
sed -i 's|@LIBDIR@|%{_libdir}|' src/org/gnu/readline/Readline.java sed -i 's|@LIBDIR@|%{_libdir}|' src/org/gnu/readline/Readline.java
%build %build
export JAVA_HOME=%{java_home} export JAVA_HOME=%{java_home}
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
make CFLAGS="%{optflags} -fPIC -DPOSIX" T_LIBS=JavaEditline -j1 %make CFLAGS="%{optflags} -fPIC -DPOSIX" T_LIBS=JavaEditline -j1
make apidoc -j1 %make apidoc -j1
# fix debuginfo package # fix debuginfo package
rm -f org test rm -f org test