Severin Gehwolf 19cb1f5
Name:             jline
f8d962d
Version:          3.20.0
417d2da
Release:          1%{?dist}
31c3991
Summary:          Java library for handling console input
1046568
License:          BSD
31c3991
URL:              https://github.com/jline/jline3
c87035f
BuildArch:        noarch
Severin Gehwolf 19cb1f5
31c3991
Source0:          %{url}/archive/jline-parent-%{version}.tar.gz
31c3991
# Adapt to newer versions of apache-sshd
31c3991
Patch0:           %{name}-apache-sshd.patch
Severin Gehwolf 19cb1f5
c87035f
BuildRequires:  maven-local
31c3991
BuildRequires:  mvn(com.googlecode.juniversalchardet:juniversalchardet)
c87035f
BuildRequires:  mvn(junit:junit)
31c3991
BuildRequires:  mvn(net.java.dev.jna:jna)
c87035f
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
31c3991
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
c87035f
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
e5caba4
BuildRequires:  mvn(org.apache.sshd:sshd-core) >= 2.6.0
e5caba4
BuildRequires:  mvn(org.apache.sshd:sshd-scp) >= 2.6.0
e5caba4
BuildRequires:  mvn(org.apache.sshd:sshd-sftp) >= 2.6.0
31c3991
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
c87035f
BuildRequires:  mvn(org.easymock:easymock)
c87035f
BuildRequires:  mvn(org.fusesource.jansi:jansi)
Severin Gehwolf 19cb1f5
31c3991
%global _desc %{expand:
31c3991
JLine is a Java library for handling console input.  It is similar in
31c3991
functionality to BSD editline and GNU readline but with additional
31c3991
features that bring it in par with the ZSH line editor.  Those familiar
31c3991
with the readline/editline capabilities for modern shells (such as bash
31c3991
and tcsh) will find most of the command editing features of JLine to be
31c3991
familiar.}
Matt Wringe 228dfec
31c3991
%description %_desc
31c3991
31c3991
This package contains the parent POM for the jline project
Severin Gehwolf 19cb1f5
Severin Gehwolf 19cb1f5
%package javadoc
Severin Gehwolf 19cb1f5
Summary:          Javadocs for %{name}
Severin Gehwolf 19cb1f5
31c3991
%description javadoc %_desc
31c3991
Severin Gehwolf 19cb1f5
This package contains the API documentation for %{name}.
Matt Wringe 228dfec
31c3991
%package        terminal
31c3991
Summary:        JLine terminal
Matt Wringe 228dfec
31c3991
%description    terminal %_desc
096d831
31c3991
This package contains the basic terminal support for JLine.
Matt Wringe 228dfec
31c3991
%package        terminal-jansi
31c3991
Summary:        JLine terminal with JANSI
31c3991
Requires:       %{name}-terminal = %{version}-%{release}
31c3991
31c3991
%description    terminal-jansi %_desc
31c3991
31c3991
This package contains a functioning terminal based on JANSI.
31c3991
31c3991
%package        terminal-jna
31c3991
Summary:        JLine terminal with JNA
31c3991
Requires:       %{name}-terminal = %{version}-%{release}
31c3991
31c3991
%description    terminal-jna %_desc
31c3991
31c3991
This package contains a functioning terminal based on JNA.
31c3991
31c3991
%package        reader
31c3991
Summary:        JLine reader
31c3991
Requires:       %{name}-terminal = %{version}-%{release}
31c3991
31c3991
%description    reader %_desc
31c3991
31c3991
This package supports reading lines from a console with customizable key
31c3991
bindings and input editing.
31c3991
31c3991
%package        style
31c3991
Summary:        JLine style
31c3991
Requires:       %{name}-terminal = %{version}-%{release}
31c3991
31c3991
%description    style %_desc
31c3991
31c3991
This package contains a style processor for JLine, which can apply
31c3991
colors to strings, for example.
31c3991
31c3991
%package        builtins
31c3991
Summary:        JLine builtins
31c3991
Requires:       %{name}-reader = %{version}-%{release}
31c3991
Requires:       %{name}-style = %{version}-%{release}
31c3991
Recommends:     mvn(com.googlecode.juniversalchardet:juniversalchardet)
31c3991
31c3991
%description    builtins %_desc
31c3991
31c3991
This package contains keybindings to emulate popular tools such as nano
31c3991
and less.
31c3991
31c3991
%package        console
31c3991
Summary:        JLine console
31c3991
Requires:       %{name}-builtins = %{version}-%{release}
mbooth 9c8d958
31c3991
%description    console %_desc
47eaeda
31c3991
This package contains a console with command and script execution
31c3991
support, and tab completion.
Matt Wringe 228dfec
31c3991
%package        remote-ssh
31c3991
Summary:        JLine remote SSH
31c3991
Requires:       %{name}-builtins = %{version}-%{release}
e5caba4
Recommends:     mvn(org.apache.sshd:sshd-core) >= 2.6.0
e5caba4
Recommends:     mvn(org.apache.sshd:sshd-scp) >= 2.6.0
e5caba4
Recommends:     mvn(org.apache.sshd:sshd-sftp) >= 2.6.0
Matt Wringe 228dfec
31c3991
%description    remote-ssh %_desc
Severin Gehwolf 829c232
31c3991
This package contains an ssh client.
76125f1
31c3991
%package        remote-telnet
31c3991
Summary:        JLine remote telnet
31c3991
Requires:       %{name}-builtins = %{version}-%{release}
e5caba4
Recommends:     mvn(org.apache.sshd:sshd-core) >= 2.6.0
31c3991
31c3991
%description    remote-telnet %_desc
31c3991
31c3991
This package contains a telnet client.
31c3991
31c3991
%prep
31c3991
%autosetup -n jline3-jline-parent-%{version} -p0
31c3991
31c3991
# remove unnecessary dependency on parent POM
31c3991
%pom_remove_parent
31c3991
31c3991
# We don't need the bundle
31c3991
%pom_disable_module jline
31c3991
31c3991
# Missing dependencies in Fedora
31c3991
%pom_disable_module demo
31c3991
%pom_disable_module groovy
31c3991
%pom_disable_module graal
31c3991
%pom_remove_plugin :gmavenplus-plugin
31c3991
%pom_remove_dep :graal-sdk
31c3991
31c3991
# Unnecessary plugins for an rpm build
31c3991
%pom_remove_plugin :maven-javadoc-plugin
31c3991
%pom_remove_plugin :maven-release-plugin
31c3991
%pom_remove_plugin :native-image-maven-plugin
c88ac75
e5caba4
# Apache SSHD package names where refactored in 2.6.0
e5caba4
# See https://github.com/apache/mina-sshd/commit/5cbae28a42c478c052ade11d0fc3b84d4ee2f720
e5caba4
sed -i -e 's/org.apache.sshd.server.scp/org.apache.sshd.scp.server/' \
e5caba4
  remote-ssh/src/main/java/org/jline/builtins/ssh/Ssh.java
