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