470aa9
%bcond_with bootstrap
470aa9
470aa9
Name:           apache-commons-lang3
470aa9
Version:        3.12.0
17c40e
Release:        6%{?dist}
470aa9
Summary:        Provides a host of helper utilities for the java.lang API
470aa9
License:        ASL 2.0
470aa9
URL:            https://commons.apache.org/lang
470aa9
BuildArch:      noarch
470aa9
470aa9
Source0:        https://archive.apache.org/dist/commons/lang/source/commons-lang3-%{version}-src.tar.gz
470aa9
Patch1:         0001-Remove-test-dependency-on-JUnit-Pioneer.patch
470aa9
470aa9
BuildRequires:  maven-local-openjdk8
470aa9
%if %{with bootstrap}
470aa9
BuildRequires:  javapackages-bootstrap
470aa9
%else
470aa9
BuildRequires:  mvn(biz.aQute.bnd:biz.aQute.bndlib)
470aa9
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
470aa9
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
470aa9
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
470aa9
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
470aa9
BuildRequires:  mvn(org.easymock:easymock)
470aa9
BuildRequires:  mvn(org.hamcrest:hamcrest)
470aa9
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter)
470aa9
%endif
470aa9
470aa9
%description
470aa9
The standard Java libraries fail to provide enough methods for
470aa9
manipulation of its core classes. The Commons Lang Component provides
470aa9
these extra methods.
470aa9
The Commons Lang Component provides a host of helper utilities for the
470aa9
java.lang API, notably String manipulation methods, basic numerical
470aa9
methods, object reflection, creation and serialization, and System
470aa9
properties. Additionally it contains an inheritable enum type, an
470aa9
exception structure that supports multiple types of nested-Exceptions
470aa9
and a series of utilities dedicated to help with building methods, such
470aa9
as hashCode, toString and equals.
470aa9
470aa9
With version of commons-lang 3.x, developers decided to change API and
470aa9
therefore created differently named artifact and jar files. This is
470aa9
the new version, while apache-commons-lang is the compatibility
470aa9
package.
470aa9
470aa9
%{?javadoc_package}
470aa9
470aa9
%prep
470aa9
%setup -n commons-lang3-%{version}-src
470aa9
470aa9
%patch1 -p1
470aa9
470aa9
%pom_remove_plugin :maven-javadoc-plugin
470aa9
%pom_remove_dep org.openjdk.jmh:jmh-core
470aa9
%pom_remove_dep org.openjdk.jmh:jmh-generator-annprocess
470aa9
%pom_remove_dep :junit-bom
470aa9
470aa9
%mvn_file : %{name} commons-lang3
470aa9
470aa9
# testParseSync() test fails on ARM and PPC64LE for unknown reason
470aa9
sed -i 's/\s*public void testParseSync().*/@org.junit.jupiter.api.Disabled\n&/' \
470aa9
    src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
470aa9
470aa9
# non-deterministic tests fail randomly
470aa9
rm src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
470aa9
470aa9
# Missing dependencies
470aa9
rm src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java
470aa9
470aa9
# Remove limits and Java 11 options
470aa9
sed -i '/<argLine>/d' pom.xml
470aa9
470aa9
%build
470aa9
# See "-DcommonsLang3Version" in maven-surefire for the tested version
470aa9
%mvn_build
470aa9
470aa9
%install
470aa9
%mvn_install
470aa9
470aa9
%files -f .mfiles
470aa9
%license LICENSE.txt NOTICE.txt
470aa9
%doc RELEASE-NOTES.txt
470aa9
470aa9
%changelog
17c40e
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.0-6
17c40e
- Rebuild to regenerate auto-requires
17c40e
470aa9
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.12.0-5
470aa9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
470aa9
  Related: rhbz#1991688
