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