Blame SPECS/apache-commons-lang.spec

59af95
%global pkg_name apache-commons-lang
59af95
%{?scl:%scl_package %{pkg_name}}
59af95
%{?java_common_find_provides_and_requires}
59af95
59af95
59af95
%global base_name       lang
59af95
%global short_name      commons-%{base_name}
59af95
59af95
Name:           %{?scl_prefix}%{pkg_name}
59af95
Version:        2.6
59af95
Release:        15.11%{?dist}
59af95
Summary:        Provides a host of helper utilities for the java.lang API
59af95
License:        ASL 2.0
59af95
URL:            http://commons.apache.org/%{base_name}
59af95
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
59af95
Patch1:         0002-Fix-FastDateFormat-for-Java-7-behaviour.patch
59af95
59af95
BuildArch:      noarch
59af95
BuildRequires:  %{?scl_prefix}maven-local
59af95
BuildRequires:  %{?scl_prefix_maven}apache-commons-parent >= 26-7
59af95
BuildRequires:  %{?scl_prefix_maven}maven-surefire-provider-junit
59af95
59af95
59af95
%description
59af95
The standard Java libraries fail to provide enough methods for
59af95
manipulation of its core classes. The Commons Lang Component provides
59af95
these extra methods.
59af95
The Commons Lang Component provides a host of helper utilities for the
59af95
java.lang API, notably String manipulation methods, basic numerical
59af95
methods, object reflection, creation and serialization, and System
59af95
properties. Additionally it contains an inheritable enum type, an
59af95
exception structure that supports multiple types of nested-Exceptions
59af95
and a series of utilities dedicated to help with building methods, such
59af95
as hashCode, toString and equals.
59af95
59af95
%package        javadoc
59af95
Summary:        API documentation for %{pkg_name}
59af95
59af95
%description    javadoc
59af95
%{summary}.
59af95
59af95
%prep
59af95
%setup -q -n %{short_name}-%{version}-src
59af95
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
59af95
set -e -x
59af95
%patch1 -p1
59af95
sed -i 's/\r//' *.txt *.html
59af95
59af95
# "enum" is used as a Java identifier, which is prohibited in Java >= 1.5
59af95
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "
59af95
    <configuration><source>1.3</source></configuration>"
59af95
59af95
59af95
%mvn_file  : %{pkg_name} %{short_name}
59af95
%mvn_alias : org.apache.commons: %{base_name}:%{base_name}
59af95
# this package needs to be compiled with -source 1.3 option
59af95
%mvn_config buildSettings/compilerSource 1.3
59af95
%{?scl:EOF}
59af95
59af95
%build
59af95
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
59af95
set -e -x
59af95
%mvn_build
59af95
%{?scl:EOF}
59af95
59af95
%install
59af95
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
59af95
set -e -x
59af95
%mvn_install
59af95
%{?scl:EOF}
59af95
59af95
%files -f .mfiles
59af95
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
59af95
59af95
%files javadoc -f .mfiles-javadoc
59af95
%doc LICENSE.txt NOTICE.txt
59af95
59af95
%changelog
59af95
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.6-15.11
59af95
- Mass rebuild 2015-01-13
59af95
59af95
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 2.6-15.10
59af95
- Mass rebuild 2015-01-09
59af95
59af95
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.9
59af95
- Migrate requires and build-requires to rh-java-common
59af95
59af95
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.8
59af95
- Mass rebuild 2014-12-15
59af95
59af95
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.7
59af95
- Rebuild for rh-java-common collection
59af95
59af95
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.6
59af95
- Mass rebuild 2014-05-26
59af95
59af95
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.5
59af95
- Mass rebuild 2014-02-19
59af95
59af95
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.4
59af95
- Mass rebuild 2014-02-18
59af95
59af95
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.3
59af95
- SCL-ize build-requires
59af95
59af95
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.2
59af95
- Rebuild to regenerate auto-requires
59af95
59af95
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-15.1
59af95
- First maven30 software collection build
59af95
59af95
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.6-15
59af95
- Mass rebuild 2013-12-27
59af95
59af95
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-14
59af95
- Add BuildRequires on apache-commons-parent >= 26-7
59af95
59af95
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-13
59af95
- Rebuild to regenerate API documentation
59af95
- Resolves: CVE-2013-1571
59af95
59af95
* Mon Apr 22 2013 Michal Srb <msrb@redhat.com> - 2.6-12
59af95
- Rebuild
59af95
59af95
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com> - 2.6-11
59af95
- Properly specify XMvn's compilerSource option
59af95
59af95
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-10
59af95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
59af95
59af95
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.6-9
59af95
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
59af95
- Replace maven BuildRequires with maven-local
59af95
59af95
* Fri Jan 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-8
59af95
- Build with xmvn
59af95
59af95
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-7
59af95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
59af95
59af95
* Wed Feb 22 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-6
59af95
- Add backported fix for JDK 1.7
59af95
59af95
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-5
59af95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
59af95
59af95
* Mon Jun 27 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-4
59af95
- Use new add_maven_depmap macro
59af95
- Fix maven3 build
59af95
59af95
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
59af95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
59af95
59af95
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-2
59af95
- Fix commons-lang symlink
59af95
59af95
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-1
59af95
- Update to 2.6
59af95
- Versionless jars & javadocs
59af95
- Use maven 3 to build
59af95
59af95
* Wed Nov 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-7
59af95
- Use apache-commons-parent instead of maven-*
59af95
59af95
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-6
59af95
- Add license to javadoc subpackage
59af95
59af95
* Wed May 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-5
59af95
- Add another old depmap to prevent groupId dependency problems
59af95
59af95
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-4
59af95
- Correct depmap filename for backward compatibility
59af95
59af95
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-3
59af95
- Fix maven depmap JPP name to short_name
59af95
59af95
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-2
59af95
- Added export for MAVEN_LOCAL_REPO and mkdir
59af95
- Added more add_to_maven_depmap to assure backward compatibility
59af95
- Add symlink to short_name.jar
59af95
59af95
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5-1
59af95
- Rename and rebase of jakarta-commons-lang
59af95
- Re-did whole spec file to use maven, dropped gcj support
59af95