2024-08-05 18:45:37 +00:00
|
|
|
%bcond_with bootstrap
|
2021-05-17 06:43:36 +00:00
|
|
|
|
2011-08-29 12:49:48 +00:00
|
|
|
Name: jansi
|
2024-02-01 08:59:16 +00:00
|
|
|
Version: 2.4.1
|
2024-10-29 15:37:24 +00:00
|
|
|
Release: 4%{?dist}
|
2020-12-15 18:29:13 +00:00
|
|
|
Summary: Generate and interpret ANSI escape sequences in Java
|
2023-09-01 11:20:33 +00:00
|
|
|
License: Apache-2.0
|
2018-03-02 12:52:35 +00:00
|
|
|
URL: http://fusesource.github.io/jansi/
|
2022-05-12 20:34:51 +00:00
|
|
|
ExclusiveArch: %{java_arches}
|
2021-06-18 15:33:19 +00:00
|
|
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
# Remove bundled binaries which cannot be easily verified for licensing
|
|
|
|
Source1: generate-tarball.sh
|
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
# Change the location of the native artifact to where Fedora wants it
|
|
|
|
Patch0: %{name}-jni.patch
|
2011-08-29 12:49:48 +00:00
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
BuildRequires: gcc
|
2021-05-17 06:43:36 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2022-06-14 06:03:17 +00:00
|
|
|
BuildRequires: maven-local
|
2018-03-02 12:52:35 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2020-12-15 18:29:13 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
2018-03-02 12:52:35 +00:00
|
|
|
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
|
2024-02-01 08:59:16 +00:00
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter)
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
|
|
|
BuildRequires: mvn(org.moditect:moditect-maven-plugin)
|
2021-05-17 06:43:36 +00:00
|
|
|
%endif
|
2011-08-29 12:49:48 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Jansi is a small java library that allows you to use ANSI escape sequences
|
|
|
|
in your Java console applications. It implements ANSI support on platforms
|
|
|
|
which don't support it like Windows and provides graceful degradation for
|
2017-06-15 08:46:10 +00:00
|
|
|
when output is being sent to output devices which cannot support ANSI sequences.
|
2011-08-29 12:49:48 +00:00
|
|
|
|
|
|
|
%package javadoc
|
2022-07-14 10:49:48 +00:00
|
|
|
BuildArch: noarch
|
2011-08-29 12:49:48 +00:00
|
|
|
Summary: Javadocs for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2020-12-15 18:29:13 +00:00
|
|
|
%autosetup -n jansi-jansi-%{version} -p1
|
2012-10-09 13:46:12 +00:00
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
# We don't need the Fuse JXR skin
|
2012-10-09 13:46:12 +00:00
|
|
|
%pom_xpath_remove "pom:build/pom:extensions"
|
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
# Plugins not needed for an RPM build
|
|
|
|
%pom_remove_plugin :maven-gpg-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_remove_plugin :nexus-staging-maven-plugin
|
2024-02-01 08:59:16 +00:00
|
|
|
%pom_remove_plugin :spotless-maven-plugin
|
2020-12-15 18:29:13 +00:00
|
|
|
|
|
|
|
# We don't want GraalVM support in Fedora
|
|
|
|
%pom_remove_plugin :exec-maven-plugin
|
|
|
|
%pom_remove_dep :picocli-codegen
|
2012-10-09 13:46:12 +00:00
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
# Set the JNI path
|
2021-09-24 12:09:45 +00:00
|
|
|
sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
|
2020-12-15 18:29:13 +00:00
|
|
|
src/main/java/org/fusesource/jansi/internal/JansiLoader.java
|
2015-05-14 04:58:29 +00:00
|
|
|
|
2011-08-29 12:49:48 +00:00
|
|
|
%build
|
2021-01-14 09:19:27 +00:00
|
|
|
%set_build_flags
|
2022-07-18 15:40:03 +00:00
|
|
|
CC="${CC:-gcc}"
|
2020-12-15 18:29:13 +00:00
|
|
|
# Build the native artifact
|
2021-01-14 09:19:27 +00:00
|
|
|
CFLAGS="$CFLAGS -I. -I%{java_home}/include -I%{java_home}/include/linux -fPIC -fvisibility=hidden"
|
2020-12-15 18:29:13 +00:00
|
|
|
cd src/main/native
|
2021-01-14 09:19:27 +00:00
|
|
|
$CC $CFLAGS -c jansi.c
|
|
|
|
$CC $CFLAGS -c jansi_isatty.c
|
|
|
|
$CC $CFLAGS -c jansi_structs.c
|
|
|
|
$CC $CFLAGS -c jansi_ttyname.c
|
|
|
|
$CC $CFLAGS $LDFLAGS -shared -o libjansi.so *.o -lutil
|
2020-12-15 18:29:13 +00:00
|
|
|
cd -
|
|
|
|
|
|
|
|
# Build the Java artifacts
|
|
|
|
%mvn_build -- -Dlibrary.jansi.path=$PWD/src/main/native
|
2011-08-29 12:49:48 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-15 18:29:13 +00:00
|
|
|
# Install the native artifact
|
2021-09-24 12:09:45 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/%{name}
|
|
|
|
cp -p src/main/native/libjansi.so %{buildroot}%{_prefix}/lib/%{name}
|
2020-12-15 18:29:13 +00:00
|
|
|
|
|
|
|
# Install the Java artifacts
|
2013-09-11 10:43:19 +00:00
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles
|
2017-06-15 08:46:10 +00:00
|
|
|
%license license.txt
|
|
|
|
%doc readme.md changelog.md
|
2021-09-24 12:09:45 +00:00
|
|
|
%{_prefix}/lib/%{name}/
|
2011-08-29 12:49:48 +00:00
|
|
|
|
2013-09-11 10:43:19 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2017-06-15 08:46:10 +00:00
|
|
|
%license license.txt
|
2011-08-29 12:49:48 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-10-29 15:37:24 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.4.1-4
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-08-01 17:33:45 +00:00
|
|
|
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.4.1-3
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
2024-06-24 15:52:16 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.4.1-2
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-02-01 08:59:16 +00:00
|
|
|
* Thu Feb 01 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.1-1
|
|
|
|
- Update to upstream version 2.4.1
|
|
|
|
|
2024-01-24 23:08:30 +00:00
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-20 23:28:32 +00:00
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-09-20 16:07:17 +00:00
|
|
|
* Wed Sep 20 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-10
|
|
|
|
- Rebuild to regenerate auto-Requires on java
|
|
|
|
|
2023-09-01 11:20:33 +00:00
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-9
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
2023-07-20 07:50:02 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-01-19 13:33:11 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 15:04:03 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-18 15:40:03 +00:00
|
|
|
* Mon Jul 18 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-5
|
|
|
|
- Ensure CC env variable is set during build
|
|
|
|
|
2022-07-14 10:49:48 +00:00
|
|
|
* Thu Jul 14 2022 Marian Koncek <mkoncek@redhat.com> - 2.4.0-4
|
|
|
|
- Make javadoc subpackage noarch
|
|
|
|
|
2022-02-05 20:15:07 +00:00
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 2.4.0-3
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
2022-01-20 13:38:19 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-01 11:17:05 +00:00
|
|
|
* Mon Nov 01 2021 Marian Koncek <mkoncek@redhat.com> - 2.4.0-1
|
|
|
|
- Update to upstream version 2.4.0
|
|
|
|
|
2021-09-24 12:09:45 +00:00
|
|
|
* Fri Sep 24 2021 Marian Koncek <mkoncek@redhat.com> - 2.3.3-3
|
|
|
|
- Install native artifact into a fixed location
|
|
|
|
- Related: rhbz#1994935
|
|
|
|
|
2021-07-22 08:55:21 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-23 16:02:07 +00:00
|
|
|
* Wed Jun 23 2021 Jerry James <loganjerry@gmail.com> - 2.3.3-1
|
|
|
|
- Version 2.3.3
|
|
|
|
|
2021-06-18 15:33:19 +00:00
|
|
|
* Fri Jun 18 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-5
|
|
|
|
- Clean tarball from content with questionable licensing
|
|
|
|
- Resolves: rhbz#1973738
|
|
|
|
|
2021-05-17 13:49:50 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-4
|
|
|
|
- Bootstrap build
|
2021-05-17 16:01:43 +00:00
|
|
|
- Non-bootstrap build
|
2021-05-17 13:49:50 +00:00
|
|
|
|
2021-01-26 14:41:12 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-14 09:19:27 +00:00
|
|
|
* Thu Jan 14 2021 Timm Bäder <tbaeder@redhat.com> - 2.1.1-2
|
|
|
|
- Use standard variables when compiling native artifact
|
|
|
|
|
2020-12-15 18:29:13 +00:00
|
|
|
* Tue Dec 15 2020 Jerry James <loganjerry@gmail.com> - 2.1.1-1
|
|
|
|
- Version 2.1.1
|
|
|
|
- Remove package name from Summary
|
|
|
|
- Add patch to change the location of the JNI shared object
|
|
|
|
|
2020-07-28 02:09:06 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-10 20:01:59 +00:00
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.18-4
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
2020-01-29 05:52:12 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 09:58:39 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-08 15:49:21 +00:00
|
|
|
* Sat Jun 08 2019 Fabio Valentini <decathorpe@gmail.com> - 1.18-1
|
|
|
|
- Update to version 1.18.
|
|
|
|
|
2019-02-01 03:49:16 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 06:01:51 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-05 10:31:46 +00:00
|
|
|
* Tue Jun 05 2018 Michael Simacek <msimacek@redhat.com> - 1.17.1-1
|
|
|
|
- Update to upstream version 1.17.1
|
|
|
|
|
2018-03-02 12:52:35 +00:00
|
|
|
* Mon Feb 26 2018 Michael Simacek <msimacek@redhat.com> - 1.17-1
|
|
|
|
- Update to upstream version 1.17
|
|
|
|
|
2018-02-07 17:57:59 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-26 13:57:13 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-15 08:46:10 +00:00
|
|
|
* Wed Jun 14 2017 Michael Simacek <msimacek@redhat.com> - 1.16-1
|
|
|
|
- Update to upstream version 1.16
|
|
|
|
|
2017-02-10 16:45:05 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-02-01 15:19:58 +00:00
|
|
|
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 1.11-11
|
|
|
|
- Remove BR on maven-site-plugin
|
|
|
|
|
2016-02-04 00:50:12 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 11:48:13 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-14 04:58:29 +00:00
|
|
|
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-8
|
|
|
|
- Remove maven-javadoc-plugin execution
|
|
|
|
|
2015-01-27 14:28:05 +00:00
|
|
|
* Tue Jan 27 2015 Mat Booth <mat.booth@redhat.com> - 1.11-7
|
|
|
|
- Add/remove BRs to fix FTBFS bug
|
|
|
|
|
2014-06-07 23:18:33 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-26 06:36:12 +00:00
|
|
|
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-5
|
|
|
|
- Migrate BuildRequires from junit4 to junit
|
|
|
|
|
2014-05-26 06:16:18 +00:00
|
|
|
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-4
|
|
|
|
- Remove BuildRequires on maven-surefire-provider-junit4
|
|
|
|
|
2013-09-11 10:43:19 +00:00
|
|
|
* Wed Sep 11 2013 Marek Goldmann <mgoldman@redhat.com> - 1.11-3
|
|
|
|
- Using xmvn
|
|
|
|
- Remove the jboss-native deps with classifiers
|
|
|
|
|
2013-08-03 20:20:06 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-21 11:30:45 +00:00
|
|
|
* Tue May 21 2013 Marek Goldmann <mgoldman@redhat.com> - 1.11-1
|
|
|
|
- Upstream release 1.11 RHBZ#962761
|
|
|
|
- CVE-2013-2035 HawtJNI: predictable temporary file name leading to local arbitrary code execution RHBZ#962614
|
|
|
|
|
2013-02-14 02:26:39 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-02-06 18:54:16 +00:00
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.9-2
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
2012-10-09 13:46:12 +00:00
|
|
|
* Tue Oct 09 2012 Marek Goldmann <mgoldman@redhat.com> - 1.9-1
|
|
|
|
- Upstream release 1.9, RHBZ#864490
|
|
|
|
|
2012-07-19 15:29:28 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-04 12:27:43 +00:00
|
|
|
* Fri May 04 2012 Tomas Radej <tradej@redhat.com> - 1.6-3
|
|
|
|
- Removed maven-license-plugin BR
|
|
|
|
|
2012-01-13 06:10:45 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-29 12:49:48 +00:00
|
|
|
* Thu Aug 25 2011 Marek Goldmann <mgoldman@redhat.com> 1.6-1
|
|
|
|
- Upstream release 1.6
|
|
|
|
- Spec file cleanup
|
|
|
|
|
|
|
|
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.5-1
|
|
|
|
- Initial packaging
|
|
|
|
|