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