8fb80c
%bcond_without  scm
8fb80c
%bcond_without  ssh
8fb80c
8fb80c
Name:           maven-wagon
8fb80c
Epoch:          0
8fb80c
Version:        3.1.0
8fb80c
Release:        1%{?dist}
8fb80c
Summary:        Tools to manage artifacts and deployment
8fb80c
License:        ASL 2.0
8fb80c
URL:            http://maven.apache.org/wagon
8fb80c
BuildArch:      noarch
8fb80c
8fb80c
Source0:        http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/%{version}/wagon-%{version}-source-release.zip
8fb80c
8fb80c
BuildRequires:  maven-local
8fb80c
%if %{with ssh}
8fb80c
BuildRequires:  mvn(com.jcraft:jsch)
8fb80c
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.connector-factory)
8fb80c
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.jsch)
8fb80c
%endif
8fb80c
BuildRequires:  mvn(commons-io:commons-io)
8fb80c
BuildRequires:  mvn(commons-net:commons-net)
8fb80c
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
8fb80c
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
8fb80c
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
8fb80c
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
8fb80c
%if %{with scm}
8fb80c
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-api)
8fb80c
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-manager-plexus)
8fb80c
%endif
8fb80c
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
8fb80c
BuildRequires:  mvn(org.codehaus.plexus:plexus-interactivity-api)
8fb80c
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
8fb80c
BuildRequires:  mvn(org.jsoup:jsoup)
8fb80c
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
8fb80c
BuildRequires:  mvn(org.slf4j:slf4j-api)
8fb80c
8fb80c
Obsoletes:      %{name}-manual < %{epoch}:%{version}-%{release}
8fb80c
Obsoletes:      %{name}-provider-test < %{epoch}:%{version}-%{release}
8fb80c
8fb80c
%description
8fb80c
Maven Wagon is a transport abstraction that is used in Maven's
8fb80c
artifact and repository handling code. Currently wagon has the
8fb80c
following providers:
8fb80c
* File
8fb80c
* HTTP
8fb80c
* FTP
8fb80c
* SSH/SCP
8fb80c
* WebDAV
8fb80c
* SCM (in progress)
8fb80c
8fb80c
%package provider-api
8fb80c
Summary:        provider-api module for %{name}
8fb80c
Obsoletes:      %{name} < 2.6-4
8fb80c
Obsoletes:      %{name}-webdav-jackrabbit < 2.9-2
8fb80c
8fb80c
%description provider-api
8fb80c
provider-api module for %{name}.
8fb80c
8fb80c
%package providers
8fb80c
Summary:        providers module for %{name}
8fb80c
8fb80c
%description providers
8fb80c
providers module for %{name}
8fb80c
8fb80c
%package file
8fb80c
Summary:        file module for %{name}
8fb80c
8fb80c
%description file
8fb80c
file module for %{name}.
8fb80c
8fb80c
%package ftp
8fb80c
Summary:        ftp module for %{name}
8fb80c
8fb80c
%description ftp
8fb80c
ftp module for %{name}.
8fb80c
8fb80c
%package http
8fb80c
Summary:        http module for %{name}
8fb80c
8fb80c
%description http
8fb80c
http module for %{name}.
8fb80c
8fb80c
%package http-shared
8fb80c
Summary:        http-shared module for %{name}
8fb80c
8fb80c
%description http-shared
8fb80c
http-shared module for %{name}.
8fb80c
8fb80c
%package http-lightweight
8fb80c
Summary:        http-lightweight module for %{name}
8fb80c
8fb80c
%description http-lightweight
8fb80c
http-lightweight module for %{name}.
8fb80c
8fb80c
%if %{with scm}
8fb80c
%package scm
8fb80c
Summary:        scm module for %{name}
8fb80c
8fb80c
%description scm
8fb80c
scm module for %{name}.
8fb80c
%endif
8fb80c
8fb80c
%if %{with ssh}
8fb80c
%package ssh-external
8fb80c
Summary:        ssh-external module for %{name}
8fb80c
8fb80c
%description ssh-external
8fb80c
ssh-external module for %{name}.
8fb80c
8fb80c
%package ssh-common
8fb80c
Summary:        ssh-common module for %{name}
8fb80c
8fb80c
%description ssh-common
8fb80c
ssh-common module for %{name}.
8fb80c
8fb80c
%package ssh
8fb80c
Summary:        ssh module for %{name}
8fb80c
8fb80c
%description ssh
8fb80c
ssh module for %{name}.
8fb80c
%endif
8fb80c
8fb80c
%package javadoc
8fb80c
Summary:        Javadoc for %{name}
8fb80c
8fb80c
%description javadoc
8fb80c
Javadoc for %{name}.
8fb80c
8fb80c
%prep
8fb80c
%setup -q -n wagon-%{version}
8fb80c
8fb80c
%pom_remove_plugin :animal-sniffer-maven-plugin
8fb80c
%pom_remove_plugin :maven-enforcer-plugin
8fb80c
%pom_remove_dep :wagon-tck-http wagon-providers/wagon-http
8fb80c
8fb80c
# disable tests, missing dependencies
8fb80c
%pom_disable_module wagon-tcks
8fb80c
%pom_disable_module wagon-ssh-common-test wagon-providers/pom.xml
8fb80c
%pom_disable_module wagon-provider-test
8fb80c
%pom_remove_dep :wagon-provider-test
8fb80c
%pom_remove_dep :wagon-provider-test wagon-providers
8fb80c
8fb80c
# missing dependencies
8fb80c
%pom_disable_module wagon-webdav-jackrabbit wagon-providers
8fb80c
8fb80c
%if %{without scm}
8fb80c
%pom_disable_module wagon-scm wagon-providers
8fb80c
%endif
8fb80c
%if %{without ssh}
8fb80c
%pom_disable_module wagon-ssh wagon-providers
8fb80c
%pom_disable_module wagon-ssh-common wagon-providers
8fb80c
%pom_disable_module wagon-ssh-external wagon-providers
8fb80c
%endif
8fb80c
8fb80c
%build
8fb80c
%mvn_file ":wagon-{*}" %{name}/@1
8fb80c
8fb80c
%mvn_package ":wagon"
8fb80c
8fb80c
# tests are disabled because of missing dependencies
8fb80c
%mvn_build -f -s
8fb80c
8fb80c
# Maven requires Wagon HTTP with classifier "shaded"
8fb80c
%mvn_alias :wagon-http :::shaded:
8fb80c
8fb80c
8fb80c
%install
8fb80c
%mvn_install
8fb80c
8fb80c
%files -f .mfiles
8fb80c
%doc LICENSE NOTICE DEPENDENCIES
8fb80c
%files provider-api -f .mfiles-wagon-provider-api
8fb80c
%dir %{_javadir}/%{name}
8fb80c
%files providers -f .mfiles-wagon-providers
8fb80c
%files file -f .mfiles-wagon-file
8fb80c
%files ftp -f .mfiles-wagon-ftp
8fb80c
%files http -f .mfiles-wagon-http
8fb80c
%files http-shared -f .mfiles-wagon-http-shared
8fb80c
%files http-lightweight -f .mfiles-wagon-http-lightweight
8fb80c
%if %{with scm}
8fb80c
%files scm -f .mfiles-wagon-scm
8fb80c
%endif
8fb80c
%if %{with ssh}
8fb80c
%files ssh-external -f .mfiles-wagon-ssh-external
8fb80c
%files ssh-common -f .mfiles-wagon-ssh-common
8fb80c
%files ssh -f .mfiles-wagon-ssh
8fb80c
%endif
8fb80c
8fb80c
%files javadoc -f .mfiles-javadoc
8fb80c
%doc LICENSE NOTICE DEPENDENCIES
8fb80c
8fb80c
%changelog
8fb80c
* Wed Jun 27 2018 Michael Simacek <msimacek@redhat.com> - 0:3.1.0-1
8fb80c
- Update to upstream version 3.1.0
8fb80c
8fb80c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:3.0.0-2
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8fb80c
8fb80c
* Mon Sep 11 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.0.0-1
8fb80c
- Update to upstream version 3.0.0
8fb80c
8fb80c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.10-4
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8fb80c
8fb80c
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 0:2.10-3
8fb80c
- Add conditionals for ssh and scm
8fb80c
- Remove old requires from main package
8fb80c
8fb80c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.10-2
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8fb80c
8fb80c
* Mon Sep 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.10-1
8fb80c
- Update to upstream version 2.10
8fb80c
8fb80c
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 0:2.9-4
8fb80c
- Remove unnecessary BuildRequires
8fb80c
8fb80c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.9-3
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8fb80c
8fb80c
* Tue May 12 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.9-2
8fb80c
- Disable webdav-jackrabbit provides
8fb80c
8fb80c
* Tue Apr 21 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.9-1
8fb80c
- Update to upstream version 2.9
8fb80c
8fb80c
* Wed Nov 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.8-1
8fb80c
- Update to upstream version 2.8
8fb80c
8fb80c
* Wed Sep 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.7-1
8fb80c
- Update to upstream version 2.7
8fb80c
8fb80c
* Thu Aug 21 2014 Michael Simacek <msimacek@redhat.com> - 0:2.6-10
8fb80c
- Enable webdav-jackrabbit module
8fb80c
8fb80c
* Mon Jun 30 2014 Michael Simacek <msimacek@redhat.com> - 0:2.6-9
8fb80c
- Obsolete main package instead of requiring it
8fb80c
8fb80c
* Fri Jun 27 2014 Michael Simacek <msimacek@redhat.com>
8fb80c
- Require main package from provider-api
8fb80c
- Fix maven-parent BR
8fb80c
8fb80c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.6-7
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8fb80c
8fb80c
* Wed May 28 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.6-6
8fb80c
- Rebuild to regenerate Maven auto-requires
8fb80c
8fb80c
* Thu Mar 06 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.6-5
8fb80c
- Use Requires: java-headless rebuild (#1067528)
8fb80c
8fb80c
* Thu Feb 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.6-4
8fb80c
- Add requires on all modules to main package
8fb80c
8fb80c
* Thu Feb 20 2014 Michael Simacek <msimacek@redhat.com> - 0:2.6-3
8fb80c
- Split into subpackages
8fb80c
8fb80c
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.6-2
8fb80c
- Fix unowned directory
8fb80c
8fb80c
* Mon Jan  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.6-1
8fb80c
- Update to upstream version 2.6
8fb80c
8fb80c
* Mon Sep 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.5-2
8fb80c
- Add shaded alias for wagon-http
8fb80c
8fb80c
* Tue Sep 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.5-1
8fb80c
- Update to upstream version 2.5
8fb80c
8fb80c
* Thu Aug 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4-3
8fb80c
- Disable unused wagon-provider-test module
8fb80c
- Resolves: rhbz#1002480
8fb80c
8fb80c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4-2
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8fb80c
8fb80c
* Fri Mar 01 2013 Michal Srb <msrb@redhat.com> - 0:2.4-1
8fb80c
- Port to jetty 9
8fb80c
8fb80c
* Thu Feb 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4-1
8fb80c
- Simplify build-requires
8fb80c
8fb80c
* Thu Feb 14 2013 Michal Srb <msrb@redhat.com> - 0:2.4-1
8fb80c
- Update to latest upstream 2.4
8fb80c
- Remove old depmap and patches
8fb80c
- Build with xmvn
8fb80c
8fb80c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-8
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8fb80c
8fb80c
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.0-7
8fb80c
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
8fb80c
- Replace maven BuildRequires with maven-local
8fb80c
8fb80c
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.0-6
8fb80c
- Remove BR: ganymed-ssh2
8fb80c
8fb80c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-5
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8fb80c
8fb80c
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-4
8fb80c
- Fix build against jetty 8 and servlet 3.
8fb80c
8fb80c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-3
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8fb80c
8fb80c
* Wed Jul 27 2011 Jaromir Capik <jcapik@redhat.com> - 0:1.0-2
8fb80c
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
8fb80c
8fb80c
* Wed Jul 27 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-1
8fb80c
- Update to 1.0 final.
8fb80c
8fb80c
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.3.b7.22
8fb80c
- Install wagon-providers depmap too.
8fb80c
8fb80c
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.3.b7.21
8fb80c
- Install wagon pom depmap.
8fb80c
- Use maven 3 for build.
8fb80c
8fb80c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.b7.1
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8fb80c
8fb80c
* Mon Dec 13 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b7.1
8fb80c
- Update to beta 7.
8fb80c
- Adapt to current guidelines.
8fb80c
- Fix pom names.
8fb80c
8fb80c
* Thu Sep 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b6.3
8fb80c
- Use javadoc:aggregate.
8fb80c
- Drop ant build.
8fb80c
- Use global instead of define.
8fb80c
8fb80c
* Fri May 14 2010 Yong Yang <yyang@redhat.com> 0:1.0-0.2.b6.2
8fb80c
- Create patch for wagon-http-shared pom.xml
8fb80c
8fb80c
* Wed May 12 2010 Yong Yang <yyang@redhat.com> 0:1.0-0.2.b6.1
8fb80c
- Update to beta 6, build with with_maven 1
8fb80c
8fb80c
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b2.7
8fb80c
- Remove gcj parts.
8fb80c
8fb80c
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b2.6
8fb80c
- Update to beta2 - sync with jpackage.
8fb80c
8fb80c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.a5.3.5
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8fb80c
8fb80c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.2.a5.3.5
8fb80c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8fb80c
8fb80c
* Mon Dec  1 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0:1.0-0.1.a5.3.5
8fb80c
- include missing dir below _docdir
8fb80c
8fb80c
* Fri Oct 03 2008 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3.4
8fb80c
- added patch to make it compatible with the newer version of jsch
8fb80c
8fb80c
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-0.1.a5.3.3
8fb80c
- drop repotag
8fb80c
- fix license tag
8fb80c
8fb80c
* Sat Apr 05 2008 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3jpp.2
8fb80c
- Rebuild with new version of jsch
8fb80c
8fb80c
* Tue Mar 13 2007 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3jpp.1
8fb80c
- Merge in the changes neeeded to build without jetty
8fb80c
- Fix rpmlint issues
8fb80c
- Generate new *-build.xml files from pom.xml files as origins of
8fb80c
  *-project files is unknown.
8fb80c
- Remove maven1 project.xml files from sources
8fb80c
- Comment out various section requiring maven or javadocs
8fb80c
  (to be re-enabled at a future time). Note that the ant:ant task
8fb80c
  for maven2 does not currently generate javadocs.
8fb80c
8fb80c
* Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> - 0:1.0-0.a5.3jpp
8fb80c
- Require j-c-codec, to build with j-c-httpclient = 3.0
8fb80c
8fb80c
* Thu Dec 22 2005 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.a5.2jpp
8fb80c
- Commented out potentially superfluous dependencies.
8fb80c
- Disabled wagon-scm
8fb80c
8fb80c
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.a5.1jpp
8fb80c
- First JPackage build