e5caba4
sed -i -e 's/org.apache.sshd.server.subsystem.sftp/org.apache.sshd.sftp.server/' \
e5caba4
  remote-ssh/src/main/java/org/jline/builtins/ssh/Ssh.java
e5caba4
e5caba4
Severin Gehwolf 19cb1f5
%build
31c3991
%mvn_build -s
Matt Wringe 228dfec
Matt Wringe 228dfec
%install
Severin Gehwolf 19cb1f5
%mvn_install
Matt Wringe 228dfec
31c3991
%files -f .mfiles-jline-parent
31c3991
%doc changelog.md README.md
31c3991
%license LICENSE.txt
mbooth 9c8d958
Severin Gehwolf 19cb1f5
%files javadoc -f .mfiles-javadoc
31c3991
%doc changelog.md README.md
31c3991
%license LICENSE.txt
31c3991
31c3991
%files terminal -f .mfiles-jline-terminal
31c3991
%doc changelog.md README.md
31c3991
%license LICENSE.txt
31c3991
31c3991
%files terminal-jansi -f .mfiles-jline-terminal-jansi
31c3991
31c3991
%files terminal-jna -f .mfiles-jline-terminal-jna
31c3991
31c3991
%files reader -f .mfiles-jline-reader
31c3991
31c3991
%files style -f .mfiles-jline-style
31c3991
31c3991
%files builtins -f .mfiles-jline-builtins
31c3991
31c3991
%files console -f .mfiles-jline-console
31c3991
31c3991
%files remote-ssh -f .mfiles-jline-remote-ssh
31c3991
31c3991
%files remote-telnet -f .mfiles-jline-remote-telnet
Matt Wringe 228dfec
Matt Wringe 228dfec
%changelog
f8d962d
* Fri Jun 25 2021 Jerry James <loganjerry@gmail.com> - 3.20.0-1
f8d962d
- Version 3.20.0
f8d962d
417d2da
* Sat Mar 20 2021 Jerry James <loganjerry@gmail.com> - 3.19.0-1
417d2da
- Version 3.19.0
417d2da
e5caba4
* Fri Mar 12 2021 Mat Booth <mat.booth@redhat.com> - 3.18.0-3
e5caba4
- Fix build against apache-sshd 2.6.0
e5caba4
837cc06
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.0-2
837cc06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
837cc06
31c3991
* Mon Dec 14 2020 Jerry James <loganjerry@gmail.com> - 3.18.0-1
31c3991
- Version 3.18.0
31c3991
- Remove package name from Summary
31c3991
- Add patch to adapt to recent versions of apache-sshd
31c3991
- Break up into subpackages to control dependencies
31c3991
096d831
* Sun Aug 09 2020 Fabio Valentini <decathorpe@gmail.com> - 2.14.6-10
096d831
- Drop useless parent POM and powermock build dependencies.
096d831
dd8663b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-9
dd8663b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dd8663b
e7fe899
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.14.6-8
e7fe899
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
e7fe899
c88ac75
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 2.14.6-7
c88ac75
- Fix Java 11 build.
c88ac75
2b13556
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-6
2b13556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2b13556
19b4483
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-5
19b4483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
19b4483
597d61a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-4
597d61a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
597d61a
2daded5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-3
2daded5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2daded5
7b4b538
* Fri Jun 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.14.6-2
7b4b538
- Remove explicit invocation of maven-javadoc-plugin
7b4b538
87b0c43
* Thu May 24 2018 Michael Simacek <msimacek@redhat.com> - 2.14.6-1
87b0c43
- Update to upstream version 2.14.6
87b0c43
47eaeda
* Fri Mar 16 2018 Michael Simacek <msimacek@redhat.com> - 2.13-12
47eaeda
- Remove -Werror to fix FTBFS
47eaeda
dc887b5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-11
dc887b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dc887b5
53f3010
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-10
53f3010
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53f3010
1046568
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 2.13-9
1046568
- Correct license tag to just BSD
1046568
aaf9886
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-8
aaf9886
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aaf9886
b7ca5cb
* Thu Feb 02 2017 Michael Simacek <msimacek@redhat.com> - 2.13-7
b7ca5cb
- Remove BR on site-plugin
b7ca5cb
76125f1
* Wed Jun 22 2016 Michael Simacek <msimacek@redhat.com> - 2.13-6
76125f1
- Remove nondeterministic test
76125f1
c87035f
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13-5
c87035f
- Regenerate build-requires
c87035f
afb3ab8
* Thu May 05 2016 Michael Simacek <msimacek@redhat.com> - 2.13-4
afb3ab8
- Try to eliminate test nondeterminism
afb3ab8
Severin Gehwolf f30917d
* Mon Mar 14 2016 Severin Gehwolf <sgehwolf@redhat.com> - 2.13-3
Severin Gehwolf f30917d
- OSGi export jline.internal. Resolves RHBZ#1317551.
Severin Gehwolf f30917d
74089a1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-2
74089a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
74089a1
Severin Gehwolf 829c232
* Wed Nov 25 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.13-1
Severin Gehwolf 829c232
- Update to upstream 2.13 release.
Severin Gehwolf 829c232
aaea9a9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12.1-2
aaea9a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aaea9a9
d2415d7
* Wed Feb 18 2015 Alexander Kurtakov <akurtako@redhat.com> 2.12.1-1
d2415d7
- Update to upstream 2.12.1 release.
d2415d7
8d1de3b
* Mon Jan 26 2015 Mat Booth <mat.booth@redhat.com> - 2.10-15
8d1de3b
- Fix FTBFS due to missing BR on site-plugin
8d1de3b
- Fix directory ownership
8d1de3b
- Fix bogus date in changelog
8d1de3b
0cba880
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-14
0cba880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0cba880
c60a432
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10-13
c60a432
- Migrate BuildRequires from junit4 to junit
c60a432
61ebd70
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10-12
61ebd70
- Remove BuildRequires on maven-surefire-provider-junit4
61ebd70
a62c2c1
* Tue Mar 11 2014 Michael Simacek <msimacek@redhat.com> - 2.10-11
a62c2c1
- Drop manual requires
a62c2c1
Stanislav Ochotnicky 1469244
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.10-10
Stanislav Ochotnicky 1469244
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 1469244
Severin Gehwolf 19cb1f5
* Tue Oct 29 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.10-9
Severin Gehwolf 19cb1f5
- Package jline 2.x as jline. Resolves RHBZ#1022915.
Severin Gehwolf 19cb1f5
- Part of a large effort to make jline1 a compat package rather than jline2.
Severin Gehwolf 19cb1f5
  See RHBZ#1022897.