470aa9
470aa9
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.0-4
470aa9
- Rebuild to workaround DistroBaker issue
470aa9
470aa9
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.0-3
470aa9
- Bootstrap Maven for CentOS Stream 9
470aa9
470aa9
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.0-2
470aa9
- Bootstrap build
470aa9
- Non-bootstrap build
470aa9
470aa9
* Wed Mar 10 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12.0-1
470aa9
- Update to upstream version 3.12.0
470aa9
470aa9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
470aa9
470aa9
* Wed Aug 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.11-1
470aa9
- Update to version 3.11.
470aa9
- Fixes RHBZ#1699692
470aa9
470aa9
* Tue Aug 04 2020 Marian Koncek <mkoncek@redhat.com> - 3.11-1
470aa9
- Update to upstream version 3.11
470aa9
470aa9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-7
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
470aa9
470aa9
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.8.1-6
470aa9
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
470aa9
470aa9
* Wed Apr 15 2020 Marian Koncek <mkoncek@redhat.com> - 3.10-1
470aa9
- Update to upstream version 3.10
470aa9
470aa9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-5
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
470aa9
470aa9
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.9-4
470aa9
- Build with OpenJDK 8
470aa9
470aa9
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.9-3
470aa9
- Mass rebuild for javapackages-tools 201902
470aa9
470aa9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-4
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
470aa9
470aa9
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.9-2
470aa9
- Mass rebuild for javapackages-tools 201901
470aa9
470aa9
* Mon May 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.9-1
470aa9
- Update to upstream version 3.9
470aa9
470aa9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-3
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
470aa9
470aa9
* Fri Oct 12 2018 Marian Koncek <mkoncek@redhat.com> - 3.8.1-2
470aa9
- Fix incorrect OSGi metadata
470aa9
- Resolves: rhbz#1636556
470aa9
470aa9
* Mon Oct 01 2018 Marian Koncek <mkoncek@redhat.com> - 3.8.1-1
470aa9
- Update to upstream version 3.8.1
470aa9
- Resolves: rhbz#1619243
470aa9
470aa9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-4
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
470aa9
470aa9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-3
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
470aa9
470aa9
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.7-2
470aa9
- Cleanup spec file
470aa9
470aa9
* Thu Nov 09 2017 Michael Simacek <msimacek@redhat.com> - 3.7-1
470aa9
- Update to upstream version 3.7
470aa9
470aa9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-3
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
470aa9
470aa9
* Mon Jul 10 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.6-2
470aa9
- Conditionalize BR on jmh
470aa9
470aa9
* Mon Jul 03 2017 Michael Simacek <msimacek@redhat.com> - 3.6-1
470aa9
- Update to upstream version 3.6
470aa9
470aa9
* Tue Mar 14 2017 Michael Simacek <msimacek@redhat.com> - 3.5-3
470aa9
- Disable non-deterministic test
470aa9
470aa9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
470aa9
470aa9
* Wed Oct 19 2016 Michael Simacek <msimacek@redhat.com> - 3.5-1
470aa9
- Update to upstream version 3.5
470aa9
470aa9
* Wed Mar 09 2016 Michael Simacek <msimacek@redhat.com> - 3.4-5
470aa9
- Fix unapplied patch
470aa9
470aa9
* Mon Feb 15 2016 Michael Simacek <msimacek@redhat.com> - 3.4-4
470aa9
- Fix parsing of ISO dates with UTC TZ
470aa9
470aa9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-3
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
470aa9
470aa9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
470aa9
470aa9
* Tue May 12 2015 Alexander Kurtakov <akurtako@redhat.com> 3.4-1
470aa9
- Update to upstream 3.4.
470aa9
470aa9
* Wed Jul 30 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.2-3
470aa9
- Fix build-requires on apache-commons-parent
470aa9
470aa9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
470aa9
470aa9
* Mon Apr 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.2-1
470aa9
- Update to upstream version 3.3.2
470aa9
470aa9
* Thu Mar 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-2
470aa9
- Disable test failing on PPC64LE
470aa9
470aa9
* Thu Mar 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-1
470aa9
- Update to upstream version 3.3.1
470aa9
470aa9
* Tue Mar 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3-1
470aa9
- Update to upstream version 3.3
470aa9
470aa9
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.1-2
470aa9
- Use Requires: java-headless rebuild (#1067528)
470aa9
470aa9
* Thu Jan  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-1
470aa9
- Update to upstream version 3.2.1
470aa9
470aa9
* Thu Jan  2 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2-1
470aa9
- Update to upstream version 3.2
470aa9
470aa9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-7
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
470aa9
470aa9
* Wed May 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-6
470aa9
- Build with xmvn
470aa9
- Update to current packaging guidelines
470aa9
470aa9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-5
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
470aa9
470aa9
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.1-4
470aa9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
470aa9
- Replace maven BuildRequires with maven-local
470aa9
470aa9
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1-3
470aa9
- Make easymock3 dependency conditional for Fedora
470aa9
470aa9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
470aa9
470aa9
* Wed May 16 2012 gil cattaneo <puntogil@libero.it> - 3.1-1
470aa9
- update to 3.1
470aa9
470aa9
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
470aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
470aa9
470aa9
* Thu Nov  3 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.1-1
470aa9
- Initial version of the package