Compare commits
9 Commits
Author | SHA256 | Date | |
---|---|---|---|
d9f099681b | |||
f4acd49679 | |||
f20c268c92 | |||
b2e29b41c2 | |||
1782bf6384 | |||
66b7486f78 | |||
5c7139df31 | |||
037faead42 | |||
b99e966cac |
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Spec file cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 25 15:51:45 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package apache-commons-vfs2
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,41 +18,40 @@
|
||||
|
||||
%global base_name vfs2
|
||||
%global short_name commons-%{base_name}
|
||||
%bcond_with tests
|
||||
%bcond_with hadoop
|
||||
%bcond_without ftp
|
||||
%bcond_with cifs
|
||||
%bcond_with mina
|
||||
%bcond_without ssh
|
||||
Name: apache-%{short_name}
|
||||
Version: 2.2
|
||||
Version: 2.10.0
|
||||
Release: 0
|
||||
Summary: Commons Virtual File System
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://commons.apache.org/vfs/
|
||||
Source0: http://www.apache.org/dist/commons/vfs/source/%{short_name}-distribution-%{version}-src.tar.gz
|
||||
URL: https://commons.apache.org/vfs/
|
||||
Source0: https://archive.apache.org/dist/commons/vfs/source/commons-vfs-%{version}-src.tar.gz
|
||||
Source1: %{short_name}-build.tar.xz
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-collections4
|
||||
BuildRequires: apache-commons-compress
|
||||
BuildRequires: apache-commons-httpclient
|
||||
BuildRequires: apache-commons-io
|
||||
BuildRequires: apache-commons-lang3
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: apache-commons-net > 2
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: javapackages-local
|
||||
Requires: mvn(commons-logging:commons-logging)
|
||||
BuildRequires: httpcomponents-client
|
||||
BuildRequires: httpcomponents-core
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildArch: noarch
|
||||
%if %{with hadoop}
|
||||
BuildRequires: mvn(org.apache.hadoop:hadoop-common)
|
||||
BuildRequires: mvn(org.apache.hadoop:hadoop-hdfs)
|
||||
%if %{with cifs}
|
||||
BuildRequires: jcifs
|
||||
%endif
|
||||
%if %{with mina}
|
||||
BuildRequires: mvn(org.apache.mina:mina-core)
|
||||
%endif
|
||||
%if %{with ssh}
|
||||
BuildRequires: jsch
|
||||
%endif
|
||||
%if %{with ftp}
|
||||
%if %{with tests}
|
||||
BuildRequires: mvn(org.apache.ftpserver:ftpserver-core)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Commons VFS provides a single API for accessing various
|
||||
@@ -99,68 +98,58 @@ This package contains javadoc for %{name}.
|
||||
%prep
|
||||
%setup -q -n commons-vfs-%{version} -a1
|
||||
|
||||
%pom_remove_plugin :apache-rat-plugin
|
||||
|
||||
# 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
|
||||
%pom_disable_module commons-vfs2-distribution
|
||||
|
||||
# Fix ant gId
|
||||
%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_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
|
||||
|
||||
# Use old version of sshd-core
|
||||
%pom_remove_dep -r :sshd-core
|
||||
|
||||
# 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
|
||||
# Remove http5 client
|
||||
%pom_remove_dep -r org.apache.httpcomponents.client5:httpclient5
|
||||
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5
|
||||
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/http5s
|
||||
|
||||
# ftpserver is not available
|
||||
%if %{without ftp}
|
||||
%pom_remove_dep -r :ftpserver-core
|
||||
rm -r commons-vfs2/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps
|
||||
%endif
|
||||
|
||||
%pom_remove_parent commons-vfs2 commons-vfs2-examples
|
||||
# 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
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib ant commons-httpclient commons-logging commons-compress commons-collections4 commons-net
|
||||
%if %{with hadoop}
|
||||
build-jar-repository -s lib hadoop/common hadoop/hdfs
|
||||
%endif
|
||||
build-jar-repository -s lib \
|
||||
ant \
|
||||
commons-collections4 \
|
||||
commons-compress \
|
||||
commons-httpclient \
|
||||
commons-io \
|
||||
commons-lang3 \
|
||||
commons-logging \
|
||||
commons-net \
|
||||
httpcomponents/httpclient \
|
||||
httpcomponents/httpcore
|
||||
%if %{with ssh}
|
||||
build-jar-repository -s lib jsch
|
||||
build-jar-repository -s lib \
|
||||
jsch
|
||||
%endif
|
||||
|
||||
%{ant} \
|
||||
%if %{without tests}
|
||||
ant \
|
||||
-Dtest.skip=true \
|
||||
%endif
|
||||
package javadoc
|
||||
|
||||
%install
|
||||
@@ -172,9 +161,9 @@ install -pm 0644 %{short_name}-examples/target/%{short_name}-examples-%{version}
|
||||
ln -sf %{short_name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
|
||||
# poms
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 0644 %{short_name}/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
||||
%{mvn_install_pom} %{short_name}/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
||||
%add_maven_depmap %{short_name}.pom %{short_name}.jar
|
||||
install -pm 0644 %{short_name}-examples/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}-examples.pom
|
||||
%{mvn_install_pom} %{short_name}-examples/pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}-examples.pom
|
||||
%add_maven_depmap %{short_name}-examples.pom %{short_name}-examples.jar -f examples
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{short_name}-examples
|
||||
@@ -187,7 +176,7 @@ echo "ant commons-logging commons-vfs" > commons-vfs
|
||||
install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs
|
||||
|
||||
%files -f .mfiles
|
||||
%doc README.txt RELEASE-NOTES.txt
|
||||
%doc README.md RELEASE-NOTES.txt
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
|
||||
|
BIN
commons-vfs-2.10.0-src.tar.gz
(Stored with Git LFS)
Normal file
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)
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)
BIN
commons-vfs2-distribution-2.2-src.tar.gz
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user