| |
@@ -1,92 +1,191 @@
|
| |
Name: jline
|
| |
- Version: 2.14.6
|
| |
- Release: 10%{?dist}
|
| |
- Summary: JLine is a Java library for handling console input
|
| |
+ Version: 3.18.0
|
| |
+ Release: 1%{?dist}
|
| |
+ Summary: Java library for handling console input
|
| |
License: BSD
|
| |
- URL: https://github.com/jline/jline2
|
| |
+ URL: https://github.com/jline/jline3
|
| |
BuildArch: noarch
|
| |
|
| |
- Source0: https://github.com/jline/jline2/archive/jline-%{version}.tar.gz
|
| |
+ Source0: %{url}/archive/jline-parent-%{version}.tar.gz
|
| |
+ # Adapt to newer versions of apache-sshd
|
| |
+ Patch0: %{name}-apache-sshd.patch
|
| |
|
| |
BuildRequires: maven-local
|
| |
+ BuildRequires: mvn(com.googlecode.juniversalchardet:juniversalchardet)
|
| |
BuildRequires: mvn(junit:junit)
|
| |
+ BuildRequires: mvn(net.java.dev.jna:jna)
|
| |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
| |
+ BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
| |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
| |
+ BuildRequires: mvn(org.apache.sshd:sshd-core)
|
| |
+ BuildRequires: mvn(org.apache.sshd:sshd-scp)
|
| |
+ BuildRequires: mvn(org.apache.sshd:sshd-sftp)
|
| |
+ BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
| |
BuildRequires: mvn(org.easymock:easymock)
|
| |
BuildRequires: mvn(org.fusesource.jansi:jansi)
|
| |
|
| |
- Obsoletes: jline2 < %{version}-%{release}
|
| |
- Provides: jline2 = %{version}-%{release}
|
| |
+ %global _desc %{expand:
|
| |
+ JLine is a Java library for handling console input. It is similar in
|
| |
+ functionality to BSD editline and GNU readline but with additional
|
| |
+ features that bring it in par with the ZSH line editor. Those 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
|
| |
- 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 %_desc
|
| |
+
|
| |
+ This package contains the parent POM for the jline project
|
| |
|
| |
%package javadoc
|
| |
Summary: Javadocs for %{name}
|
| |
- Obsoletes: jline2-javadoc < %{version}-%{release}
|
| |
- Provides: jline2-javadoc = %{version}-%{release}
|
| |
|
| |
- %description javadoc
|
| |
+ %description javadoc %_desc
|
| |
+
|
| |
This package contains the API documentation for %{name}.
|
| |
|
| |
- %prep
|
| |
- %setup -q -n jline2-jline-%{version}
|
| |
+ %package terminal
|
| |
+ Summary: JLine terminal
|
| |
|
| |
- # remove unnecessary dependency on parent POM
|
| |
- %pom_remove_parent
|
| |
+ %description terminal %_desc
|
| |
|
| |
- # Remove maven-shade-plugin usage
|
| |
- %pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
|
| |
- # Remove animal sniffer plugin in order to reduce deps
|
| |
- %pom_remove_plugin "org.codehaus.mojo:animal-sniffer-maven-plugin"
|
| |
+ This package contains the basic terminal support for JLine.
|
| |
|
| |
- # Remove unavailable and unneeded deps
|
| |
- %pom_xpath_remove "pom:build/pom:extensions"
|
| |
- %pom_remove_plugin :maven-site-plugin
|
| |
- %pom_remove_plugin :maven-enforcer-plugin
|
| |
- %pom_remove_plugin :maven-javadoc-plugin
|
| |
+ %package terminal-jansi
|
| |
+ Summary: JLine terminal with JANSI
|
| |
+ Requires: %{name}-terminal = %{version}-%{release}
|
| |
+
|
| |
+ %description terminal-jansi %_desc
|
| |
+
|
| |
+ This package contains a functioning terminal based on JANSI.
|
| |
+
|
| |
+ %package terminal-jna
|
| |
+ Summary: JLine terminal with JNA
|
| |
+ Requires: %{name}-terminal = %{version}-%{release}
|
| |
+
|
| |
+ %description terminal-jna %_desc
|
| |
+
|
| |
+ This package contains a functioning terminal based on JNA.
|
| |
+
|
| |
+ %package reader
|
| |
+ Summary: JLine reader
|
| |
+ Requires: %{name}-terminal = %{version}-%{release}
|
| |
+
|
| |
+ %description reader %_desc
|
| |
+
|
| |
+ This package supports reading lines from a console with customizable key
|
| |
+ bindings and input editing.
|
| |
+
|
| |
+ %package style
|
| |
+ Summary: JLine style
|
| |
+ Requires: %{name}-terminal = %{version}-%{release}
|
| |
+
|
| |
+ %description style %_desc
|
| |
+
|
| |
+ This package contains a style processor for JLine, which can apply
|
| |
+ colors to strings, for example.
|
| |
+
|
| |
+ %package builtins
|
| |
+ Summary: JLine builtins
|
| |
+ Requires: %{name}-reader = %{version}-%{release}
|
| |
+ Requires: %{name}-style = %{version}-%{release}
|
| |
+ Recommends: mvn(com.googlecode.juniversalchardet:juniversalchardet)
|
| |
+
|
| |
+ %description builtins %_desc
|
| |
+
|
| |
+ This package contains keybindings to emulate popular tools such as nano
|
| |
+ and less.
|
| |
+
|
| |
+ %package console
|
| |
+ Summary: JLine console
|
| |
+ Requires: %{name}-builtins = %{version}-%{release}
|
| |
|
| |
- # Makes the build fail on deprecation warnings from jansi
|
| |
- %pom_xpath_remove 'pom:arg[text()="-Werror"]'
|
| |
+ %description console %_desc
|
| |
|
| |
- # 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,!org.fusesource.jansi.internal</Import-Package>"
|
| |
+ This package contains a console with command and script execution
|
| |
+ support, and tab completion.
|
| |
|
| |
- # 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"
|
| |
+ %package remote-ssh
|
| |
+ Summary: JLine remote SSH
|
| |
+ Requires: %{name}-builtins = %{version}-%{release}
|
| |
+ Recommends: mvn(org.apache.sshd:sshd-core)
|
| |
+ Recommends: mvn(org.apache.sshd:sshd-scp)
|
| |
+ Recommends: mvn(org.apache.sshd:sshd-sftp)
|
| |
|
| |
- # For some reason these directories do not exist, failing compilation due to -Werror
|
| |
- mkdir -p target/generated-sources/annotations
|
| |
- mkdir -p target/generated-test-sources/test-annotations
|
| |
+ %description remote-ssh %_desc
|
| |
|
| |
- # 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:
|
| |
+ This package contains an ssh client.
|
| |
|
| |
- # 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>"
|
| |
+ %package remote-telnet
|
| |
+ Summary: JLine remote telnet
|
| |
+ Requires: %{name}-builtins = %{version}-%{release}
|
| |
+ Recommends: mvn(org.apache.sshd:sshd-core)
|
| |
+
|
| |
+ %description remote-telnet %_desc
|
| |
+
|
| |
+ This package contains a telnet client.
|
| |
+
|
| |
+ %prep
|
| |
+ %autosetup -n jline3-jline-parent-%{version} -p0
|
| |
+
|
| |
+ # remove unnecessary dependency on parent POM
|
| |
+ %pom_remove_parent
|
| |
+
|
| |
+ # We don't need the bundle
|
| |
+ %pom_disable_module jline
|
| |
+
|
| |
+ # Missing dependencies in Fedora
|
| |
+ %pom_disable_module demo
|
| |
+ %pom_disable_module groovy
|
| |
+ %pom_disable_module graal
|
| |
+ %pom_remove_plugin :gmavenplus-plugin
|
| |
+ %pom_remove_dep :graal-sdk
|
| |
+
|
| |
+ # Unnecessary plugins for an rpm build
|
| |
+ %pom_remove_plugin :maven-javadoc-plugin
|
| |
+ %pom_remove_plugin :maven-release-plugin
|
| |
+ %pom_remove_plugin :native-image-maven-plugin
|
| |
|
| |
%build
|
| |
- %mvn_build --xmvn-javadoc -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
| |
+ %mvn_build -s
|
| |
|
| |
%install
|
| |
%mvn_install
|
| |
|
| |
- %files -f .mfiles
|
| |
+ %files -f .mfiles-jline-parent
|
| |
+ %doc changelog.md README.md
|
| |
+ %license LICENSE.txt
|
| |
|
| |
%files javadoc -f .mfiles-javadoc
|
| |
+ %doc changelog.md README.md
|
| |
+ %license LICENSE.txt
|
| |
+
|
| |
+ %files terminal -f .mfiles-jline-terminal
|
| |
+ %doc changelog.md README.md
|
| |
+ %license LICENSE.txt
|
| |
+
|
| |
+ %files terminal-jansi -f .mfiles-jline-terminal-jansi
|
| |
+
|
| |
+ %files terminal-jna -f .mfiles-jline-terminal-jna
|
| |
+
|
| |
+ %files reader -f .mfiles-jline-reader
|
| |
+
|
| |
+ %files style -f .mfiles-jline-style
|
| |
+
|
| |
+ %files builtins -f .mfiles-jline-builtins
|
| |
+
|
| |
+ %files console -f .mfiles-jline-console
|
| |
+
|
| |
+ %files remote-ssh -f .mfiles-jline-remote-ssh
|
| |
+
|
| |
+ %files remote-telnet -f .mfiles-jline-remote-telnet
|
| |
|
| |
%changelog
|
| |
+ * Mon Dec 14 2020 Jerry James <loganjerry@gmail.com> - 3.18.0-1
|
| |
+ - Version 3.18.0
|
| |
+ - Remove package name from Summary
|
| |
+ - Add patch to adapt to recent versions of apache-sshd
|
| |
+ - Break up into subpackages to control dependencies
|
| |
+
|
| |
* Sun Aug 09 2020 Fabio Valentini <decathorpe@gmail.com> - 2.14.6-10
|
| |
- Drop useless parent POM and powermock build dependencies.
|
| |
|
| |
Version 2.x will be kept in a jline2 package: https://bugzilla.redhat.com/show_bug.cgi?id=1908038
Depends on a corresponding jansi update: https://src.fedoraproject.org/rpms/jansi/pull-request/2