Blame SPECS/jline2.spec

e76d2d
%{?scl:%scl_package jline2}
e76d2d
%{!?scl:%global pkg_name %{name}}
e76d2d
e76d2d
# Exclude generation of osgi() style provides, since they are not
e76d2d
# SCL-namespaced and may conflict with base RHEL packages.
e76d2d
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1045447
e76d2d
%global __provides_exclude ^osgi(.*)$
e76d2d
e76d2d
Name:             %{?scl_prefix}jline2
e76d2d
Version:          2.10
e76d2d
Release:          13%{?dist}
e76d2d
Summary:          JLine is a Java library for handling console input
e76d2d
Group:            Development/Libraries
e76d2d
License:          BSD and ASL 2.0
e76d2d
URL:              https://github.com/jline/jline2
e76d2d
e76d2d
# git clone git://github.com/jline/jline2.git
e76d2d
# cd jline2/ && git archive --format=tar --prefix=jline-2.10/ jline-2.10 | xz > jline-2.10.tar.xz
e76d2d
Source0:          jline-%{version}.tar.xz
e76d2d
e76d2d
BuildArch:        noarch
e76d2d
e76d2d
BuildRequires:    jpackage-utils
e76d2d
BuildRequires:    java-devel
e76d2d
BuildRequires:    maven-local
e76d2d
BuildRequires:    maven-compiler-plugin
e76d2d
BuildRequires:    maven-jar-plugin
e76d2d
BuildRequires:    maven-surefire-plugin
e76d2d
BuildRequires:    maven-install-plugin
e76d2d
BuildRequires:    junit4
e76d2d
BuildRequires:    jansi
e76d2d
BuildRequires:    fusesource-pom
e76d2d
BuildRequires:    maven-surefire-provider-junit4
e76d2d
e76d2d
Requires:         jpackage-utils
e76d2d
Requires:         java
e76d2d
Requires:         jansi
e76d2d
e76d2d
%{?scl:Requires: %scl_runtime}
e76d2d
e76d2d
%description
e76d2d
JLine is a Java library for handling console input. It is similar
e76d2d
in functionality to BSD editline and GNU readline. People familiar
e76d2d
with the readline/editline capabilities for modern shells (such as
e76d2d
bash and tcsh) will find most of the command editing features of
e76d2d
JLine to be familiar. 
e76d2d
e76d2d
%package javadoc
e76d2d
Summary:          Javadocs for %{name}
e76d2d
Group:            Documentation
e76d2d
Requires:         jpackage-utils
e76d2d
e76d2d
%description javadoc
e76d2d
This package contains the API documentation for %{name}.
e76d2d
e76d2d
%prep
e76d2d
%{?scl:scl enable %{scl} - << "EOF"}
e76d2d
%setup -q -n jline-%{version}
e76d2d
e76d2d
# Remove maven-shade-plugin usage
e76d2d
%pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
e76d2d
# Remove animal sniffer plugin in order to reduce deps
e76d2d
%pom_remove_plugin "org.codehaus.mojo:animal-sniffer-maven-plugin"
e76d2d
e76d2d
# Remove unavailable and unneeded deps
e76d2d
%pom_xpath_remove "pom:build/pom:extensions"
e76d2d
%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId = 'maven-site-plugin']"
e76d2d
e76d2d
# Do not import non-existing internal package
e76d2d
%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"
e76d2d
%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.internal</Import-Package>"
e76d2d
e76d2d
# Let maven bundle plugin figure out the exports.
e76d2d
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Export-Package"
e76d2d
%{?scl:EOF}
e76d2d
e76d2d
%build
e76d2d
%{?scl:scl enable %{scl} - << "EOF"}
e76d2d
%mvn_build
e76d2d
%{?scl:EOF}
e76d2d
e76d2d
%install
e76d2d
%{?scl:scl enable %{scl} - << "EOF"}
e76d2d
%mvn_install
e76d2d
%{?scl:EOF}
e76d2d
e76d2d
%files -f .mfiles
e76d2d
%doc CHANGELOG.md README.md LICENSE.txt
e76d2d
%dir %{_javadir}/%{name}
e76d2d
e76d2d
%files javadoc -f .mfiles-javadoc
e76d2d
%doc LICENSE.txt
e76d2d
e76d2d
%changelog
e76d2d
* Mon Jan 27 2014 Severin Gehwolf <sgehwolf@redhat.com> - 2.10-13
e76d2d
- Own scl-ized jline2 directory in javadir.
e76d2d
- Resolves: RHBZ#1057169
e76d2d
e76d2d
* Fri Dec 20 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-12
e76d2d
- Don't generate osgi() style provides.
e76d2d
- Resolves: RHBZ#1045447.
e76d2d
e76d2d
* Wed Nov 27 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-11
e76d2d
- Properly enable SCL.
e76d2d
e76d2d
* Wed Nov 06 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-10
e76d2d
- Use xmvn to install to proper SCL-ized location.
e76d2d
e76d2d
* Tue Sep 24 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-9
e76d2d
- Bump release for rebuild.
e76d2d
e76d2d
* Wed Aug 28 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-8
e76d2d
- SCL-ize package.
e76d2d
e76d2d
* Fri Apr 12 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-7
e76d2d
- Remove unneeded animal-sniffer BR.
e76d2d
e76d2d
* Tue Mar 12 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-6
e76d2d
- Fix OSGi metadata. Don't export packages which aren't in this
e76d2d
  package. Fixes RHBZ#920756.
e76d2d
e76d2d
* Mon Mar 11 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.10-5
e76d2d
- Provide %{_javadir}/%{name}.jar symlink. Fix RHBZ#919640.
e76d2d
e76d2d
* Thu Feb 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10-4
e76d2d
- Install versioned JAR and POM
e76d2d
- Add missing BR: animal-sniffer
e76d2d
- Resolves: rhbz#911559
e76d2d
e76d2d
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.10-3
e76d2d
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
e76d2d
- Replace maven BuildRequires with maven-local
e76d2d
e76d2d
* Fri Feb 01 2013 Marek Goldmann <mgoldman@redhat.com> - 2.10-2
e76d2d
- Do not import non-existing org.fusesource.jansi.internal package
e76d2d
e76d2d
* Fri Feb 01 2013 Marek Goldmann <mgoldman@redhat.com> - 2.10-1
e76d2d
- Upstream release 2.10
e76d2d
- Removed patches, using pom macros now
e76d2d
e76d2d
* Fri Oct 19 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.5-7
e76d2d
- Fix OSGi Import-Package header so as to not import non existing
e76d2d
  org.fusesource.jansi.internal package.
e76d2d
e76d2d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-6
e76d2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e76d2d
e76d2d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-5
e76d2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e76d2d
e76d2d
* Tue Nov 15 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-4
e76d2d
- jline.console.ConsoleReader.back should be protected instead of private [rhbz#751208]
e76d2d
e76d2d
* Wed Sep 21 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-3
e76d2d
- Updated license
e76d2d
- Removed unnecessary add_to_maven_depmap
e76d2d
e76d2d
* Thu Sep 08 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-2
e76d2d
- Cleaned spec
e76d2d
e76d2d
* Tue May 31 2011 Marek Goldmann <mgoldman@redhat.com> 2.5-1
e76d2d
- Initial packaging