| |
@@ -1,21 +1,32 @@
|
| |
+ %bcond_with bootstrap
|
| |
+
|
| |
Name: jansi
|
| |
- Version: 2.1.1
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 2.3.3
|
| |
+ Release: 4%{?dist}
|
| |
Summary: Generate and interpret ANSI escape sequences in Java
|
| |
-
|
| |
License: ASL 2.0
|
| |
URL: http://fusesource.github.io/jansi/
|
| |
- Source0: https://github.com/fusesource/jansi/archive/jansi-%{version}.tar.gz
|
| |
+
|
| |
+ # ./generate-tarball.sh
|
| |
+ Source0: %{name}-%{version}.tar.gz
|
| |
+ # Remove bundled binaries which cannot be easily verified for licensing
|
| |
+ Source1: generate-tarball.sh
|
| |
+
|
| |
# Change the location of the native artifact to where Fedora wants it
|
| |
Patch0: %{name}-jni.patch
|
| |
+ Patch1: 0001-Avoid-NPE.patch
|
| |
|
| |
BuildRequires: gcc
|
| |
BuildRequires: maven-local
|
| |
+ %if %{with bootstrap}
|
| |
+ BuildRequires: javapackages-bootstrap
|
| |
+ %else
|
| |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
| |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
| |
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
|
| |
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
|
| |
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
| |
+ %endif
|
| |
|
| |
%description
|
| |
Jansi is a small java library that allows you to use ANSI escape sequences
|
| |
@@ -45,8 +56,7 @@
|
| |
%pom_remove_dep :picocli-codegen
|
| |
|
| |
# Build for JDK 1.8 at a minimum
|
| |
- %pom_xpath_set "//pom:plugin[pom:artifactId='maven-compiler-plugin']//pom:source" 1.8
|
| |
- %pom_xpath_set "//pom:plugin[pom:artifactId='maven-compiler-plugin']//pom:target" 1.8
|
| |
+ %pom_xpath_set "//pom:properties/pom:jdkTarget" 1.8
|
| |
|
| |
# Remove prebuilt shared objects
|
| |
rm -fr src/main/resources/org/fusesource/jansi/internal
|
| |
@@ -57,7 +67,7 @@
|
| |
ln -s %{java_home}/include/linux/jni_md.h src/main/native/inc_linux
|
| |
|
| |
# Set the JNI path
|
| |
- sed -i 's,@LIBDIR@,%{libdir},' \
|
| |
+ sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
|
| |
src/main/java/org/fusesource/jansi/internal/JansiLoader.java
|
| |
|
| |
%build
|
| |
@@ -77,8 +87,8 @@
|
| |
|
| |
%install
|
| |
# Install the native artifact
|
| |
- mkdir -p %{buildroot}%{_libdir}/%{name}
|
| |
- cp -p src/main/native/libjansi.so %{buildroot}%{_libdir}/%{name}
|
| |
+ mkdir -p %{buildroot}%{_prefix}/lib/%{name}
|
| |
+ cp -p src/main/native/libjansi.so %{buildroot}%{_prefix}/lib/%{name}
|
| |
|
| |
# Install the Java artifacts
|
| |
%mvn_install
|
| |
@@ -86,12 +96,34 @@
|
| |
%files -f .mfiles
|
| |
%license license.txt
|
| |
%doc readme.md changelog.md
|
| |
- %{_libdir}/%{name}/
|
| |
+ %{_prefix}/lib/%{name}/
|
| |
|
| |
%files javadoc -f .mfiles-javadoc
|
| |
%license license.txt
|
| |
|
| |
%changelog
|
| |
+ * Mon Nov 08 2021 Marian Koncek <mkoncek@redhat.com> - 2.3.3-4
|
| |
+ - Avoid possible NullPointerException
|
| |
+ - Resolves: rhbz#1995022
|
| |
+
|
| |
+ * Fri Sep 24 2021 Marian Koncek <mkoncek@redhat.com> - 2.3.3-3
|
| |
+ - Install native artifact into a fixed location
|
| |
+ - Related: rhbz#1994935
|
| |
+
|
| |
+ * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
+
|
| |
+ * Wed Jun 23 2021 Jerry James <loganjerry@gmail.com> - 2.3.3-1
|
| |
+ - Version 2.3.3
|
| |
+
|
| |
+ * Fri Jun 18 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-5
|
| |
+ - Clean tarball from content with questionable licensing
|
| |
+ - Resolves: rhbz#1973738
|
| |
+
|
| |
+ * Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-4
|
| |
+ - Bootstrap build
|
| |
+ - Non-bootstrap build
|
| |
+
|
| |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
|
| |