diff --git a/apache-commons-collections4-build.xml b/apache-commons-collections4-build.xml
new file mode 100644
index 0000000..b5b0cd2
--- /dev/null
+++ b/apache-commons-collections4-build.xml
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apache-commons-collections4.changes b/apache-commons-collections4.changes
index 6085bd3..160feff 100644
--- a/apache-commons-collections4.changes
+++ b/apache-commons-collections4.changes
@@ -1,3 +1,21 @@
+-------------------------------------------------------------------
+Wed Oct 25 14:24:18 UTC 2023 - Fridrich Strba
+
+- Update to upstream version 4.4
+ * Changes
+ + Updates the platform requirement from Java 6 to 8
+ + Add Automatic-Module-Name MANIFEST entry for Java 9
+ compatibility
+ + Added a few new APIs.
+ * Builds with java 21 out of the box
+ * Generated ant build system with maven-ant-plugin in order to
+ build with ant like before.
+- Removed patches:
+ * commons-collections4-4.1-bundle.patch
+ * commons-collections4-4.1-javadoc.patch
+ * commons-collections4-4.1-jdk11.patch
+ + All changes factored into the generated build.xml
+
-------------------------------------------------------------------
Fri Mar 18 18:14:43 UTC 2022 - Fridrich Strba
diff --git a/apache-commons-collections4.spec b/apache-commons-collections4.spec
index 8a88afe..64761ac 100644
--- a/apache-commons-collections4.spec
+++ b/apache-commons-collections4.spec
@@ -1,7 +1,7 @@
#
# spec file
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,24 +20,19 @@
%define short_name commons-%{base_name}
%bcond_with tests
Name: apache-%{short_name}
-Version: 4.1
+Version: 4.4
Release: 0
Summary: Extension of the Java Collections Framework
License: Apache-2.0
Group: Development/Libraries/Java
-URL: http://commons.apache.org/proper/commons-collections/
+URL: https://commons.apache.org/proper/commons-collections/
Source0: http://archive.apache.org/dist/commons/collections/source/commons-collections4-%{version}-src.tar.gz
-Patch0: commons-collections4-4.1-jdk11.patch
-Patch1: commons-collections4-4.1-bundle.patch
-Patch2: commons-collections4-4.1-javadoc.patch
+Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
-BuildRequires: javapackages-local
+BuildRequires: java-devel >= 1.8
+BuildRequires: javapackages-local >= 6
BuildArch: noarch
-%if %{with tests}
-BuildRequires: ant-junit
-BuildRequires: easymock
-%endif
%description
Commons-Collections seek to build upon the JDK classes by providing
@@ -52,22 +47,10 @@ This package provides %{summary}.
%prep
%setup -q -n commons-collections4-%{version}-src
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-
-%pom_remove_parent
+cp %{SOURCE1} build.xml
%build
-%{ant} \
- -Dcompile.source=8 -Dcompile.target=8 \
-%if %{with tests}
- -Djunit.jar=$(build-classpath junit) \
- -Dhamcrest.jar=$(build-classpath hamcrest/core) \
- -Deasymock.jar=$(build-classpath easymock) \
- test \
-%endif
- jar javadoc
+%{ant} jar javadoc
%install
# jar
@@ -76,11 +59,11 @@ install -pm 0644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{n
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}
-install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
+%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
-cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
diff --git a/commons-collections4-4.1-bundle.patch b/commons-collections4-4.1-bundle.patch
deleted file mode 100644
index 4dbaf89..0000000
--- a/commons-collections4-4.1-bundle.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- commons-collections4-4.1-src/build.xml 2019-02-25 13:03:20.651249023 +0100
-+++ commons-collections4-4.1-src/build.xml 2019-02-25 13:11:55.393720267 +0100
-@@ -146,6 +146,16 @@
-
-
-
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-
-
-
diff --git a/commons-collections4-4.1-javadoc.patch b/commons-collections4-4.1-javadoc.patch
deleted file mode 100644
index cbf8c7c..0000000
--- a/commons-collections4-4.1-javadoc.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- commons-collections4-4.1-src/build.xml 2015-11-25 22:52:41.000000000 +0100
-+++ commons-collections4-4.1-src/build.xml 2019-02-25 13:29:35.562798645 +0100
-@@ -29,7 +29,6 @@
-
-
-
--
-
-
-
-@@ -125,8 +124,6 @@
- encoding="${compile.encoding}"
- source="${compile.source}">
-
--
--
-
-
-
diff --git a/commons-collections4-4.1-jdk11.patch b/commons-collections4-4.1-jdk11.patch
deleted file mode 100644
index 74bb6ed..0000000
--- a/commons-collections4-4.1-jdk11.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- commons-collections4-4.1-src/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java 2015-11-25 22:52:42.000000000 +0100
-+++ commons-collections4-4.1-src/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java 2018-11-19 09:48:39.052536491 +0100
-@@ -1085,7 +1085,7 @@
- verify();
-
- try {
-- array = getCollection().toArray(null);
-+ array = getCollection().toArray((Object[])null);
- fail("toArray(null) should raise NPE");
- } catch (final NullPointerException e) {
- // expected
diff --git a/commons-collections4-4.1-src.tar.gz b/commons-collections4-4.1-src.tar.gz
deleted file mode 100644
index 7f0bdc5..0000000
--- a/commons-collections4-4.1-src.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:94839a0620a0fb1999aa94d490cd8d6919f79dc206be33b722f856ffde862ecf
-size 704671
diff --git a/commons-collections4-4.4-src.tar.gz b/commons-collections4-4.4-src.tar.gz
new file mode 100644
index 0000000..0f19459
--- /dev/null
+++ b/commons-collections4-4.4-src.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2af935fa71a47c3bcd43ae8fb49526ca2035ae027bfeb758d16fee2d8b010a60
+size 703008