update apache-commons-lang.spec.

This commit is contained in:
yeah_wang 2019-12-09 14:47:47 +08:00 committed by Gitee
parent 5b00a70f8b
commit 0216f9ccc7

View File

@ -1,101 +1,50 @@
Name: apache-commons-lang Name: apache-commons-lang
Version: 2.6 Version: 2.6
Release: 23 Release: 23
Summary: Provides a host of helper utilities for the java.lang API Summary: Provides a host of helper utilities for the java.lang API
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/lang URL: http://commons.apache.org/lang
Source0: http://archive.apache.org/dist/commons/lang/source/commons-lang-2.6-src.tar.gz Source0: http://archive.apache.org/dist/commons/lang/source/commons-lang-2.6-src.tar.gz
Patch0000: 0002-Fix-FastDateFormat-for-Java-7-behaviour.patch Patch0000: 0002-Fix-FastDateFormat-for-Java-7-behaviour.patch
Patch9000: remove-2-test-fix-compile-with-bep-java.patch Patch9000: remove-2-test-fix-compile-with-bep-java.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: maven-local apache-commons-parent maven-surefire-provider-junit BuildRequires: maven-local apache-commons-parent maven-surefire-provider-junit
%description %description
The standard Java libraries fail to provide enough methods for manipulation of The standard Java libraries fail to provide enough methods for manipulation of
its core classes. Apache Commons Lang provides these extra methods. its core classes. Apache Commons Lang provides these extra methods.
%package help %package help
Summary: API documentation for apache-commons-lang Summary: API documentation for apache-commons-lang
Provides: %{name}-javadoc = %{version}-%{release} Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help %description help
The help for apache-commons-lang to use. The help for apache-commons-lang to use.
%prep %prep
%autosetup -n commons-lang-2.6-src -p1 %autosetup -n commons-lang-2.6-src -p1
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . " %pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "
<configuration><source>1.3</source></configuration>" <configuration><source>1.3</source></configuration>"
%mvn_file : apache-commons-lang commons-lang %mvn_file : apache-commons-lang commons-lang
%mvn_alias : org.apache.commons: lang:lang %mvn_alias : org.apache.commons: lang:lang
%mvn_config buildSettings/compilerSource 1.3 %mvn_config buildSettings/compilerSource 1.3
%build %build
%mvn_build %mvn_build
%install %install
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt %doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
%files help -f .mfiles-javadoc %files help -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
%changelog %changelog
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 2.6-23 * Thu Nov 14 2019 wangye<wangye54@huawei.com> - 2.6-23
- Package init
- Package init