public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/jline2] epel10: Unretire jline2 due to introduction of jline 3.x.
Date: Tue, 29 Sep 2026 13:17:24 GMT [thread overview]
Message-ID: <179068784437.1.14244992772724777908.rpms-jline2-a114fe65d049@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-29 13:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179068784437.1.14244992772724777908.rpms-jline2-a114fe65d049@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox