Compare commits

1 Commits
1.1 ... main

5 changed files with 62 additions and 57 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 25 11:15:55 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 2.10.0
* Fixes bsc#1239973, CVE-2025-27553: Possible path traversal
issue when using NameScope.DESCENDENT
* Fixes bsc#1239974, CVE-2025-30474: Failing to find an FTP file
can reveal the URI's password in an error message
* For detailed list of all changes, see RELEASE-NOTES.txt file
distributed with the package
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 2 15:33:47 UTC 2024 - Fridrich Strba <fstrba@suse.com> Wed Oct 2 15:33:47 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package apache-commons-vfs2 # spec file for package apache-commons-vfs2
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,40 +18,40 @@
%global base_name vfs2 %global base_name vfs2
%global short_name commons-%{base_name} %global short_name commons-%{base_name}
%bcond_with tests %bcond_with cifs
%bcond_with hadoop %bcond_with mina
%bcond_without ftp
%bcond_without ssh %bcond_without ssh
Name: apache-%{short_name} Name: apache-%{short_name}
Version: 2.2 Version: 2.10.0
Release: 0 Release: 0
Summary: Commons Virtual File System Summary: Commons Virtual File System
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: https://commons.apache.org/vfs/ URL: https://commons.apache.org/vfs/
Source0: https://archive.apache.org/dist/commons/vfs/source/%{short_name}-distribution-%{version}-src.tar.gz Source0: https://archive.apache.org/dist/commons/vfs/source/commons-vfs-%{version}-src.tar.gz
Source1: %{short_name}-build.tar.xz Source1: %{short_name}-build.tar.xz
BuildRequires: ant BuildRequires: ant
BuildRequires: apache-commons-collections4 BuildRequires: apache-commons-collections4
BuildRequires: apache-commons-compress BuildRequires: apache-commons-compress
BuildRequires: apache-commons-httpclient BuildRequires: apache-commons-httpclient
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-logging BuildRequires: apache-commons-logging
BuildRequires: apache-commons-net > 2 BuildRequires: apache-commons-net > 2
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: javapackages-local >= 6 BuildRequires: javapackages-local >= 6
BuildArch: noarch BuildArch: noarch
%if %{with hadoop} %if %{with cifs}
BuildRequires: mvn(org.apache.hadoop:hadoop-common) BuildRequires: jcifs
BuildRequires: mvn(org.apache.hadoop:hadoop-hdfs) %endif
%if %{with mina}
BuildRequires: mvn(org.apache.mina:mina-core)
%endif %endif
%if %{with ssh} %if %{with ssh}
BuildRequires: jsch BuildRequires: jsch
%endif %endif
%if %{with ftp}
%if %{with tests}
BuildRequires: mvn(org.apache.ftpserver:ftpserver-core)
%endif
%endif
%description %description
Commons VFS provides a single API for accessing various Commons VFS provides a single API for accessing various
@@ -98,64 +98,58 @@ This package contains javadoc for %{name}.
%prep %prep
%setup -q -n commons-vfs-%{version} -a1 %setup -q -n commons-vfs-%{version} -a1
# Convert from dos to unix line ending
for file in LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt; do
sed -i.orig 's|\r||g' $file
touch -r $file.orig $file
rm $file.orig
done
# Disable unwanted module # Disable unwanted module
%pom_disable_module commons-vfs2-distribution %pom_disable_module commons-vfs2-distribution
# Fix ant gId # Fix ant gId
%pom_change_dep -r :ant org.apache.ant: %pom_change_dep -r :ant org.apache.ant:
# Upadate bouncycastle aId
%pom_change_dep -r :bcprov-jdk16 :bcprov-jdk15on
# Remove unwanted dependency jackrabbit-{standalone,webdav} # Remove webdav client
%pom_remove_dep -r org.apache.jackrabbit: %pom_remove_dep -r org.apache.jackrabbit:
%pom_disable_module commons-vfs2-jackrabbit1
%pom_disable_module commons-vfs2-jackrabbit2
rm -rf commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/webdav # Remove http5 client
%pom_remove_dep -r org.apache.httpcomponents.client5:httpclient5
# Use old version of sshd-core rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5
%pom_remove_dep -r :sshd-core rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5s
# hadoop has been retired
%if %{without hadoop}
%pom_remove_dep -r org.apache.hadoop
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/hdfs
%endif
# not really needed
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%if %{without ssh}
%pom_remove_dep -r :jsch
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/sftp
rm commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/libcheck/SftpCheck.java
%endif
# ftpserver is not available
%if %{without ftp} %if %{without ftp}
%pom_remove_dep -r :ftpserver-core %pom_remove_dep -r :ftpserver-core
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps
%endif %endif
# jcifs not packaged and also export controlled in the US
%if %{without cifs}
%pom_remove_dep :jcifs
%endif
# mina is not available
%if %{without mina}
%pom_remove_dep :mina-core
%endif
%build %build
mkdir -p lib mkdir -p lib
build-jar-repository -s lib ant commons-httpclient commons-logging commons-compress commons-collections4 commons-net build-jar-repository -s lib \
%if %{with hadoop} ant \
build-jar-repository -s lib hadoop/common hadoop/hdfs commons-collections4 \
%endif commons-compress \
commons-httpclient \
commons-io \
commons-lang3 \
commons-logging \
commons-net \
httpcomponents/httpclient \
httpcomponents/httpcore
%if %{with ssh} %if %{with ssh}
build-jar-repository -s lib jsch build-jar-repository -s lib \
jsch
%endif %endif
ant \ ant \
%if %{without tests}
-Dtest.skip=true \ -Dtest.skip=true \
%endif
package javadoc package javadoc
%install %install
@@ -182,7 +176,7 @@ echo "ant commons-logging commons-vfs" > commons-vfs
install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs
%files -f .mfiles %files -f .mfiles
%doc README.txt RELEASE-NOTES.txt %doc README.md RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%{_javadir}/%{name}.jar %{_javadir}/%{name}.jar

BIN
commons-vfs-2.10.0-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
commons-vfs2-build.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
commons-vfs2-distribution-2.2-src.tar.gz (Stored with Git LFS)

Binary file not shown.