public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jline2] epel10: Unretire jline2 due to introduction of jline 3.x.
@ 2026-09-29 13:17 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-09-29 13:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/jline2
Branch : epel10
Commit : a114fe65d04973e6c98cf8510da3593793229e31
Author : Jerry James <loganjerry@gmail.com>
Date   : 2021-01-04T08:05:10-07:00
Stats  : +61/-74 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/jline2/c/a114fe65d04973e6c98cf8510da3593793229e31?branch=epel10

Log:
Unretire jline2 due to introduction of jline 3.x.

---
diff --git a/.gitignore b/.gitignore
index 36fbdd9..e734e5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/jline-2.5.tar.xz
-/jline-2.10.tar.xz
+/jline-*.tar.xz
+/jline-*.tar.gz

diff --git a/jline2.spec b/jline2.spec
index 72e9d81..4bbdb90 100644
--- a/jline2.spec
+++ b/jline2.spec
@@ -1,50 +1,35 @@
-Name:             jline2
-Version:          2.10
-Release:          8%{?dist}
-Summary:          JLine is a Java library for handling console input
-Group:            Development/Libraries
-License:          BSD and ASL 2.0
-URL:              https://github.com/jline/jline2
-
-# git clone git://github.com/jline/jline2.git
-# cd jline2/ && git archive --format=tar --prefix=jline-2.10/ jline-2.10 | xz > jline-2.10.tar.xz
-Source0:          jline-%{version}.tar.xz
-
-BuildArch:        noarch
-
-BuildRequires:    jpackage-utils
-BuildRequires:    java-devel
-BuildRequires:    maven-local
-BuildRequires:    maven-compiler-plugin
-BuildRequires:    maven-jar-plugin
-BuildRequires:    maven-surefire-plugin
-BuildRequires:    maven-install-plugin
-BuildRequires:    junit4
-BuildRequires:    jansi
-BuildRequires:    fusesource-pom
-BuildRequires:    maven-surefire-provider-junit4
-
-Requires:         jpackage-utils
-Requires:         java
-Requires:         jansi
+Name:           jline2
+Version:        2.14.6
+Release:        1%{?dist}
+Summary:        Java library for handling console input
+License:        BSD
+URL:            http://jline.github.io/jline2/
 
-%description
-JLine is a Java library for handling console input. It is similar
-in functionality to BSD editline and GNU readline. People familiar
-with the readline/editline capabilities for modern shells (such as
-bash and tcsh) will find most of the command editing features of
-JLine to be familiar. 
+Source0:        https://github.com/jline/jline2/archive/jline-%{version}.tar.gz
+
+BuildArch:      noarch
 
-%package javadoc
-Summary:          Javadocs for %{name}
-Group:            Documentation
-Requires:         jpackage-utils
+BuildRequires:  maven-local
+BuildRequires:  mvn(junit:junit)
+BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
+BuildRequires:  mvn(org.easymock:easymock)
+BuildRequires:  mvn(org.fusesource.jansi:jansi:1)
+
+%description
+JLine is a Java library for handling console input.  It is similar in
+functionality to BSD editline and GNU readline.  People familiar with
+the readline/editline capabilities for modern shells (such as bash and
+tcsh) will find most of the command editing features of JLine to be
+familiar.
 
-%description javadoc
-This package contains the API documentation for %{name}.
+%{?javadoc_package}
 
 %prep
-%setup -q -n jline-%{version}
+%autosetup -n jline2-jline-%{version}
+
+# remove unnecessary dependency on parent POM
+%pom_remove_parent
 
 # Remove maven-shade-plugin usage
 %pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
@@ -53,47 +38,49 @@ This package contains the API documentation for %{name}.
 
 # Remove unavailable and unneeded deps
 %pom_xpath_remove "pom:build/pom:extensions"
-%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId = 'maven-site-plugin']"
+%pom_remove_plugin :maven-site-plugin
+%pom_remove_plugin :maven-enforcer-plugin
+%pom_remove_plugin :maven-javadoc-plugin
+
+# Makes the build fail on deprecation warnings from jansi
+%pom_xpath_remove 'pom:arg[text()="-Werror"]'
 
 # Do not import non-existing internal package
 %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Import-Package"
-%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions" "<Import-Package>javax.swing;resolution:=optional,!org.fusesource.jansi.internal</Import-Package>"
+%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions" "<Import-Package>javax.swing;resolution:=optional,org.fusesource.jansi,!org.fusesource.jansi.internal</Import-Package>"
 
-# Let maven bundle plugin figure out the exports.
-%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Export-Package"
+# Be sure to export jline.internal, but not org.fusesource.jansi.
+# See https://bugzilla.redhat.com/show_bug.cgi?id=1317551
+%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Export-Package" "jline.*;-noimport:=true"
 
-%build
-mvn-rpmbuild install javadoc:aggregate
+# Update required version of jansi 1.x
+%pom_xpath_set //pom:jansi.version 1.18
 
-%install
-install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-cp -p target/jline-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
-
-install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-
-install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
-install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+# drop a nondeterministic test
+find -name TerminalFactoryTest.java -delete
+# it's also the only test that uses powermock, so drop the powermock dependency
+%pom_remove_dep org.powermock:
 
-# Uh, oh...
-# http://sourceforge.net/mailarchive/message.php?msg_id=27330388
-# https://github.com/jline/jline2/commit/7a4d27430999706f0fd30b4548d5879275a88de2#pom.xml
-%add_maven_depmap -v "" -a "jline:jline"
+# Fix javadoc generation on java 11
+%pom_xpath_inject pom:build/pom:plugins "<plugin>
+<artifactId>maven-javadoc-plugin</artifactId>
+<configuration><source>1.8</source></configuration>
+</plugin>"
 
-# add_maven_depmap moves actual jar into its %{_javadir}/%{name}-%{version}.jar
-ln -s %{_javadir}/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+%build
+%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
 
-%files
-%{_mavenpomdir}/*
-%{_mavendepmapfragdir}/*
-%{_javadir}/*
-%doc CHANGELOG.md README.md LICENSE.txt
+%install
+%mvn_install
 
-%files javadoc
-%{_javadocdir}/%{name}
-%doc LICENSE.txt
+%files -f .mfiles
+%doc CHANGELOG.md README.md
+%license LICENSE.txt
 
 %changelog
+* Mon Dec 14 2020 Jerry James <loganjerry@gmail.com> - 2.14.6-1
+- Unretire jline2 due to introduction of jline 3.x
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 

diff --git a/sources b/sources
index a016557..9a2357a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-621dd4d65e5b67b1468f2666a7fa1fb8  jline-2.10.tar.xz
+SHA512 (jline-2.14.6.tar.gz) = 9e141c9a112dcb4850db95a7c2cec9b84f11be1f6740a3a33c99ec2ed5f900f4dae7474058e14319ef79476121997afbdb248ca22559a82a905c31690afa1d51

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-29 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 13:17 [rpms/jline2] epel10: Unretire jline2 due to introduction of jline 3.x Jerry James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox