Sync from SUSE:SLFO:Main maven-wagon revision 249e581049002a9708e1ef558c073fcd
This commit is contained in:
parent
9548f8027a
commit
5ee9dc0d58
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 21 22:10:46 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Clean the spec file and simplify it a bit
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 3 11:20:51 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
Wed May 3 11:20:51 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package maven-wagon
|
# spec file for package maven-wagon
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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
|
||||||
@ -31,7 +31,7 @@ BuildRequires: apache-commons-net
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: httpcomponents-client
|
BuildRequires: httpcomponents-client
|
||||||
BuildRequires: httpcomponents-core
|
BuildRequires: httpcomponents-core
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: jsch
|
BuildRequires: jsch
|
||||||
BuildRequires: jsch-agent-proxy-connector-factory
|
BuildRequires: jsch-agent-proxy-connector-factory
|
||||||
BuildRequires: jsch-agent-proxy-jsch
|
BuildRequires: jsch-agent-proxy-jsch
|
||||||
@ -57,7 +57,6 @@ following providers:
|
|||||||
%package provider-api
|
%package provider-api
|
||||||
Summary: The provider-api module for %{name}
|
Summary: The provider-api module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description provider-api
|
%description provider-api
|
||||||
The provider-api module for %{name}.
|
The provider-api module for %{name}.
|
||||||
@ -65,8 +64,6 @@ The provider-api module for %{name}.
|
|||||||
%package file
|
%package file
|
||||||
Summary: The file module for %{name}
|
Summary: The file module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description file
|
%description file
|
||||||
The file module for %{name}.
|
The file module for %{name}.
|
||||||
@ -74,10 +71,6 @@ The file module for %{name}.
|
|||||||
%package ftp
|
%package ftp
|
||||||
Summary: The ftp module for %{name}
|
Summary: The ftp module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(commons-io:commons-io)
|
|
||||||
Requires: mvn(commons-net:commons-net)
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.slf4j:slf4j-api)
|
|
||||||
|
|
||||||
%description ftp
|
%description ftp
|
||||||
The ftp module for %{name}.
|
The ftp module for %{name}.
|
||||||
@ -85,12 +78,6 @@ The ftp module for %{name}.
|
|||||||
%package http
|
%package http
|
||||||
Summary: The http module for %{name}
|
Summary: The http module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.apache.httpcomponents:httpclient)
|
|
||||||
Requires: mvn(org.apache.httpcomponents:httpcore)
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-http-shared) = %{version}
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
Requires: mvn(org.slf4j:jcl-over-slf4j)
|
|
||||||
|
|
||||||
%description http
|
%description http
|
||||||
The http module for %{name}.
|
The http module for %{name}.
|
||||||
@ -98,12 +85,6 @@ The http module for %{name}.
|
|||||||
%package http-shared
|
%package http-shared
|
||||||
Summary: The http-shared module for %{name}
|
Summary: The http-shared module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(commons-io:commons-io)
|
|
||||||
Requires: mvn(org.apache.httpcomponents:httpclient)
|
|
||||||
Requires: mvn(org.apache.httpcomponents:httpcore)
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.jsoup:jsoup)
|
|
||||||
Requires: mvn(org.slf4j:slf4j-api)
|
|
||||||
|
|
||||||
%description http-shared
|
%description http-shared
|
||||||
The http-shared module for %{name}.
|
The http-shared module for %{name}.
|
||||||
@ -111,10 +92,6 @@ The http-shared module for %{name}.
|
|||||||
%package http-lightweight
|
%package http-lightweight
|
||||||
Summary: The http-lightweight module for %{name}
|
Summary: The http-lightweight module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(commons-io:commons-io)
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-http-shared) = %{version}
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description http-lightweight
|
%description http-lightweight
|
||||||
The http-lightweight module for %{name}.
|
The http-lightweight module for %{name}.
|
||||||
@ -122,9 +99,6 @@ The http-lightweight module for %{name}.
|
|||||||
%package ssh-common
|
%package ssh-common
|
||||||
Summary: The ssh-common module for %{name}
|
Summary: The ssh-common module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-interactivity-api)
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description ssh-common
|
%description ssh-common
|
||||||
The ssh-common module for %{name}
|
The ssh-common module for %{name}
|
||||||
@ -132,13 +106,6 @@ The ssh-common module for %{name}
|
|||||||
%package ssh
|
%package ssh
|
||||||
Summary: The ssh module for %{name}
|
Summary: The ssh module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(com.jcraft:jsch)
|
|
||||||
Requires: mvn(com.jcraft:jsch.agentproxy.connector-factory)
|
|
||||||
Requires: mvn(com.jcraft:jsch.agentproxy.jsch)
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-ssh-common) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-interactivity-api)
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description ssh
|
%description ssh
|
||||||
The ssh module for %{name}
|
The ssh module for %{name}
|
||||||
@ -146,9 +113,6 @@ The ssh module for %{name}
|
|||||||
%package ssh-external
|
%package ssh-external
|
||||||
Summary: The ssh-external module for %{name}
|
Summary: The ssh-external module for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version}
|
|
||||||
Requires: mvn(org.apache.maven.wagon:wagon-ssh-common) = %{version}
|
|
||||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
|
||||||
|
|
||||||
%description ssh-external
|
%description ssh-external
|
||||||
The ssh-external module for %{name}
|
The ssh-external module for %{name}
|
||||||
@ -179,19 +143,6 @@ Javadoc for %{name}.
|
|||||||
|
|
||||||
%pom_disable_module wagon-scm wagon-providers
|
%pom_disable_module wagon-scm wagon-providers
|
||||||
|
|
||||||
for i in file ftp http http-shared http-lightweight ssh-common ssh ssh-external; do
|
|
||||||
%pom_remove_parent wagon-providers/wagon-${i}
|
|
||||||
%pom_xpath_inject "pom:project" "
|
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
|
||||||
<version>%{version}</version>" wagon-providers/wagon-${i}
|
|
||||||
done
|
|
||||||
%pom_remove_parent wagon-provider-api
|
|
||||||
%pom_xpath_inject "pom:project" "
|
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
|
||||||
<version>%{version}</version>" wagon-provider-api
|
|
||||||
|
|
||||||
%pom_change_dep -r -f ::::: :::::
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib \
|
build-jar-repository -s lib \
|
||||||
@ -211,10 +162,10 @@ for i in file ftp http http-shared http-lightweight ssh-common ssh ssh-external;
|
|||||||
done
|
done
|
||||||
# poms
|
# poms
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
install -pm 0644 wagon-provider-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/provider-api.pom
|
%{mvn_install_pom} wagon-provider-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/provider-api.pom
|
||||||
%add_maven_depmap %{name}/provider-api.pom %{name}/provider-api.jar -f provider-api
|
%add_maven_depmap %{name}/provider-api.pom %{name}/provider-api.jar -f provider-api
|
||||||
for i in file ftp http http-shared http-lightweight ssh-common ssh ssh-external; do
|
for i in file ftp http http-shared http-lightweight ssh-common ssh ssh-external; do
|
||||||
install -pm 0644 wagon-providers/wagon-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
%{mvn_install_pom} wagon-providers/wagon-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||||
if [ x${i} = xhttp ]; then
|
if [ x${i} = xhttp ]; then
|
||||||
# Maven requires Wagon HTTP with classifier "shaded"
|
# Maven requires Wagon HTTP with classifier "shaded"
|
||||||
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -a org.apache.maven.wagon:wagon-http::shaded: -f ${i}
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -a org.apache.maven.wagon:wagon-http::shaded: -f ${i}
|
||||||
|
Loading…
Reference in New Issue
Block a user