From 574c08cd85c1024b6faa8777b276bb3aa4567732 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 2 Nov 2026 08:37:09 +0000 Subject: automatic import of commons-lang --- commons-lang.spec | 65 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 29 deletions(-) (limited to 'commons-lang.spec') diff --git a/commons-lang.spec b/commons-lang.spec index 48b096e..af48977 100644 --- a/commons-lang.spec +++ b/commons-lang.spec @@ -1,39 +1,47 @@ Name: commons-lang Version: 3.19.0 Release: 1%{?dist} -Summary: Extensions to the standard Java library -BuildArch: noarch +Summary: Apache Commons Lang, a package of Java utility classes for java.lang License: Apache-2.0 URL: https://commons.apache.org/proper/commons-lang/ -Source0: https://github.com/apache/commons-lang/archive/commons-lang-%{version}.tar.gz +Source0: https://github.com/apache/commons-lang/archive/rel/commons-lang-%{version}/commons-lang-%{version}.tar.gz +BuildArch: noarch BuildRequires: maven-local -BuildRequires: mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: java-1.8.0-openjdk-devel +BuildRequires: apache-commons-parent %description -Apache Commons Lang, a package of Java utility classes for the -classes that are in java.lang's hierarchy, or are considered to be so -standard as to justify existence in java.lang. The code is tested using -the latest revision of the JDK for supported LTS releases: 8, 11, 17 -and 21 currently. - -%package javadoc -Summary: Javadoc for %{name} -%description javadoc -API documentation for %{name}. +The standard Java libraries fail to provide enough methods for +manipulation of its core classes. The Commons Lang Component provides +these extra methods. +Lang provides a host of helper utilities for the java.lang API, +notably String manipulation methods, basic numerical methods, object +reflection, concurrency, creation and serialization and System +properties. Additionally it contains basic enhancements to +java.util.Date and a series of utilities dedicated to help with +building methods, such as hashCode, toString and equals. +Note that Lang 3.0 (and subsequent versions) use a different +package (org.apache.commons.lang3) than the previous +versions (org.apache.commons.lang), allowing it to be used at the same +time as an earlier version. + +%package help +Summary: Documents for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +The %{name}-help package contains related documents. %prep %autosetup -n %{name}-%{version} -p1 - -# Remove plugins that require network access or are incompatible with offline builds -%pom_remove_plugin -r :maven-checkstyle-plugin -%pom_remove_plugin -r :spotbugs-maven-plugin -%pom_remove_plugin -r :maven-pmd-plugin -%pom_remove_plugin -r :apache-rat-plugin -%pom_remove_plugin -r :maven-scm-publish-plugin -%pom_remove_plugin -r :maven-assembly-plugin -# maven-javadoc-plugin requires commons-text which is unavailable in offline mode -%pom_remove_plugin -r :maven-javadoc-plugin +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_dep org.openjdk.jmh:jmh-core +%pom_remove_dep org.openjdk.jmh:jmh-generator-annprocess +%pom_remove_dep org.apache.commons:commons-text +%mvn_file : %{name} commons-lang3 +sed -i '//d' pom.xml %build %mvn_build -f @@ -42,12 +50,11 @@ API documentation for %{name}. %mvn_install %files -f .mfiles -%license LICENSE.txt NOTICE.txt -%doc README.md RELEASE-NOTES.txt +%doc LICENSE.txt NOTICE.txt -%files javadoc -f .mfiles-javadoc -%license LICENSE.txt NOTICE.txt +%files help -f .mfiles-javadoc +%doc RELEASE-NOTES.txt %changelog -* Mon Sep 14 2026 Java_Bot - 3.19.0-1 +* Mon Nov 02 2026 Java_Bot - 3.19.0-1 - Initial package -- cgit v1.2.3