650119
%global base_name       cli
650119
%global short_name      commons-%{base_name}
650119
650119
Name:             apache-%{short_name}
650119
Version:          1.2
650119
Release:          13%{?dist}
650119
Summary:          Command Line Interface Library for Java
650119
Group:            Development/Libraries
650119
License:          ASL 2.0
650119
URL:              http://commons.apache.org/%{base_name}/
650119
Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
650119
BuildArch:        noarch
650119
650119
BuildRequires:    java-devel >= 1:1.6.0
650119
BuildRequires:    jpackage-utils
650119
BuildRequires:    maven-local
650119
BuildRequires:    apache-commons-parent >= 26-7
650119
650119
# This should go away with F-17
650119
Provides:         jakarta-%{short_name} = 0:%{version}-%{release}
650119
Obsoletes:        jakarta-%{short_name} < 0:1.1-6
650119
650119
%description
650119
The CLI library provides a simple and easy to use API for working with the 
650119
command line arguments and options.
650119
650119
%package javadoc
650119
Summary:          Javadoc for %{name}
650119
Group:            Documentation
650119
# This should go away with F-17
650119
Obsoletes:        jakarta-%{short_name}-javadoc < 0:1.1-6
650119
650119
%description javadoc
650119
This package contains the API documentation for %{name}.
650119
650119
%prep
650119
%setup -q -n %{short_name}-%{version}-src
650119
650119
# Compatibility links
650119
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
650119
%mvn_file :commons-cli %{short_name} %{name}
650119
650119
%build
650119
%mvn_build
650119
650119
%install
650119
%mvn_install
650119
650119
%files -f .mfiles
650119
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
650119
650119
%files javadoc -f .mfiles-javadoc
650119
%doc LICENSE.txt NOTICE.txt
650119
650119
650119
%changelog
650119
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2-13
650119
- Mass rebuild 2013-12-27
650119
650119
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-12
650119
- Add BuildRequires on apache-commons-parent >= 26-7
650119
650119
* Thu Aug 22 2013 Michal Srb <msrb@redhat.com> - 1.2-11
650119
- Migrate away from mvn-rpmbuild (Resolves: #997473)
650119
650119
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10
650119
- Rebuild to regenerate API documentation
650119
- Resolves: CVE-2013-1571
650119
650119
* Tue Feb 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-9
650119
- Add missing maven-local BuildRequires
650119
650119
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
650119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
650119
650119
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
650119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
650119
650119
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
650119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
650119
650119
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.2-5
650119
- Build with maven 3.
650119
- Adapt to current guidelines.
650119
650119
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
650119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
650119
650119
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.2-3
650119
- Removed maven* BRs in favour of apache-commons-parent
650119
- Added deprecated groupId to depmap for compatibility reasons
650119
650119
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.2-2
650119
- Removed Epoch
650119
650119
* Sun Oct 3 2010 Chris Spike <chris.spike@arcor.de> 1.2-1
650119
- Rename and rebase from jakarta-commons-cli