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