Blame SPECS/jline.spec

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