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