27ceb4
%global base_name       lang
27ceb4
%global short_name      commons-%{base_name}3
27ceb4
27ceb4
Name:           apache-%{short_name}
27ceb4
Version:        3.1
27ceb4
Release:        8%{?dist}
27ceb4
Summary:        Provides a host of helper utilities for the java.lang API
27ceb4
License:        ASL 2.0
27ceb4
URL:            http://commons.apache.org/%{base_name}
27ceb4
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
27ceb4
BuildArch:      noarch
27ceb4
27ceb4
BuildRequires:  maven-local
27ceb4
BuildRequires:  mvn(commons-io:commons-io)
27ceb4
BuildRequires:  mvn(org.apache.commons:commons-parent) >= 26-7
27ceb4
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
27ceb4
%if 0%{?rhel} <= 0
27ceb4
BuildRequires:  mvn(org.easymock:easymock)
27ceb4
%endif
27ceb4
27ceb4
%description
27ceb4
The standard Java libraries fail to provide enough methods for
27ceb4
manipulation of its core classes. The Commons Lang Component provides
27ceb4
these extra methods.
27ceb4
The Commons Lang Component provides a host of helper utilities for the
27ceb4
java.lang API, notably String manipulation methods, basic numerical
27ceb4
methods, object reflection, creation and serialization, and System
27ceb4
properties. Additionally it contains an inheritable enum type, an
27ceb4
exception structure that supports multiple types of nested-Exceptions
27ceb4
and a series of utilities dedicated to help with building methods, such
27ceb4
as hashCode, toString and equals.
27ceb4
27ceb4
With version of commons-lang 3.x, developers decided to change API and
27ceb4
therefore created differently named artifact and jar files. This is
27ceb4
the new version, while apache-commons-lang is the compatibility
27ceb4
package.
27ceb4
27ceb4
%package        javadoc
27ceb4
Summary:        API documentation for %{name}
27ceb4
27ceb4
%description    javadoc
27ceb4
%{summary}.
27ceb4
27ceb4
%prep
27ceb4
%setup -q -n %{short_name}-%{version}-src
27ceb4
%mvn_file : %{name} %{short_name}
27ceb4
27ceb4
%build
27ceb4
%mvn_build %{?rhel:-f}
27ceb4
27ceb4
%install
27ceb4
%mvn_install
27ceb4
27ceb4
%files -f .mfiles
27ceb4
%doc LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
27ceb4
27ceb4
%files javadoc -f .mfiles-javadoc
27ceb4
%doc LICENSE.txt NOTICE.txt
27ceb4
27ceb4
%changelog
27ceb4
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-8
27ceb4
- Add BuildRequires on apache-commons-parent >= 26-7
27ceb4
27ceb4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-7
27ceb4
- Rebuild to regenerate API documentation
27ceb4
- Resolves: CVE-2013-1571
27ceb4
27ceb4
* Wed May 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-6
27ceb4
- Build with xmvn
27ceb4
- Update to current packaging guidelines
27ceb4
27ceb4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-5
27ceb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
27ceb4
27ceb4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.1-4
27ceb4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
27ceb4
- Replace maven BuildRequires with maven-local
27ceb4
27ceb4
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1-3
27ceb4
- Make easymock3 dependency conditional for Fedora
27ceb4
27ceb4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
27ceb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
27ceb4
27ceb4
* Wed May 16 2012 gil cattaneo <puntogil@libero.it> - 3.1-1
27ceb4
- update to 3.1
27ceb4
27ceb4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
27ceb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
27ceb4
27ceb4
* Thu Nov  3 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.1-1
27ceb4
- Initial version of the package
27ceb4