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