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