Severin Gehwolf 19cb1f5
Name:             jline
87b0c43
Version:          2.14.6
096d831
Release:          10%{?dist}
Severin Gehwolf 19cb1f5
Summary:          JLine is a Java library for handling console input
1046568
License:          BSD
Severin Gehwolf 19cb1f5
URL:              https://github.com/jline/jline2
c87035f
BuildArch:        noarch
Severin Gehwolf 19cb1f5
87b0c43
Source0:          https://github.com/jline/jline2/archive/jline-%{version}.tar.gz
Severin Gehwolf 19cb1f5
c87035f
BuildRequires:  maven-local
c87035f
BuildRequires:  mvn(junit:junit)
c87035f
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
c87035f
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
c87035f
BuildRequires:  mvn(org.easymock:easymock)
c87035f
BuildRequires:  mvn(org.fusesource.jansi:jansi)
Severin Gehwolf 19cb1f5
Severin Gehwolf 19cb1f5
Obsoletes: jline2 < %{version}-%{release}
Severin Gehwolf 19cb1f5
Provides: jline2 = %{version}-%{release}
Matt Wringe 228dfec
Matt Wringe 228dfec
%description
Severin Gehwolf 19cb1f5
JLine is a Java library for handling console input. It is similar
Severin Gehwolf 19cb1f5
in functionality to BSD editline and GNU readline. People familiar
Severin Gehwolf 19cb1f5
with the readline/editline capabilities for modern shells (such as
Severin Gehwolf 19cb1f5
bash and tcsh) will find most of the command editing features of
76125f1
JLine to be familiar.
Severin Gehwolf 19cb1f5
Severin Gehwolf 19cb1f5
%package javadoc
Severin Gehwolf 19cb1f5
Summary:          Javadocs for %{name}
Severin Gehwolf 19cb1f5
Obsoletes: jline2-javadoc < %{version}-%{release}
Severin Gehwolf 19cb1f5
Provides: jline2-javadoc = %{version}-%{release}
Severin Gehwolf 19cb1f5
Severin Gehwolf 19cb1f5
%description javadoc
Severin Gehwolf 19cb1f5
This package contains the API documentation for %{name}.
Matt Wringe 228dfec
Matt Wringe 228dfec
%prep
87b0c43
%setup -q -n jline2-jline-%{version}
Matt Wringe 228dfec
096d831
# remove unnecessary dependency on parent POM
096d831
%pom_remove_parent
096d831
Severin Gehwolf 19cb1f5
# Remove maven-shade-plugin usage
Severin Gehwolf 19cb1f5
%pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
Severin Gehwolf 19cb1f5
# Remove animal sniffer plugin in order to reduce deps
Severin Gehwolf 19cb1f5
%pom_remove_plugin "org.codehaus.mojo:animal-sniffer-maven-plugin"
Matt Wringe 228dfec
Severin Gehwolf 19cb1f5
# Remove unavailable and unneeded deps
Severin Gehwolf 19cb1f5
%pom_xpath_remove "pom:build/pom:extensions"
b7ca5cb
%pom_remove_plugin :maven-site-plugin
87b0c43
%pom_remove_plugin :maven-enforcer-plugin
7b4b538
%pom_remove_plugin :maven-javadoc-plugin
mbooth 9c8d958
47eaeda
# Makes the build fail on deprecation warnings from jansi
47eaeda
%pom_xpath_remove 'pom:arg[text()="-Werror"]'
47eaeda
Severin Gehwolf 19cb1f5
# Do not import non-existing internal package
Severin Gehwolf 19cb1f5
%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"
Severin Gehwolf 829c232
%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>"
Matt Wringe 228dfec
Severin Gehwolf f30917d
# Be sure to export jline.internal, but not org.fusesource.jansi.
Severin Gehwolf f30917d
# See https://bugzilla.redhat.com/show_bug.cgi?id=1317551
Severin Gehwolf f30917d
%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"
Matt Wringe 228dfec
Severin Gehwolf 829c232
# For some reason these directories do not exist, failing compilation due to -Werror
Severin Gehwolf 829c232
mkdir -p target/generated-sources/annotations
Severin Gehwolf 829c232
mkdir -p target/generated-test-sources/test-annotations
Severin Gehwolf 829c232
096d831
# drop a nondeterministic test
76125f1
find -name TerminalFactoryTest.java -delete
096d831
# it's also the only test that uses powermock, so drop the powermock dependency
096d831
%pom_remove_dep org.powermock:
76125f1
c88ac75
# Fix javadoc generation on java 11
c88ac75
%pom_xpath_inject pom:build/pom:plugins "<plugin>
c88ac75
<artifactId>maven-javadoc-plugin</artifactId>
c88ac75
<configuration><source>1.8</source></configuration>
c88ac75
</plugin>" 
c88ac75
Severin Gehwolf 19cb1f5
%build
c88ac75
%mvn_build --xmvn-javadoc -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
Matt Wringe 228dfec
Matt Wringe 228dfec
%install
Severin Gehwolf 19cb1f5
%mvn_install
Matt Wringe 228dfec
Severin Gehwolf 19cb1f5
%files -f .mfiles
mbooth 9c8d958
Severin Gehwolf 19cb1f5
%files javadoc -f .mfiles-javadoc
Matt Wringe 228dfec
Matt Wringe 228dfec
%changelog
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