64a261
64a261
%global base_name       lang
64a261
%global short_name      commons-%{base_name}
64a261
64a261
Name:           apache-%{short_name}
64a261
Version:        2.6
64a261
Release:        14%{?dist}
64a261
Summary:        Provides a host of helper utilities for the java.lang API
64a261
License:        ASL 2.0
64a261
Group:          Development/Libraries
64a261
URL:            http://commons.apache.org/%{base_name}
64a261
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
64a261
Patch1:         0002-Fix-FastDateFormat-for-Java-7-behaviour.patch
64a261
64a261
BuildArch:      noarch
64a261
BuildRequires:  maven-local
64a261
BuildRequires:  apache-commons-parent >= 26-7
64a261
BuildRequires:  maven-surefire-provider-junit
64a261
64a261
Provides:       jakarta-commons-lang = 0:%{version}-%{release}
64a261
Obsoletes:      jakarta-commons-lang <= 0:2.4
64a261
64a261
%description
64a261
The standard Java libraries fail to provide enough methods for
64a261
manipulation of its core classes. The Commons Lang Component provides
64a261
these extra methods.
64a261
The Commons Lang Component provides a host of helper utilities for the
64a261
java.lang API, notably String manipulation methods, basic numerical
64a261
methods, object reflection, creation and serialization, and System
64a261
properties. Additionally it contains an inheritable enum type, an
64a261
exception structure that supports multiple types of nested-Exceptions
64a261
and a series of utilities dedicated to help with building methods, such
64a261
as hashCode, toString and equals.
64a261
64a261
%package        javadoc
64a261
Summary:        API documentation for %{name}
64a261
Group:          Documentation
64a261
Obsoletes:      jakarta-%{short_name}-javadoc <= 0:2.4
64a261
64a261
%description    javadoc
64a261
%{summary}.
64a261
64a261
%prep
64a261
%setup -q -n %{short_name}-%{version}-src
64a261
%patch1 -p1
64a261
sed -i 's/\r//' *.txt *.html
64a261
64a261
# "enum" is used as a Java identifier, which is prohibited in Java >= 1.5
64a261
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "
64a261
    <configuration><source>1.3</source></configuration>"
64a261
64a261
64a261
%mvn_file  : %{name} %{short_name}
64a261
%mvn_alias : org.apache.commons: %{base_name}:%{base_name}
64a261
# this package needs to be compiled with -source 1.3 option
64a261
%mvn_config buildSettings/compilerSource 1.3
64a261
64a261
%build
64a261
%mvn_build
64a261
64a261
%install
64a261
%mvn_install
64a261
64a261
%files -f .mfiles
64a261
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
64a261
64a261
%files javadoc -f .mfiles-javadoc
64a261
%doc LICENSE.txt NOTICE.txt
64a261
64a261
%changelog
64a261
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-14
64a261
- Add BuildRequires on apache-commons-parent >= 26-7
64a261
64a261
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-13
64a261
- Rebuild to regenerate API documentation
64a261
- Resolves: CVE-2013-1571
64a261
64a261
* Mon Apr 22 2013 Michal Srb <msrb@redhat.com> - 2.6-12
64a261
- Rebuild
64a261
64a261
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com> - 2.6-11
64a261
- Properly specify XMvn's compilerSource option
64a261
64a261
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-10
64a261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
64a261
64a261
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.6-9
64a261
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
64a261
- Replace maven BuildRequires with maven-local
64a261
64a261
* Fri Jan 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-8
64a261
- Build with xmvn
64a261
64a261
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-7
64a261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
64a261
64a261
* Wed Feb 22 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-6
64a261
- Add backported fix for JDK 1.7
64a261
64a261
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-5
64a261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
64a261
64a261
* Mon Jun 27 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-4
64a261
- Use new add_maven_depmap macro
64a261
- Fix maven3 build
64a261
64a261
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
64a261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
64a261
64a261
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-2
64a261
- Fix commons-lang symlink
64a261
64a261
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-1
64a261
- Update to 2.6
64a261
- Versionless jars & javadocs
64a261
- Use maven 3 to build
64a261
64a261
* Wed Nov 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-7
64a261
- Use apache-commons-parent instead of maven-*
64a261
64a261
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-6
64a261
- Add license to javadoc subpackage
64a261
64a261
* Wed May 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-5
64a261
- Add another old depmap to prevent groupId dependency problems
64a261
64a261
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-4
64a261
- Correct depmap filename for backward compatibility
64a261
64a261
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-3
64a261
- Fix maven depmap JPP name to short_name
64a261
64a261
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-2
64a261
- Added export for MAVEN_LOCAL_REPO and mkdir
64a261
- Added more add_to_maven_depmap to assure backward compatibility
64a261
- Add symlink to short_name.jar
64a261
64a261
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-1
64a261
- Rename and rebase of jakarta-commons-lang
64a261
- Re-did whole spec file to use maven, dropped gcj support
64a261