This commit is contained in:
parent
f08397f96e
commit
4a85183c0f
21
apache-ivy-pack200.patch
Normal file
21
apache-ivy-pack200.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- apache-ivy-2.5.2/build.xml 2023-10-30 16:09:23.892302634 +0100
|
||||||
|
+++ apache-ivy-2.5.2/build.xml 2023-10-30 16:12:01.143389848 +0100
|
||||||
|
@@ -185,6 +185,7 @@
|
||||||
|
<javac srcdir="${src.dir}"
|
||||||
|
destdir="${core.classes.build.dir}"
|
||||||
|
sourcepath=""
|
||||||
|
+ classpathref="lib.classpath"
|
||||||
|
source="${ivy.minimum.javaversion}"
|
||||||
|
target="${ivy.minimum.javaversion}"
|
||||||
|
debug="${debug.mode}"
|
||||||
|
--- apache-ivy-2.5.2/src/java/org/apache/ivy/util/FileUtil.java 2023-10-30 16:09:23.928969555 +0100
|
||||||
|
+++ apache-ivy-2.5.2/src/java/org/apache/ivy/util/FileUtil.java 2023-10-30 16:13:35.547375897 +0100
|
||||||
|
@@ -46,7 +46,7 @@
|
||||||
|
import java.util.zip.GZIPInputStream;
|
||||||
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
|
-import static java.util.jar.Pack200.newUnpacker;
|
||||||
|
+import static io.pack200.Pack200.newUnpacker;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utility class used to deal with file related operations, like copy, full reading, symlink, ...
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 30 15:24:39 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Added patch:
|
||||||
|
* apache-ivy-pack200.patch
|
||||||
|
+ conditionally apply to allow building against standalone
|
||||||
|
pack200 implementation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 19 11:31:58 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
Tue Sep 19 11:31:58 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
%bcond_without oro
|
%bcond_without oro
|
||||||
%bcond_without sftp
|
%bcond_without sftp
|
||||||
%bcond_without vfs
|
%bcond_without vfs
|
||||||
|
%bcond_with pack200
|
||||||
Name: apache-ivy
|
Name: apache-ivy
|
||||||
Version: 2.5.2
|
Version: 2.5.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -32,6 +33,7 @@ Source1: ivy.1
|
|||||||
Source2: https://repo1.maven.org/maven2/org/apache/ivy/ivy/%{version}/ivy-%{version}.pom
|
Source2: https://repo1.maven.org/maven2/org/apache/ivy/ivy/%{version}/ivy-%{version}.pom
|
||||||
Patch0: apache-ivy-global-settings.patch
|
Patch0: apache-ivy-global-settings.patch
|
||||||
Patch1: apache-ivy-publication-date.patch
|
Patch1: apache-ivy-publication-date.patch
|
||||||
|
Patch2: apache-ivy-pack200.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: bouncycastle-pg
|
BuildRequires: bouncycastle-pg
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -39,10 +41,14 @@ BuildRequires: java-devel >= 1.8
|
|||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: jsch
|
BuildRequires: jsch
|
||||||
BuildRequires: oro
|
BuildRequires: oro
|
||||||
BuildConflicts: java-devel >= 14
|
|
||||||
Provides: ivy = %{version}-%{release}
|
Provides: ivy = %{version}-%{release}
|
||||||
Obsoletes: ivy < %{version}-%{release}
|
Obsoletes: ivy < %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with pack200}
|
||||||
|
BuildRequires: pack200
|
||||||
|
%else
|
||||||
|
BuildConflicts: java-devel >= 14
|
||||||
|
%endif
|
||||||
%if %{with vfs}
|
%if %{with vfs}
|
||||||
BuildRequires: apache-commons-vfs2
|
BuildRequires: apache-commons-vfs2
|
||||||
%endif
|
%endif
|
||||||
@ -117,21 +123,26 @@ rm src/java/org/apache/ivy/plugins/resolver/SFTPResolver.java
|
|||||||
rm src/java/org/apache/ivy/plugins/resolver/SshResolver.java
|
rm src/java/org/apache/ivy/plugins/resolver/SshResolver.java
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with pack200}
|
||||||
|
%pom_add_dep io.pack200:pack200:14:provided
|
||||||
|
%patch2 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Craft class path
|
# Craft class path
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib ant ant/ant-nodeps jsch bcprov bcpg
|
build-jar-repository -s lib ant ant/ant-nodeps jsch bcprov bcpg
|
||||||
export CLASSPATH=$(build-classpath ant ant/ant-nodeps jsch httpcomponents bcprov bcpg)
|
export CLASSPATH=$(build-classpath ant ant/ant-nodeps jsch httpcomponents bcprov bcpg)
|
||||||
%if %{with httpclient}
|
%if %{with httpclient}
|
||||||
build-jar-repository lib httpcomponents
|
build-jar-repository -s lib httpcomponents
|
||||||
export CLASSPATH=${CLASSPATH}:$(build-classpath httpcomponents)
|
export CLASSPATH=${CLASSPATH}:$(build-classpath httpcomponents)
|
||||||
%endif
|
%endif
|
||||||
%if %{with oro}
|
%if %{with oro}
|
||||||
build-jar-repository lib oro
|
build-jar-repository -s lib oro
|
||||||
export CLASSPATH=${CLASSPATH}:$(build-classpath oro)
|
export CLASSPATH=${CLASSPATH}:$(build-classpath oro)
|
||||||
%endif
|
%endif
|
||||||
%if %{with vfs}
|
%if %{with vfs}
|
||||||
build-jar-repository lib commons-vfs2
|
build-jar-repository -s lib commons-vfs2
|
||||||
export CLASSPATH=${CLASSPATH}:$(build-classpath commons-vfs2)
|
export CLASSPATH=${CLASSPATH}:$(build-classpath commons-vfs2)
|
||||||
%endif
|
%endif
|
||||||
%if %{with sftp}
|
%if %{with sftp}
|
||||||
@ -140,6 +151,10 @@ build-jar-repository -s lib jsch.agentproxy.core \
|
|||||||
jsch.agentproxy.jsch
|
jsch.agentproxy.jsch
|
||||||
export CLASSPATH=${CLASSPATH}:$(build-classpath jsch.agentproxy.core jsch.agentproxy.connector-factory jsch.agentproxy.jsch)
|
export CLASSPATH=${CLASSPATH}:$(build-classpath jsch.agentproxy.core jsch.agentproxy.connector-factory jsch.agentproxy.jsch)
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with pack200}
|
||||||
|
build-jar-repository -s lib pack200
|
||||||
|
export CLASSPATH=${CLASSPATH}:$(build-classpath pack200)
|
||||||
|
%endif
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
%{ant} -v -Dtarget.ivy.version=%{version} -Dbundle.version=%{version} /localivy /offline jar javadoc
|
%{ant} -v -Dtarget.ivy.version=%{version} -Dbundle.version=%{version} /localivy /offline jar javadoc
|
||||||
|
Loading…
Reference in New Issue
Block a user