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