import UBI jansi-2.3.3-7.el9_5
This commit is contained in:
parent
3946f55299
commit
65c3bbc18b
@ -2,11 +2,13 @@
|
||||
|
||||
Name: jansi
|
||||
Version: 2.3.3
|
||||
Release: 5%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Generate and interpret ANSI escape sequences in Java
|
||||
License: ASL 2.0
|
||||
URL: http://fusesource.github.io/jansi/
|
||||
|
||||
ExclusiveArch: aarch64 ppc64le s390x x86_64
|
||||
|
||||
# ./generate-tarball.sh
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
# Remove bundled binaries which cannot be easily verified for licensing
|
||||
@ -64,8 +66,8 @@ rm -fr src/main/resources/org/fusesource/jansi/internal
|
||||
|
||||
# Unbundle the JNI headers
|
||||
rm src/main/native/inc_linux/*.h
|
||||
ln -s %{java_home}/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/jni.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
|
||||
sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
|
||||
@ -74,7 +76,7 @@ sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
|
||||
%build
|
||||
%set_build_flags
|
||||
# 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
|
||||
$CC $CFLAGS -c jansi.c
|
||||
$CC $CFLAGS -c jansi_isatty.c
|
||||
@ -103,6 +105,12 @@ cp -p src/main/native/libjansi.so %{buildroot}%{_prefix}/lib/%{name}
|
||||
%license license.txt
|
||||
|
||||
%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
|
||||
- Rebuild to regenerate auto-requires
|
||||
|
||||
* Thu Aug 19 2021 Marian Koncek <mkoncek@redhat.com> - 2.3.3-5
|
||||
- Install native artifact into a fixed location
|
||||
- Related: rhbz#1994935
|
||||
|
Loading…
Reference in New Issue
Block a user