Blame SPECS/apache-commons-lang.spec

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