diff --git a/apache-commons-text-build.xml b/apache-commons-text-build.xml
index ddb86bc..d3c770f 100644
--- a/apache-commons-text-build.xml
+++ b/apache-commons-text-build.xml
@@ -8,9 +8,9 @@
-
+
-
+
@@ -122,7 +122,7 @@
-
+
@@ -135,7 +135,7 @@
-
+
diff --git a/apache-commons-text.changes b/apache-commons-text.changes
index e1c30d8..3a911cc 100644
--- a/apache-commons-text.changes
+++ b/apache-commons-text.changes
@@ -1,3 +1,98 @@
+-------------------------------------------------------------------
+Fri Oct 14 12:47:40 UTC 2022 - Fridrich Strba
+
+- Upgrade to version 1.10.0 (mitigation of bsc#1204284,
+ CVE-2022-42889)
+ * Changes of 1.10.0:
+ + Fix CaseUtils when the input string contains only delimiters
+ + Add GraalVM test dependencies to fix test failures with Java
+ 15
+ + Incorrect values for Jaccard similarity with empty strings
+ + StringSubstitutor map constructor throws NPE on 1.9 with null
+ map
+ + JaroWinklerDistance returns the same values as
+ JaroWinklerSimilarity
+ + Correct Javadoc in FileStringLookup
+ + Use StringUtils.INDEX_NOT_FOUND constant
+ + Remove redundant local variable
+ + Replace lambda with method reference
+ + Simplify statements
+ + Replace statement lambda with expression lambda
+ + Use static class inner class in tests
+ + Simplify assertion
+ + Extract duplicate code
+ + Set void return method
+ + Remove unused exception from
+ TextStringBuilder.readFrom(CharBuffer). This preserves binary
+ compatibility but not source compatibility
+ + StrBuilder.StrBuilderReader.skip(long): Throw an exception
+ when an implicit narrowing conversion in a compound assignment
+ would result in information loss or a numeric error such as an
+ overflows
+ + TextStringBuilder.TextStringBuilderReader.skip(long): Throw
+ an exception when an implicit narrowing conversion in a
+ compound assignment would result in information loss or a
+ numeric error such as an overflows
+ + TextStringBuilder.equals whatever the capacity is
+ + A More Efficient Implementation for Calculating Size of
+ Longest Common Subsequence
+ + LookupTranslator returns count of chars consumed, not of
+ codepoints consumed
+ + Use Math.min() call instead of doing it manually
+ + TextStringBuilder: Throw OutOfMemoryError instead of
+ NegativeArraySizeException
+ + TextStringBuilder: Can't grow to sizes up to
+ Integer.MAX_VALUE
+ + Make default string lookups configurable via system property
+ Remove dns, url, and script lookups from defaults. If these
+ lookups are required for use in StringSubstitutor
+ .createInterpolator(), they must be enabled via system
+ property (bsc#
+ + Add DoubleFormat utility
+ + Document negative limit for WordUtils abbreviate method
+ + Speed up LevenshteinDistance with threshold by exiting early
+ + Release Notes page hasn't been updated for 1.9 release yet
+ + Add StrBuilder.isNotEmpty()
+ * Changes of 1.9:
+ + Removed non-existing parameter from Javadocs and spelled out
+ parameters in throws
+ + StringEscapeUtils.unescapeCsv doesn't remove quotes at begin
+ and end of string
+ + ScriptStringLookup does not accept ":"
+ + StringSubstitutor incorrectly removes some escape characters
+ + Make ConstantStringLookup.constantCache final
+ + Simplify if in CaseUtils
+ + Add StringMatcher.size()
+ + Refactor TextStringBuilder.readFrom(Readable), extracting
+ readFrom(CharBuffer) and readFrom(Reader)
+ + Add BiStringLookup and implementation BiFunctionStringLookup
+ + Add org.apache.commons.text.StringSubstitutor
+ .StringSubstitutor(StringSubstitutor)
+ + Add org.apache.commons.text.TextStringBuilder
+ .TextStringBuilder(CharSequence)
+ + Add org.apache.commons.text.TextStringBuilder.drainChar(int)
+ + Add org.apache.commons.text.TextStringBuilder.drainChars(int,
+ int, char[]. int)
+ + Add org.apache.commons.text.TextStringBuilder.isNotEmpty()
+ + Add org.apache.commons.text.TextStringBuilder.isReallocated()
+ + Add org.apache.commons.text.TextStringBuilder.readFrom(Reader,
+ int)
+ + Add org.apache.commons.text.TextStringBuilder.set(String)
+ + Add org.apache.commons.text.TextStringBuilder.wrap(char[])
+ + Add org.apache.commons.text.TextStringBuilder.wrap(char[],
+ int)
+ + Add org.apache.commons.text.io.StringSubstitutorReader
+ + Add org.apache.commons.text.lookup.StringLookupFactory
+ .functionStringLookup(Function)
+ + Add org.apache.commons.text.matcher.StringMatcher
+ .isMatch(CharSequence, int)
+ + Add org.apache.commons.text.matcher.StringMatcher
+ .isMatch(CharSequence, int, int, int)
+ + Add org.apache.commons.text.matcher.StringMatcherFactory
+ .andMatcher(StringMatcher...)
+ + Add org.apache.commons.text.matcher.StringMatcherFactory
+ .stringMatcher(char...)
+
-------------------------------------------------------------------
Thu Mar 10 14:03:25 UTC 2022 - Fridrich Strba
diff --git a/apache-commons-text.spec b/apache-commons-text.spec
index 5214ec4..69dd25d 100644
--- a/apache-commons-text.spec
+++ b/apache-commons-text.spec
@@ -19,7 +19,7 @@
%global base_name text
%global short_name commons-%{base_name}
Name: apache-%{short_name}
-Version: 1.8
+Version: 1.10.0
Release: 0
Summary: A library focused on algorithms working on strings
License: Apache-2.0
diff --git a/commons-text-1.10.0-src.tar.gz b/commons-text-1.10.0-src.tar.gz
new file mode 100644
index 0000000..473b291
--- /dev/null
+++ b/commons-text-1.10.0-src.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9332eefa5435c10995394004cda7ff5b31f7befe7ba3d8107170b9d8306a2d41
+size 342224
diff --git a/commons-text-1.8-src.tar.gz b/commons-text-1.8-src.tar.gz
deleted file mode 100644
index 5716970..0000000
--- a/commons-text-1.8-src.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:57f752fd297df04294da69201f9ca9104744c1bc240deb6f8a8044043a0d5a74
-size 296557