Severin Gehwolf 19cb1f5
- Switch to xmvn.
Severin Gehwolf 19cb1f5
874962f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
874962f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
874962f
864da7b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
864da7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
864da7b
Stanislav Ochotnicky d610093
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-3
Stanislav Ochotnicky d610093
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky d610093
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky d610093
63deb34
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
63deb34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
63deb34
bde7d0a
* Wed Feb 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.0-1
bde7d0a
- Update to 1.0.
bde7d0a
c5d77d4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-7
c5d77d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c5d77d4
5904c80
* Tue Dec 13 2011 Alexander Kurtakov <akurtako@redhat.com> 0.9.94-6
5904c80
- Build with maven 3.x.
5904c80
bc37b69
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-5
bc37b69
- BuildRequire maven2.
bc37b69
1a81b69
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-4
1a81b69
- Patch delete to actually behave as delete instead of backspace, include
1a81b69
  keybindings.properties in docs (#720170).
1a81b69
- Drop executable bit from jar.
0f74cf1
- Crosslink with local javadocs.
0f74cf1
- Include LICENSE.txt in -javadoc.
ddf7240
5661825
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-3
5661825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5661825
mbooth 9c8d958
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-2
mbooth 9c8d958
- Remove pre-built Windows-only binary artifacts.
mbooth 9c8d958
- Demo package was defined but never built for some reason.
mbooth 9c8d958
- Don't also package jar in the javadoc package!
mbooth 9c8d958
- Drop versioned java and javadocs.
mbooth 9c8d958
mbooth 7d957f6
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-1
mbooth 7d957f6
- Remove bundled jars in %%prep phase.
mbooth 7d957f6
- Tidy up spec file, fix some rpmlint warnings.
mbooth 7d957f6
- Add pom and depmaps.
mbooth 7d957f6
8b7b1c0
* Mon Mar  8 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:0.9.94-0.6
8b7b1c0
- Added missing Requires: jpackage-utils (%%{_javadir} and %%{_javadocdir})
8b7b1c0
0fb2c70
* Tue Jan 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.9.94-0.5
0fb2c70
- Fix BRs.
0fb2c70
- Drop gcj_support.
0fb2c70
f12e2f2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.4
f12e2f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f12e2f2
e2f31c0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.3
e2f31c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e2f31c0
c7b5293
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:9.94-0.2
c7b5293
- drop repotag
c7b5293
Matt Wringe 445c398
* Mon Mar 24 2008 Matt Wringe <mwringe@redhat.com> - 0:9.94-0jpp.1
Matt Wringe 445c398
- Update to 0.9.94 (BZ #436204)
Matt Wringe 445c398
fe116e8
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:0.9.9-2jpp.1
fe116e8
- Autorebuild for GCC 4.3
fe116e8
Matt Wringe 228dfec
* Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:0.9.9-1jpp.1
Matt Wringe 228dfec
- Add option to build with ant.
Matt Wringe 228dfec
- Fix various rpmlint issues
Matt Wringe 228dfec
- Specify proper license
Matt Wringe 228dfec
Matt Wringe 228dfec
* Thu May 04 2006 Alexander Kurtakov <akurtkov at gmail.com> - 0:0.9.9-1jpp
Matt Wringe 228dfec
- Upgrade to 0.9.9
Matt Wringe 228dfec
Matt Wringe 228dfec
* Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-1jpp
Matt Wringe 228dfec
- Upgrade to 0.9.5
Matt Wringe 228dfec
- First JPP-1.7 release
Matt Wringe 228dfec
Matt Wringe 228dfec
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.9.1-1jpp
Matt Wringe 228dfec
- Upgrade to 0.9.1
Matt Wringe 228dfec
- Disable attempt to include external jars
Matt Wringe 228dfec
Matt Wringe 228dfec
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.8.1-3jpp
Matt Wringe 228dfec
- Changes to use locally installed DTDs
Matt Wringe 228dfec
- Do not try and access sun site for linking javadoc
Matt Wringe 228dfec
8d1de3b
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.8.1-2jpp
Matt Wringe 228dfec
- Rebuild with ant-1.6.2
Matt Wringe 228dfec
Matt Wringe 228dfec
* Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:0.8.1-1jpp
Matt Wringe 228dfec
- release