From 6b1c16c9230c7490bde7d6a8233cd0b7e9e56b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 21 Feb 2024 14:12:26 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 apache-commons-io revision 3167bd46d69e07ae2f188a458bbd32a9 --- .gitattributes | 23 +++ apache-commons-io-build.xml | 145 ++++++++++++++++ apache-commons-io.changes | 280 +++++++++++++++++++++++++++++++ apache-commons-io.spec | 84 ++++++++++ commons-io-2.15.1-src.tar.gz | 3 + commons-io-2.15.1-src.tar.gz.asc | 11 ++ 6 files changed, 546 insertions(+) create mode 100644 .gitattributes create mode 100644 apache-commons-io-build.xml create mode 100644 apache-commons-io.changes create mode 100644 apache-commons-io.spec create mode 100644 commons-io-2.15.1-src.tar.gz create mode 100644 commons-io-2.15.1-src.tar.gz.asc diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/apache-commons-io-build.xml b/apache-commons-io-build.xml new file mode 100644 index 0000000..4b2cf5e --- /dev/null +++ b/apache-commons-io-build.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apache-commons-io.changes b/apache-commons-io.changes new file mode 100644 index 0000000..a128188 --- /dev/null +++ b/apache-commons-io.changes @@ -0,0 +1,280 @@ +------------------------------------------------------------------- +Mon Feb 19 14:58:13 UTC 2024 - Fridrich Strba + +- Upgrade to 2.15.1 + * Fixed Bugs: + + Fix wrong issue id in change log + + Add test for FileChannels.contentEquals() + + Fix FileChannels.contentEquals() + + Fix some Javadoc issues in LineIterator and IOUtils + + Simplify FileAlterationObserver internal processing + + Avoid NullPointerException in RegexFileFilter + .RegexFileFilter(Pattern) + + Avoid NullPointerException in RegexFileFilter + .accept(Path, BasicFileAttributes) + + Fix SpotBugs error: Class org.apache.commons.io.filefilter + .RegexFileFilter defines non-transient non-serializable + instance field pathToString [org.apache.commons.io.filefilter + .RegexFileFilter] In RegexFileFilter.java SE_BAD_FIELD + + Fix SpotBugs error: Class org.apache.commons.io.filefilter + .DelegateFileFilter defines non-transient non-serializable + instance field fileFilter [org.apache.commons.io.filefilter + .DelegateFileFilter] In DelegateFileFilter.java SE_BAD_FIELD + + Fix SpotBugs error: Class org.apache.commons.io.filefilter + .DelegateFileFilter defines non-transient non-serializable + instance field fileNameFilter [org.apache.commons.io + .filefilter.DelegateFileFilter] In DelegateFileFilter.java + SE_BAD_FIELD + + Fix SpotBugs error: org.apache.commons.io.function.IOStream$1 + .next() cannot throw NoSuchElementException [org.apache + .commons.io.function.IOStream$1] At IOStream.java:[line 98] + IT_NO_SUCH_ELEMENT + + Fix SpotBugs error: org.apache.commons.io.monitor + .FileAlterationMonitor.getObservers() may expose internal + representation by returning FileAlterationMonitor.observers + [org.apache.commons.io.monitor.FileAlterationMonitor] At + FileAlterationMonitor.java:[line 124] EI_EXPOSE_REP + + Fix SpotBugs error: Class org.apache.commons.io.monitor + .FileAlterationObserver defines non-transient non-serializable + instance field fileFilter [org.apache.commons.io.monitor + .FileAlterationObserver] In FileAlterationObserver.java + SE_BAD_FIELD + + Fix SpotBugs error: Class org.apache.commons.io.monitor + .FileAlterationObserver defines non-transient non-serializable + instance field listeners [org.apache.commons.io.monitor + .FileAlterationObserver] In FileAlterationObserver.java + SE_BAD_FIELD + + Fix SpotBugs error: org.apache.commons.io.FileCleaningTracker + .getDeleteFailures() may expose internal representation by + returning FileCleaningTracker.deleteFailures [org.apache + .commons.io.FileCleaningTracker] At + FileCleaningTracker.java:[line 218] EI_EXPOSE_REP + + Fix SpotBugs error: org.apache.commons.io.IOExceptionList + .getCauseList() may expose internal representation by + returning IOExceptionList.causeList [org.apache.commons.io + .IOExceptionList] At IOExceptionList.java:[line 118] + EI_EXPOSE_REP + + Fix SpotBugs error: org.apache.commons.io.IOExceptionList + .getCauseList(Class) may expose internal representation by + returning IOExceptionList.causeList [org.apache.commons.io + .IOExceptionList] At IOExceptionList.java:[line 129] + EI_EXPOSE_REP + + Fix SpotBugs error: org.apache.commons.io.file + .AccumulatorPathVisitor.getDirList() may expose internal + representation by returning AccumulatorPathVisitor.dirList + [org.apache.commons.io.file.AccumulatorPathVisitor] At + AccumulatorPathVisitor.java:[line 179] EI_EXPOSE_REP + + Fix SpotBugs error: org.apache.commons.io.file + .AccumulatorPathVisitor.getFileList() may expose internal + representation by returning AccumulatorPathVisitor.fileList + [org.apache.commons.io.file.AccumulatorPathVisitor] At + AccumulatorPathVisitor.java:[line 188] EI_EXPOSE_REP + + Fix SpotBugs error: org.apache.commons.io.input + .ObservableInputStream.getObservers() may expose internal + representation by returning ObservableInputStream.observers + [org.apache.commons.io.input.ObservableInputStream] At + ObservableInputStream.java:[line 187] EI_EXPOSE_REP + + Fix SpotBugs error: Exception thrown in class org.apache + .commons.io.input.UnsynchronizedByteArrayInputStream at new + org.apache.commons.io.input + .UnsynchronizedByteArrayInputStream(byte[], int) will leave + the constructor. The object under construction remains + partially initialized and may be vulnerable to Finalizer + attacks. [org.apache.commons.io.input + .UnsynchronizedByteArrayInputStream, org.apache.commons.io + .input.UnsynchronizedByteArrayInputStream] At + UnsynchronizedByteArrayInputStream.java:[line 202] + CT_CONSTRUCTOR_THROW + + Fix SpotBugs error: Exception thrown in class org.apache + .commons.io.input.UnsynchronizedByteArrayInputStream at new + org.apache.commons.io.input + .UnsynchronizedByteArrayInputStream(byte[], int, int) will + leave the constructor. The object under construction remains + partially initialized and may be vulnerable to Finalizer + attacks. [org.apache.commons.io.input + .UnsynchronizedByteArrayInputStream, org.apache.commons.io + .input.UnsynchronizedByteArrayInputStream] At + UnsynchronizedByteArrayInputStream.java:[line 223] + CT_CONSTRUCTOR_THROW +- Upgrade to 2.15.0 + * New features: + + Add org.apache.commons.io.channels.FileChannels + + Add RandomAccessFiles#contentEquals(RandomAccessFile, + RandomAccessFile) + + Add RandomAccessFiles#reset(RandomAccessFile) + + Add PathUtilsContentEqualsBenchmark + + Add org.apache.commons.io.StreamIterator + + Add MessageDigestInputStream and deprecate + MessageDigestCalculatingInputStream + * Fixed Bugs: + + IO-815: XmlStreamReader encoding match RE is too strict + + IO-810: Javadoc in FileUtils does not reflect code for thrown + exceptions + + IO-812: Javadoc should mention closing Streams based on file + resources + + IO-811: In tests, Files.walk() direct and indirect callers + fail to close the returned Stream + + IO-811: FileUtils.listFiles(File, String[], boolean) fails to + close its internal Stream + + IO-811: FileUtils.iterateFiles(File, String[], boolean) fails + to close its internal Stream + + IO-811: StreamIterator fails to close its internal Stream + + IO-814: Don't throw UncheckedIOException + + IO-414: Don't write a BOM on every (or any) line + + IO-814: RandomAccessFileMode.create(Path) provides a better + NullPointerException message + + Improve performance of PathUtils.fileContentEquals(Path, Path, + LinkOption[], OpenOption[]) by about 60%, see + PathUtilsContentEqualsBenchmark + + Improve performance of PathUtils.fileContentEquals(Path, Path) + by about 60%, see PathUtilsContentEqualsBenchmark + + Improve performance of FileUtils.contentEquals(File, File) by + about 60%, see PathUtilsContentEqualsBenchmark + + Remove unused test code + + [Javadoc] IOUtils#contentEquals does not throw + NullPointerException + + Fix CodeQL warnings in UnsynchronizedBufferedInputStream: + Implicit narrowing conversion in compound assignment + + MessageDigestCalculatingInputStream + .MessageDigestMaintainingObserver + .MessageDigestMaintainingObserver(MessageDigest) now throws a + NullPointerException if the MessageDigest is null + + MessageDigestCalculatingInputStream + .MessageDigestCalculatingInputStream(InputStream, + MessageDigest) now throws a NullPointerException if the + MessageDigest is null + + IO-816: UnsynchronizedBufferedInputStream.read(byte[], int, + int) does not use buffer + +------------------------------------------------------------------- +Wed Oct 25 16:53:57 UTC 2023 - Fridrich Strba + +- Build with source and target levels 8 + +------------------------------------------------------------------- +Wed Oct 18 12:52:58 UTC 2023 - David Anes + +- Update to 2.14.0: + * Lots of new features, fixes and updates. + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.14.0 + +------------------------------------------------------------------- +Tue Apr 19 15:34:30 UTC 2022 - David Anes + +- Update to 2.11.0 + * Lots of added functions, fixes and updates. + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.11.0 + +- Update to 2.10.0 + * Lots of added functions, fixes and updates. + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.10.0 + +------------------------------------------------------------------- +Thu Jun 3 16:51:10 UTC 2021 - Pedro Monreal + +- Update to 2.9.0 + * Lots of added functions, fixes and updates. + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.9.0 + +------------------------------------------------------------------- +Tue Oct 27 11:49:20 UTC 2020 - Pedro Monreal + +- Update to 2.8.0 + * Lots of added functions, fixes and updates. + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.8.0 + +------------------------------------------------------------------- +Wed Jun 3 11:12:22 UTC 2020 - Pedro Monreal Gonzalez + +- Update to upstream version 2.7 (bsc#1184755, CVE-2021-29425) + * https://commons.apache.org/proper/commons-io/changes-report.html#a2.7 + * Lots of bugfixes, updates and enhancements + * Java 8 or later is required + +------------------------------------------------------------------- +Wed Mar 27 10:17:25 UTC 2019 - Fridrich Strba + +- Remove pom parent, since we don't use it when not building with + maven + +------------------------------------------------------------------- +Tue Feb 26 17:34:25 UTC 2019 - Fridrich Strba + +- Update to upstream version 2.6 + * many bugfixes, features and enhancenments, like + Automatic-Module-Name entry in manifest + * requires jdk7 or later + * see RELEASE-NOTES.txt for details +- Generated a build.xml to be able to build with ant +- Build with tests is now optional +- Removed patch: + * commons-io-version-property.patch + + not needed anymore in this version + +------------------------------------------------------------------- +Tue May 15 10:41:03 UTC 2018 - fstrba@suse.com + +- Build with source and target 8 to prepare for a possible removal + of 1.6 compatibility +- Run fdupes on documentation + +------------------------------------------------------------------- +Thu Sep 14 11:39:40 UTC 2017 - fstrba@suse.com + +- Fix build with jdk9 by specifying source and target level 1.6 + +------------------------------------------------------------------- +Sun May 21 07:52:44 UTC 2017 - tchvatal@suse.com + +- Remove unused depedencies + +------------------------------------------------------------------- +Fri May 19 09:52:13 UTC 2017 - pcervinka@suse.com + +- New build dependency: javapackages-local + +------------------------------------------------------------------- +Wed Mar 18 09:45:59 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Mon Jul 7 14:53:05 UTC 2014 - tchvatal@suse.com + +- Use junit not junit4 + +------------------------------------------------------------------- +Mon Sep 9 11:05:28 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Wed Mar 20 12:45:16 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Thu Oct 25 08:21:33 UTC 2012 - mvyskocil@suse.com + +- update to the latest upstream version 2.4 (needed by fop 1.1) + * many bugfixes, features and enhancenments, like + * XmlStreamReader support for UTF-32 + * requires jdk6 or later + * see RELEASE-NOTES.txt for details +- rename to apache-commons-io to stay compatible with upstream and fedora +- add commons-io-version-property.patch to fix the version in build.xml + +------------------------------------------------------------------- +Mon Aug 25 10:26:55 CEST 2008 - mvyskocil@suse.cz + +- target=1.5 +- removed a build gcj support +- removed a javadoc %post/postun +- fixed a wrong end of line encoding + +------------------------------------------------------------------- +Thu Mar 13 11:37:36 CET 2008 - mvyskocil@suse.cz + +- Initial package created with version 1.3.2 (JPackage 1.7) + diff --git a/apache-commons-io.spec b/apache-commons-io.spec new file mode 100644 index 0000000..52f98cd --- /dev/null +++ b/apache-commons-io.spec @@ -0,0 +1,84 @@ +# +# spec file for package apache-commons-io +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define base_name io +%define short_name commons-%{base_name} +Name: apache-%{short_name} +Version: 2.15.1 +Release: 0 +Summary: Utilities to assist with developing IO functionality +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://commons.apache.org/%{base_name} +Source0: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Source1: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc +Source2: %{name}-build.xml +BuildRequires: ant >= 1.6 +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local >= 6 +Provides: %{short_name} = %{version}-%{release} +Provides: jakarta-%{short_name} = %{version}-%{release} +Obsoletes: jakarta-%{short_name} < %{version}-%{release} +BuildArch: noarch + +%description +Commons-IO contains utility classes, stream implementations, +file filters, and endian classes. It is a library of utilities +to assist with developing IO functionality. + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +This package provides %{summary}. + +%prep +%setup -q -n %{short_name}-%{version}-src +cp %{SOURCE2} build.xml + +%build +%{ant} \ + -Dcompiler.source=1.8 \ + jar javadoc + +%install +# jars +install -d -m 0755 %{buildroot}%{_javadir} +install -p -m 0644 target/%{short_name}-%{version}.jar \ + %{buildroot}%{_javadir}/%{short_name}.jar +ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom +%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-io" +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE.txt NOTICE.txt +%doc RELEASE-NOTES.txt +%{_javadir}/%{name}.jar + +%files javadoc +%doc %{_javadocdir}/%{name} + +%changelog diff --git a/commons-io-2.15.1-src.tar.gz b/commons-io-2.15.1-src.tar.gz new file mode 100644 index 0000000..0185834 --- /dev/null +++ b/commons-io-2.15.1-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab65ddf9d48e74e1bf43fa4278030348150a2a3270f47012410b0e273c3d6c29 +size 618534 diff --git a/commons-io-2.15.1-src.tar.gz.asc b/commons-io-2.15.1-src.tar.gz.asc new file mode 100644 index 0000000..d5f4489 --- /dev/null +++ b/commons-io-2.15.1-src.tar.gz.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmVgzyQACgkQhv3H4qES +YsurQQf+LS4VRitxNgUt7nFxUSHD46hHy3MAkBYNIu6eTXHTKJ/NqIwVxq2f6iZI +hq6AKwg5GiOge/2ujqtU3wcKduKPcEC431my0JiGHOrI0F7AGvU4+WIBYQz1Flv3 +ZjPLk8kXd/WblB8lAByE0/c4nQC1iwV+w/nh0e78KaV9FhsNu0qV9BF+xWiDwFwN +sr5W+PeXLqmFy07kvQCaqkbX57bRV4oByttv5hJaLVdkAwksKEUMoij7TM2t54yP +6SFQwt3GIu/MuU669fWPvj7D6FdfpU38QChIuj/50L0cAUermMJ3EqS/MatHdf7D +lprG1l6RoMMOA/ByoZ4UvtRTrXUzpg== +=/4eI +-----END PGP SIGNATURE-----