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