From 17c8365cbe5815656e335a48db06c173ead810c6 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:55:47 +0000 Subject: import rh-maven33-apache-commons-lang3-3.4-2.2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..deeb52f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/commons-lang3-3.4-src.tar.gz diff --git a/.rh-maven33-apache-commons-lang3.metadata b/.rh-maven33-apache-commons-lang3.metadata new file mode 100644 index 0000000..ecbe442 --- /dev/null +++ b/.rh-maven33-apache-commons-lang3.metadata @@ -0,0 +1 @@ +85047db1d5aca3179dd994bb16e619c653bea3ad SOURCES/commons-lang3-3.4-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/fix-ppc64le-test-failure.patch b/SOURCES/fix-ppc64le-test-failure.patch new file mode 100644 index 0000000..f197f54 --- /dev/null +++ b/SOURCES/fix-ppc64le-test-failure.patch @@ -0,0 +1,10 @@ +--- src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java~ 2014-03-15 13:47:49.000000000 +0100 ++++ src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java 2014-03-20 17:16:47.817917653 +0100 +@@ -259,7 +259,6 @@ + FastDateFormat.getInstance(pattern); + } + +- @Test + public void testParseSync() throws InterruptedException { + final String pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS Z"; + final FastDateFormat formatter= FastDateFormat.getInstance(pattern); diff --git a/SPECS/apache-commons-lang3.spec b/SPECS/apache-commons-lang3.spec new file mode 100644 index 0000000..1a7781f --- /dev/null +++ b/SPECS/apache-commons-lang3.spec @@ -0,0 +1,145 @@ +%global pkg_name apache-commons-lang3 +%{?scl:%scl_package %{pkg_name}} +%{?maven_find_provides_and_requires} + +%global base_name lang +%global short_name commons-%{base_name}3 + +Name: %{?scl_prefix}%{pkg_name} +Version: 3.4 +Release: 2.2%{?dist} +Summary: Provides a host of helper utilities for the java.lang API +License: ASL 2.0 +URL: http://commons.apache.org/%{base_name} +Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +BuildArch: noarch + +# testParseSync() test fails on ARM and PPC64LE for unknown reason +Patch0: fix-ppc64le-test-failure.patch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_java_common}mvn(commons-io:commons-io) +BuildRequires: %{?scl_prefix}mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-assembly-plugin) +BuildRequires: %{?scl_prefix_java_common}mvn(org.hamcrest:hamcrest-all) +%if 0%{?rhel} <= 0 +BuildRequires: %{?scl_prefix}mvn(org.easymock:easymock) +%endif + +%description +The standard Java libraries fail to provide enough methods for +manipulation of its core classes. The Commons Lang Component provides +these extra methods. +The Commons Lang Component provides a host of helper utilities for the +java.lang API, notably String manipulation methods, basic numerical +methods, object reflection, creation and serialization, and System +properties. Additionally it contains an inheritable enum type, an +exception structure that supports multiple types of nested-Exceptions +and a series of utilities dedicated to help with building methods, such +as hashCode, toString and equals. + +With version of commons-lang 3.x, developers decided to change API and +therefore created differently named artifact and jar files. This is +the new version, while apache-commons-lang is the compatibility +package. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +%{summary}. + +%prep +%setup -q -n %{short_name}-%{version}-src +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%patch0 +%mvn_file : %{pkg_name} %{short_name} +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%mvn_build %{?rhel:-f} +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%doc LICENSE.txt RELEASE-NOTES.txt NOTICE.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + +%changelog +* Mon Feb 08 2016 Michal Srb - 3.4-2.2 +- Fix BR on maven-local & co. + +* Mon Jan 18 2016 Michal Srb - 3.4-2.1 +- Prepare for SCL build + +* Wed Jun 17 2015 Fedora Release Engineering - 3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 12 2015 Alexander Kurtakov 3.4-1 +- Update to upstream 3.4. + +* Wed Jul 30 2014 Mikolaj Izdebski - 3.3.2-3 +- Fix build-requires on apache-commons-parent + +* Sat Jun 07 2014 Fedora Release Engineering - 3.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Apr 14 2014 Mikolaj Izdebski - 3.3.2-1 +- Update to upstream version 3.3.2 + +* Thu Mar 20 2014 Mikolaj Izdebski - 3.3.1-2 +- Disable test failing on PPC64LE + +* Thu Mar 20 2014 Mikolaj Izdebski - 3.3.1-1 +- Update to upstream version 3.3.1 + +* Tue Mar 11 2014 Mikolaj Izdebski - 3.3-1 +- Update to upstream version 3.3 + +* Tue Mar 04 2014 Stanislav Ochotnicky - 3.2.1-2 +- Use Requires: java-headless rebuild (#1067528) + +* Thu Jan 9 2014 Mikolaj Izdebski - 3.2.1-1 +- Update to upstream version 3.2.1 + +* Thu Jan 2 2014 Mikolaj Izdebski - 3.2-1 +- Update to upstream version 3.2 + +* Sat Aug 03 2013 Fedora Release Engineering - 3.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed May 29 2013 Mikolaj Izdebski - 3.1-6 +- Build with xmvn +- Update to current packaging guidelines + +* Wed Feb 13 2013 Fedora Release Engineering - 3.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 3.1-4 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Mon Aug 27 2012 Stanislav Ochotnicky - 3.1-3 +- Make easymock3 dependency conditional for Fedora + +* Wed Jul 18 2012 Fedora Release Engineering - 3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 16 2012 gil cattaneo - 3.1-1 +- update to 3.1 + +* Thu Jan 12 2012 Fedora Release Engineering - 3.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 3 2011 Stanislav Ochotnicky - 3.0.1-1 +- Initial version of the package