Mat Booth a8e8d6a
%global short_name      commons-cli
325e9ed
325e9ed
Name:             apache-%{short_name}
cf155f6
Version:          1.3.1
b85deac
Release:          2%{?dist}
325e9ed
Summary:          Command Line Interface Library for Java
325e9ed
Group:            Development/Libraries
325e9ed
License:          ASL 2.0
Mat Booth a8e8d6a
URL:              http://commons.apache.org/cli/
Mat Booth a8e8d6a
Source0:          http://www.apache.org/dist/commons/cli/source/%{short_name}-%{version}-src.tar.gz
b85deac
# workaround for https://issues.apache.org/jira/browse/CLI-253
b85deac
Patch0:           CLI-253-workaround.patch
325e9ed
BuildArch:        noarch
325e9ed
325e9ed
BuildRequires:    java-devel >= 1:1.6.0
325e9ed
BuildRequires:    jpackage-utils
Mat Booth 31f9aa1
BuildRequires:    maven-local
0344063
BuildRequires:    jacoco-maven-plugin
325e9ed
Stanislav Ochotnicky 4da6dc4
Requires:         java-headless >= 1:1.6.0
325e9ed
Requires:         jpackage-utils
325e9ed
325e9ed
%description
325e9ed
The CLI library provides a simple and easy to use API for working with the 
325e9ed
command line arguments and options.
325e9ed
325e9ed
%package javadoc
325e9ed
Summary:          Javadoc for %{name}
325e9ed
Group:            Documentation
325e9ed
Requires:         jpackage-utils
325e9ed
325e9ed
%description javadoc
325e9ed
This package contains the API documentation for %{name}.
325e9ed
325e9ed
%prep
325e9ed
%setup -q -n %{short_name}-%{version}-src
325e9ed
b85deac
%patch0 -p1
b85deac
Mat Booth a8e8d6a
# Compatibility links
Mat Booth a8e8d6a
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
Mat Booth a8e8d6a
%mvn_file :commons-cli %{short_name} %{name}
Mat Booth a8e8d6a
325e9ed
%build
Mat Booth a8e8d6a
%mvn_build
325e9ed
325e9ed
%install
Mat Booth a8e8d6a
%mvn_install
f0f9749
Mat Booth a8e8d6a
%files -f .mfiles
0344063
%doc LICENSE.txt NOTICE.txt README.md RELEASE-NOTES.txt
325e9ed
Mat Booth a8e8d6a
%files javadoc -f .mfiles-javadoc
Mat Booth a8e8d6a
%doc LICENSE.txt NOTICE.txt
325e9ed
325e9ed
%changelog
b85deac
* Tue Jun 23 2015 Michal Srb <msrb@redhat.com> - 1.3.1-2
b85deac
- Add workaround for CLI-253
b85deac
cf155f6
* Wed Jun 17 2015 Michal Srb <msrb@redhat.com> - 1.3.1-1
cf155f6
- Update to upstream version 1.3.1
cf155f6
da5c574
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
da5c574
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
da5c574
0344063
* Wed Jun  3 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-1
0344063
- Update to upstream version 1.3
0344063
8432692
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-13
8432692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8432692
Stanislav Ochotnicky 4da6dc4
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-12
Stanislav Ochotnicky 4da6dc4
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 4da6dc4
Mat Booth a8e8d6a
* Mon Aug 05 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-11
Mat Booth a8e8d6a
- Update for newer guidelines
Mat Booth a8e8d6a
- Drop ancient obsoletes/provides on old jakarta name
Mat Booth a8e8d6a
f7ced6b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10
f7ced6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f7ced6b
Mat Booth 31f9aa1
* Tue Feb 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-9
Mat Booth 31f9aa1
- Add missing maven-local BuildRequires
Mat Booth 31f9aa1
e51c233
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
e51c233
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e51c233
9ea3afa
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
9ea3afa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9ea3afa
01c7fee
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
01c7fee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
01c7fee
15512b5
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.2-5
15512b5
- Build with maven 3.
15512b5
- Adapt to current guidelines.
15512b5
59f2904
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
59f2904
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
59f2904
f0f9749
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.2-3
f0f9749
- Removed maven* BRs in favour of apache-commons-parent
f0f9749
- Added deprecated groupId to depmap for compatibility reasons
f0f9749
325e9ed
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.2-2
325e9ed
- Removed Epoch
325e9ed
325e9ed
* Sun Oct 3 2010 Chris Spike <chris.spike@arcor.de> 1.2-1
325e9ed
- Rename and rebase from jakarta-commons-cli