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