d0ca13
Name:             jline
d0ca13
Version:          2.14.6
d0ca13
Release:          2%{?dist}
d0ca13
Summary:          JLine is a Java library for handling console input
d0ca13
License:          BSD
d0ca13
URL:              https://github.com/jline/jline2
d0ca13
BuildArch:        noarch
d0ca13
d0ca13
Source0:          https://github.com/jline/jline2/archive/jline-%{version}.tar.gz
d0ca13
d0ca13
BuildRequires:  maven-local
d0ca13
BuildRequires:  mvn(junit:junit)
d0ca13
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
d0ca13
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
d0ca13
BuildRequires:  mvn(org.easymock:easymock)
d0ca13
BuildRequires:  mvn(org.fusesource.jansi:jansi)
d0ca13
BuildRequires:  mvn(org.powermock:powermock-api-easymock)
d0ca13
BuildRequires:  mvn(org.powermock:powermock-module-junit4)
d0ca13
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
d0ca13
d0ca13
Obsoletes: jline2 < %{version}-%{release}
d0ca13
Provides: jline2 = %{version}-%{release}
d0ca13
d0ca13
%description
d0ca13
JLine is a Java library for handling console input. It is similar
d0ca13
in functionality to BSD editline and GNU readline. People familiar
d0ca13
with the readline/editline capabilities for modern shells (such as
d0ca13
bash and tcsh) will find most of the command editing features of
d0ca13
JLine to be familiar.
d0ca13
d0ca13
%package javadoc
d0ca13
Summary:          Javadocs for %{name}
d0ca13
Obsoletes: jline2-javadoc < %{version}-%{release}
d0ca13
Provides: jline2-javadoc = %{version}-%{release}
d0ca13
d0ca13
%description javadoc
d0ca13
This package contains the API documentation for %{name}.
d0ca13
d0ca13
%prep
d0ca13
%setup -q -n jline2-jline-%{version}
d0ca13
d0ca13
# Remove maven-shade-plugin usage
d0ca13
%pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
d0ca13
# Remove animal sniffer plugin in order to reduce deps
d0ca13
%pom_remove_plugin "org.codehaus.mojo:animal-sniffer-maven-plugin"
d0ca13
d0ca13
# Remove unavailable and unneeded deps
d0ca13
%pom_xpath_remove "pom:build/pom:extensions"
d0ca13
%pom_remove_plugin :maven-site-plugin
d0ca13
%pom_remove_plugin :maven-enforcer-plugin
d0ca13
%pom_remove_plugin :maven-javadoc-plugin
d0ca13
d0ca13
# Makes the build fail on deprecation warnings from jansi
d0ca13
%pom_xpath_remove 'pom:arg[text()="-Werror"]'
d0ca13
d0ca13
# Do not import non-existing internal package
d0ca13
%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"
d0ca13
%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>"
d0ca13
d0ca13
# Be sure to export jline.internal, but not org.fusesource.jansi.
d0ca13
# See https://bugzilla.redhat.com/show_bug.cgi?id=1317551
d0ca13
%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"
d0ca13
d0ca13
# For some reason these directories do not exist, failing compilation due to -Werror
d0ca13
mkdir -p target/generated-sources/annotations
d0ca13
mkdir -p target/generated-test-sources/test-annotations
d0ca13
d0ca13
# nondeterministic
d0ca13
find -name TerminalFactoryTest.java -delete
d0ca13
d0ca13
%build
d0ca13
%mvn_build
d0ca13
d0ca13
%install
d0ca13
%mvn_install
d0ca13
d0ca13
%files -f .mfiles
d0ca13
d0ca13
%files javadoc -f .mfiles-javadoc
d0ca13
d0ca13
%changelog
d0ca13
* Fri Jun 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.14.6-2
d0ca13
- Remove explicit invocation of maven-javadoc-plugin
d0ca13
d0ca13
* Thu May 24 2018 Michael Simacek <msimacek@redhat.com> - 2.14.6-1
d0ca13
- Update to upstream version 2.14.6
d0ca13
d0ca13
* Fri Mar 16 2018 Michael Simacek <msimacek@redhat.com> - 2.13-12
d0ca13
- Remove -Werror to fix FTBFS
d0ca13
d0ca13
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-11
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d0ca13
d0ca13
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-10
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d0ca13
d0ca13
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 2.13-9
d0ca13
- Correct license tag to just BSD
d0ca13
d0ca13
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-8
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d0ca13
d0ca13
* Thu Feb 02 2017 Michael Simacek <msimacek@redhat.com> - 2.13-7
d0ca13
- Remove BR on site-plugin
d0ca13
d0ca13
* Wed Jun 22 2016 Michael Simacek <msimacek@redhat.com> - 2.13-6
d0ca13
- Remove nondeterministic test
d0ca13
d0ca13
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13-5
d0ca13
- Regenerate build-requires
d0ca13
d0ca13
* Thu May 05 2016 Michael Simacek <msimacek@redhat.com> - 2.13-4
d0ca13
- Try to eliminate test nondeterminism
d0ca13
d0ca13
* Mon Mar 14 2016 Severin Gehwolf <sgehwolf@redhat.com> - 2.13-3
d0ca13
- OSGi export jline.internal. Resolves RHBZ#1317551.
d0ca13
d0ca13
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-2
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d0ca13
d0ca13
* Wed Nov 25 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.13-1
d0ca13
- Update to upstream 2.13 release.
d0ca13
d0ca13
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12.1-2
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0ca13
d0ca13
* Wed Feb 18 2015 Alexander Kurtakov <akurtako@redhat.com> 2.12.1-1
d0ca13
- Update to upstream 2.12.1 release.
d0ca13
d0ca13
* Mon Jan 26 2015 Mat Booth <mat.booth@redhat.com> - 2.10-15
d0ca13
- Fix FTBFS due to missing BR on site-plugin
d0ca13
- Fix directory ownership
d0ca13
- Fix bogus date in changelog
d0ca13
d0ca13
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-14
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d0ca13
d0ca13
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10-13
d0ca13
- Migrate BuildRequires from junit4 to junit
d0ca13
d0ca13
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10-12
d0ca13
- Remove BuildRequires on maven-surefire-provider-junit4
d0ca13
d0ca13
* Tue Mar 11 2014 Michael Simacek <msimacek@redhat.com> - 2.10-11
d0ca13
- Drop manual requires
d0ca13
d0ca13
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.10-10
d0ca13
- Use Requires: java-headless rebuild (#1067528)
d0ca13
d0ca13
* Tue Oct 29 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.10-9
d0ca13
- Package jline 2.x as jline. Resolves RHBZ#1022915.
d0ca13
- Part of a large effort to make jline1 a compat package rather than jline2.
d0ca13
  See RHBZ#1022897.
d0ca13
- Switch to xmvn.
d0ca13
d0ca13
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d0ca13
d0ca13
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d0ca13
d0ca13
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-3
d0ca13
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
d0ca13
- Replace maven BuildRequires with maven-local
d0ca13
d0ca13
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d0ca13
d0ca13
* Wed Feb 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.0-1
d0ca13
- Update to 1.0.
d0ca13
d0ca13
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-7
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d0ca13
d0ca13
* Tue Dec 13 2011 Alexander Kurtakov <akurtako@redhat.com> 0.9.94-6
d0ca13
- Build with maven 3.x.
d0ca13
d0ca13
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-5
d0ca13
- BuildRequire maven2.
d0ca13
d0ca13
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-4
d0ca13
- Patch delete to actually behave as delete instead of backspace, include
d0ca13
  keybindings.properties in docs (#720170).
d0ca13
- Drop executable bit from jar.
d0ca13
- Crosslink with local javadocs.
d0ca13
- Include LICENSE.txt in -javadoc.
d0ca13
d0ca13
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-3
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d0ca13
d0ca13
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-2
d0ca13
- Remove pre-built Windows-only binary artifacts.
d0ca13
- Demo package was defined but never built for some reason.
d0ca13
- Don't also package jar in the javadoc package!
d0ca13
- Drop versioned java and javadocs.
d0ca13
d0ca13
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-1
d0ca13
- Remove bundled jars in %%prep phase.
d0ca13
- Tidy up spec file, fix some rpmlint warnings.
d0ca13
- Add pom and depmaps.
d0ca13
d0ca13
* Mon Mar  8 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:0.9.94-0.6
d0ca13
- Added missing Requires: jpackage-utils (%%{_javadir} and %%{_javadocdir})
d0ca13
d0ca13
* Tue Jan 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.9.94-0.5
d0ca13
- Fix BRs.
d0ca13
- Drop gcj_support.
d0ca13
d0ca13
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.4
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d0ca13
d0ca13
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.3
d0ca13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d0ca13
d0ca13
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:9.94-0.2
d0ca13
- drop repotag
d0ca13
d0ca13
* Mon Mar 24 2008 Matt Wringe <mwringe@redhat.com> - 0:9.94-0jpp.1
d0ca13
- Update to 0.9.94 (BZ #436204)
d0ca13
d0ca13
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:0.9.9-2jpp.1
d0ca13
- Autorebuild for GCC 4.3
d0ca13
d0ca13
* Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:0.9.9-1jpp.1
d0ca13
- Add option to build with ant.
d0ca13
- Fix various rpmlint issues
d0ca13
- Specify proper license
d0ca13
d0ca13
* Thu May 04 2006 Alexander Kurtakov <akurtkov at gmail.com> - 0:0.9.9-1jpp
d0ca13
- Upgrade to 0.9.9
d0ca13
d0ca13
* Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-1jpp
d0ca13
- Upgrade to 0.9.5
d0ca13
- First JPP-1.7 release
d0ca13
d0ca13
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.9.1-1jpp
d0ca13
- Upgrade to 0.9.1
d0ca13
- Disable attempt to include external jars
d0ca13
d0ca13
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.8.1-3jpp
d0ca13
- Changes to use locally installed DTDs
d0ca13
- Do not try and access sun site for linking javadoc
d0ca13
d0ca13
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.8.1-2jpp
d0ca13
- Rebuild with ant-1.6.2
d0ca13
d0ca13
* Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:0.8.1-1jpp
d0ca13
- release