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