Rebuild with regenerated Requires on Java

Related: RHEL-62398
This commit is contained in:
Marián Konček 2024-10-21 20:38:53 +02:00
parent f2e38a6afa
commit 21f34db8df

View File

@ -2,7 +2,7 @@
Name: jansi Name: jansi
Version: 2.3.3 Version: 2.3.3
Release: 6%{?dist} Release: 7%{?dist}
Summary: Generate and interpret ANSI escape sequences in Java Summary: Generate and interpret ANSI escape sequences in Java
License: ASL 2.0 License: ASL 2.0
URL: http://fusesource.github.io/jansi/ URL: http://fusesource.github.io/jansi/
@ -64,8 +64,8 @@ rm -fr src/main/resources/org/fusesource/jansi/internal
# Unbundle the JNI headers # Unbundle the JNI headers
rm src/main/native/inc_linux/*.h rm src/main/native/inc_linux/*.h
ln -s %{java_home}/include/jni.h src/main/native/inc_linux ln -s %{_jvmdir}/java-11-openjdk/include/jni.h src/main/native/inc_linux
ln -s %{java_home}/include/linux/jni_md.h src/main/native/inc_linux ln -s %{_jvmdir}/java-11-openjdk/include/linux/jni_md.h src/main/native/inc_linux
# Set the JNI path # Set the JNI path
sed -i 's,@LIBDIR@,%{_prefix}/lib,' \ sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
@ -74,7 +74,7 @@ sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
%build %build
%set_build_flags %set_build_flags
# Build the native artifact # Build the native artifact
CFLAGS="$CFLAGS -I. -I%{java_home}/include -I%{java_home}/include/linux -fPIC -fvisibility=hidden" CFLAGS="$CFLAGS -I. -I%{_jvmdir}/java-11-openjdk/include -I%{_jvmdir}/java-11-openjdk/include/linux -fPIC -fvisibility=hidden"
cd src/main/native cd src/main/native
$CC $CFLAGS -c jansi.c $CC $CFLAGS -c jansi.c
$CC $CFLAGS -c jansi_isatty.c $CC $CFLAGS -c jansi_isatty.c
@ -103,6 +103,9 @@ cp -p src/main/native/libjansi.so %{buildroot}%{_prefix}/lib/%{name}
%license license.txt %license license.txt
%changelog %changelog
* Wed Nov 20 2024 Marián Konček <mkoncek@redhat.com> - 2.3.3-7
- Rebuild with regenerated Requires on Java
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-6 * Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-6
- Rebuild to regenerate auto-requires - Rebuild to regenerate auto-requires