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