Name: jline Version: 2.14.6 Release: %mkrel 2 Group: Development/Java Summary: JLine is a Java library for handling console input License: BSD URL: https://github.com/jline/jline2 BuildArch: noarch Source0: https://github.com/jline/jline2/archive/jline-%{version}.tar.gz 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) BuildRequires: mvn(org.powermock:powermock-api-easymock) BuildRequires: mvn(org.powermock:powermock-module-junit4) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) Obsoletes: jline2 < %{version}-%{release} Provides: jline2 = %{version}-%{release} %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. %package javadoc Summary: Javadocs for %{name} Obsoletes: jline2-javadoc < %{version}-%{release} Provides: jline2-javadoc = %{version}-%{release} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n jline2-jline-%{version} # 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" # Remove unavailable and unneeded deps %pom_xpath_remove "pom:build/pom:extensions" %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-enforcer-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,!org.fusesource.jansi.internal</Import-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" # 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 # nondeterministic find -name TerminalFactoryTest.java -delete # (daviddavid) this test fails find . -name "ConsoleReaderTest.java" -delete %build %mvn_build %install %mvn_install %files -f .mfiles %files javadoc -f .mfiles-javadoc %changelog * Thu Sep 20 2018 umeabot <umeabot> 2.14.6-2.mga7 (not released yet) + Revision: 1278994 - Mageia 7 Mass Rebuild * Thu May 24 2018 daviddavid <daviddavid> 2.14.6-1.mga7 + Revision: 1232049 - Update to upstream version 2.14.6 (sync with fc29) * Sat Jun 25 2016 daviddavid <daviddavid> 2.13-4.mga6 + Revision: 1037477 - Remove nondeterministic test - Regenerate build-requires - OSGi export jline.internal. Resolves RHBZ#1317551 + neoclust <neoclust> - Second rebuild of the java stack * Thu Feb 25 2016 daviddavid <daviddavid> 2.13-3.mga6 + Revision: 978875 - rebuild to regenerate Provides list * Tue Feb 23 2016 neoclust <neoclust> 2.13-2.mga6 + Revision: 977109 - First rebuild of the java stack - sync package jline with fedora + umeabot <umeabot> - Mageia 6 Mass Rebuild * Thu Dec 25 2014 luigiwalser <luigiwalser> 2.10-5.mga5 + Revision: 805915 - bump release to properly obsolete jline2 * Wed Oct 15 2014 umeabot <umeabot> 2.10-3.mga5 + Revision: 746554 - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild * Sun Jun 15 2014 dmorgan <dmorgan> 2.10-1.mga5 + Revision: 636423 - New version * Tue Oct 22 2013 umeabot <umeabot> 1.0-2.mga4 + Revision: 545448 - Mageia 4 Mass Rebuild * Wed Oct 16 2013 dmorgan <dmorgan> 1.0-1.mga4 + Revision: 501278 - New version * Wed Jan 16 2013 dmorgan <dmorgan> 0.9.94-5.mga3 + Revision: 388706 - Revert to version 0.9.94 - New version 1.0 + umeabot <umeabot> - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Apr 28 2011 dmorgan <dmorgan> 0.9.94-4.mga1 + Revision: 92542 - Rebuild after bootstrapping - imported package jline * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-2 - Remove pre-built Windows-only binary artifacts. - Demo package was defined but never built for some reason. - Don't also package jar in the javadoc package! - Drop versioned java and javadocs. * Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-1 - Remove bundled jars in %%prep phase. - Tidy up spec file, fix some rpmlint warnings. - Add pom and depmaps. * Mon Mar 8 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:0.9.94-0.6 - Added missing Requires: jpackage-utils (%%{_javadir} and %%{_javadocdir}) * Tue Jan 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.9.94-0.5 - Fix BRs. - Drop gcj_support. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:9.94-0.2 - drop repotag * Mon Mar 24 2008 Matt Wringe <mwringe@redhat.com> - 0:9.94-0jpp.1 - Update to 0.9.94 (BZ #436204) * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:0.9.9-2jpp.1 - Autorebuild for GCC 4.3 * Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:0.9.9-1jpp.1 - Add option to build with ant. - Fix various rpmlint issues - Specify proper license * Thu May 04 2006 Alexander Kurtakov <akurtkov at gmail.com> - 0:0.9.9-1jpp - Upgrade to 0.9.9 * Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-1jpp - Upgrade to 0.9.5 - First JPP-1.7 release * Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.9.1-1jpp - Upgrade to 0.9.1 - Disable attempt to include external jars * Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.8.1-3jpp - Changes to use locally installed DTDs - Do not try and access sun site for linking javadoc * Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.8.1-2jpp - Rebuild with ant-1.6.2 * Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:0.8.1-1jpp - release