d9d9d9
%bcond_with bootstrap
d9d9d9
d9d9d9
Name:           apache-commons-cli
d9d9d9
Version:        1.4
d9d9d9
Release:        16%{?dist}
d9d9d9
Summary:        Command Line Interface Library for Java
d9d9d9
License:        ASL 2.0
d9d9d9
URL:            http://commons.apache.org/cli/
d9d9d9
BuildArch:      noarch
d9d9d9
d9d9d9
Source0:        http://www.apache.org/dist/commons/cli/source/commons-cli-%{version}-src.tar.gz
d9d9d9
d9d9d9
# workaround for https://issues.apache.org/jira/browse/CLI-253
d9d9d9
Patch0:         CLI-253-workaround.patch
d9d9d9
d9d9d9
BuildRequires:  maven-local-openjdk8
d9d9d9
%if %{with bootstrap}
d9d9d9
BuildRequires:  javapackages-bootstrap
d9d9d9
%else
d9d9d9
BuildRequires:  mvn(junit:junit)
d9d9d9
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
d9d9d9
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
d9d9d9
%endif
d9d9d9
d9d9d9
%description
d9d9d9
The CLI library provides a simple and easy to use API for working with the
d9d9d9
command line arguments and options.
d9d9d9
d9d9d9
%{?javadoc_package}
d9d9d9
d9d9d9
%prep
d9d9d9
%autosetup -p1 -n commons-cli-%{version}-src
d9d9d9
d9d9d9
# Compatibility links
d9d9d9
%mvn_alias : org.apache.commons:commons-cli
d9d9d9
%mvn_file : commons-cli %{name}
d9d9d9
d9d9d9
%build
d9d9d9
%mvn_build -- -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6
d9d9d9
d9d9d9
%install
d9d9d9
%mvn_install
d9d9d9
d9d9d9
%files -f .mfiles
d9d9d9
%license LICENSE.txt NOTICE.txt
d9d9d9
%doc README.md RELEASE-NOTES.txt
d9d9d9
d9d9d9
%changelog
d9d9d9
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.4-16
d9d9d9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d9d9d9
  Related: rhbz#1991688
d9d9d9
d9d9d9
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-15
d9d9d9
- Rebuild to workaround DistroBaker issue
d9d9d9
d9d9d9
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-14
d9d9d9
- Bootstrap Maven for CentOS Stream 9
d9d9d9
d9d9d9
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-13
d9d9d9
- Bootstrap build
d9d9d9
- Non-bootstrap build
d9d9d9
d9d9d9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-12
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d9d9d9
d9d9d9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-11
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d9d9d9
d9d9d9
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.4-10
d9d9d9
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
d9d9d9
d9d9d9
* Wed Jun 24 2020 Alexander Kurtakov <akurtako@redhat.com> 1.4-9
d9d9d9
- Fix build with Java 11
d9d9d9
d9d9d9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d9d9d9
d9d9d9
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-7
d9d9d9
- Build with OpenJDK 8
d9d9d9
d9d9d9
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-6
d9d9d9
- Mass rebuild for javapackages-tools 201902
d9d9d9
d9d9d9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d9d9d9
d9d9d9
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-5
d9d9d9
- Mass rebuild for javapackages-tools 201901
d9d9d9
d9d9d9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-6
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d9d9d9
d9d9d9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-5
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d9d9d9
d9d9d9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d9d9d9
d9d9d9
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-3
d9d9d9
- Cleanup spec file
d9d9d9
d9d9d9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d9d9d9
d9d9d9
* Tue Apr 11 2017 Michael Simacek <msimacek@redhat.com> - 1.4-1
d9d9d9
- Update to upstream version 1.4
d9d9d9
d9d9d9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d9d9d9
d9d9d9
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 1.3.1-5
d9d9d9
- Remove BR on jacoco
d9d9d9
d9d9d9
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.1-4
d9d9d9
- Regenerate build-requires
d9d9d9
d9d9d9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d9d9d9
d9d9d9
* Tue Jun 23 2015 Michal Srb <msrb@redhat.com> - 1.3.1-2
d9d9d9
- Add workaround for CLI-253
d9d9d9
d9d9d9
* Wed Jun 17 2015 Michal Srb <msrb@redhat.com> - 1.3.1-1
d9d9d9
- Update to upstream version 1.3.1
d9d9d9
d9d9d9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d9d9d9
d9d9d9
* Wed Jun  3 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-1
d9d9d9
- Update to upstream version 1.3
d9d9d9
d9d9d9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-13
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d9d9d9
d9d9d9
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-12
d9d9d9
- Use Requires: java-headless rebuild (#1067528)
d9d9d9
d9d9d9
* Mon Aug 05 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-11
d9d9d9
- Update for newer guidelines
d9d9d9
- Drop ancient obsoletes/provides on old jakarta name
d9d9d9
d9d9d9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d9d9d9
d9d9d9
* Tue Feb 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-9
d9d9d9
- Add missing maven-local BuildRequires
d9d9d9
d9d9d9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d9d9d9
d9d9d9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d9d9d9
d9d9d9
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d9d9d9
d9d9d9
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.2-5
d9d9d9
- Build with maven 3.
d9d9d9
- Adapt to current guidelines.
d9d9d9
d9d9d9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
d9d9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d9d9d9
d9d9d9
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.2-3
d9d9d9
- Removed maven* BRs in favour of apache-commons-parent
d9d9d9
- Added deprecated groupId to depmap for compatibility reasons
d9d9d9
d9d9d9
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.2-2
d9d9d9
- Removed Epoch
d9d9d9
d9d9d9
* Sun Oct 3 2010 Chris Spike <chris.spike@arcor.de> 1.2-1
d9d9d9
- Rename and rebase from jakarta-commons-cli