e5aee1
%global bname     wagon
e5aee1
e5aee1
Name:           maven-%{bname}
e5aee1
Version:        2.4
e5aee1
Release:        3%{?dist}
e5aee1
Epoch:          0
e5aee1
Summary:        Tools to manage artifacts and deployment
e5aee1
License:        ASL 2.0
e5aee1
URL:            http://maven.apache.org/wagon
e5aee1
Source0:        http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/%{version}/wagon-%{version}-source-release.zip
e5aee1
e5aee1
Patch0:         0001-Port-to-jetty-9.patch
e5aee1
e5aee1
BuildArch:      noarch
e5aee1
e5aee1
BuildRequires:  maven-local
e5aee1
BuildRequires:  mvn(com.jcraft:jsch)
e5aee1
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
e5aee1
BuildRequires:  mvn(commons-io:commons-io)
e5aee1
BuildRequires:  mvn(commons-lang:commons-lang)
e5aee1
BuildRequires:  mvn(commons-logging:commons-logging)
e5aee1
BuildRequires:  mvn(commons-net:commons-net)
e5aee1
BuildRequires:  mvn(easymock:easymock)
e5aee1
BuildRequires:  mvn(junit:junit)
e5aee1
BuildRequires:  mvn(log4j:log4j)
e5aee1
BuildRequires:  mvn(nekohtml:nekohtml)
e5aee1
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
e5aee1
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
e5aee1
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
e5aee1
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
e5aee1
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-api)
e5aee1
BuildRequires:  mvn(org.apache.maven:maven-parent)
e5aee1
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
e5aee1
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
e5aee1
BuildRequires:  mvn(org.codehaus.plexus:plexus-interactivity-api)
e5aee1
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
e5aee1
BuildRequires:  mvn(org.eclipse.jetty:jetty-client)
e5aee1
BuildRequires:  mvn(org.eclipse.jetty:jetty-security)
e5aee1
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
e5aee1
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
e5aee1
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
e5aee1
BuildRequires:  mvn(org.jsoup:jsoup)
e5aee1
BuildRequires:  mvn(org.slf4j:slf4j-api)
e5aee1
BuildRequires:  mvn(xerces:xercesImpl)
e5aee1
e5aee1
Obsoletes:      maven-wagon-manual < %{epoch}:%{version}-%{release}
e5aee1
e5aee1
%description
e5aee1
Maven Wagon is a transport abstraction that is used in Maven's
e5aee1
artifact and repository handling code. Currently wagon has the
e5aee1
following providers:
e5aee1
* File
e5aee1
* HTTP
e5aee1
* FTP
e5aee1
* SSH/SCP
e5aee1
* WebDAV
e5aee1
* SCM (in progress)
e5aee1
e5aee1
%package provider-test
e5aee1
Summary:        provider-test module for %{name}
e5aee1
e5aee1
%description provider-test
e5aee1
provider-test module for %{name}.
e5aee1
e5aee1
%package scm
e5aee1
Summary:        scm module for %{name}
e5aee1
e5aee1
%description scm
e5aee1
scm module for %{name}.
e5aee1
e5aee1
%package javadoc
e5aee1
Summary:        Javadoc for %{name}
e5aee1
e5aee1
%description javadoc
e5aee1
Javadoc for %{name}.
e5aee1
e5aee1
%prep
e5aee1
%setup -q -n wagon-%{version}
e5aee1
e5aee1
%patch0 -p1
e5aee1
e5aee1
%pom_remove_plugin :animal-sniffer-maven-plugin
e5aee1
%pom_remove_dep :wagon-tck-http wagon-providers/wagon-http
e5aee1
e5aee1
%pom_remove_dep :xercesMinimal wagon-providers/wagon-http-shared
e5aee1
%pom_xpath_inject "pom:dependencies" \
e5aee1
   "<dependency>
e5aee1
      <groupId>xerces</groupId>
e5aee1
      <artifactId>xercesImpl</artifactId>
e5aee1
    </dependency>" wagon-providers/wagon-http-shared
e5aee1
e5aee1
# correct groupId for jetty
e5aee1
%pom_xpath_replace "pom:groupId[text()='org.mortbay.jetty']" "<groupId>org.eclipse.jetty</groupId>"
e5aee1
e5aee1
# disable tests, missing dependencies
e5aee1
%pom_disable_module wagon-tcks
e5aee1
%pom_disable_module wagon-ssh-common-test wagon-providers/pom.xml
e5aee1
e5aee1
# missing dependencies
e5aee1
%pom_disable_module wagon-webdav-jackrabbit wagon-providers
e5aee1
e5aee1
%build
e5aee1
%mvn_file ":wagon-{*}" %{name}/@1
e5aee1
e5aee1
# wagon-provider-test has dependency on jetty
e5aee1
%mvn_package ":wagon-provider-test" provider-test
e5aee1
# scm module has a lot of dependencies
e5aee1
%mvn_package ":wagon-scm" scm
e5aee1
e5aee1
# tests are disabled because of missing dependencies
e5aee1
%mvn_build -f
e5aee1
e5aee1
# Maven requires Wagon HTTP with classifier "shaded"
e5aee1
%mvn_alias :wagon-http :::shaded:
e5aee1
e5aee1
%install
e5aee1
%mvn_install
e5aee1
e5aee1
%files -f .mfiles
e5aee1
%doc LICENSE NOTICE DEPENDENCIES
e5aee1
%files provider-test -f .mfiles-provider-test
e5aee1
%files scm -f .mfiles-scm
e5aee1
%files javadoc -f .mfiles-javadoc
e5aee1
%doc LICENSE NOTICE DEPENDENCIES
e5aee1
e5aee1
%changelog
e5aee1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 02.4-3
e5aee1
- Mass rebuild 2013-12-27
e5aee1
e5aee1
* Mon Sep 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4-2.2
e5aee1
- Add shaded alias for wagon-http
e5aee1
e5aee1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4-2
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5aee1
e5aee1
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4-2
e5aee1
- Rebuild to regenerate API documentation
e5aee1
- Resolves: CVE-2013-1571
e5aee1
e5aee1
* Fri Mar 01 2013 Michal Srb <msrb@redhat.com> - 0:2.4-1
e5aee1
- Port to jetty 9
e5aee1
e5aee1
* Thu Feb 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4-1
e5aee1
- Simplify build-requires
e5aee1
e5aee1
* Thu Feb 14 2013 Michal Srb <msrb@redhat.com> - 0:2.4-1
e5aee1
- Update to latest upstream 2.4
e5aee1
- Remove old depmap and patches
e5aee1
- Build with xmvn
e5aee1
e5aee1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-8
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e5aee1
e5aee1
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.0-7
e5aee1
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
e5aee1
- Replace maven BuildRequires with maven-local
e5aee1
e5aee1
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.0-6
e5aee1
- Remove BR: ganymed-ssh2
e5aee1
e5aee1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-5
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e5aee1
e5aee1
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-4
e5aee1
- Fix build against jetty 8 and servlet 3.
e5aee1
e5aee1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-3
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e5aee1
e5aee1
* Wed Jul 27 2011 Jaromir Capik <jcapik@redhat.com> - 0:1.0-2
e5aee1
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
e5aee1
e5aee1
* Wed Jul 27 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-1
e5aee1
- Update to 1.0 final.
e5aee1
e5aee1
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.3.b7.22
e5aee1
- Install wagon-providers depmap too.
e5aee1
e5aee1
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.3.b7.21
e5aee1
- Install wagon pom depmap.
e5aee1
- Use maven 3 for build.
e5aee1
e5aee1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.b7.1
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e5aee1
e5aee1
* Mon Dec 13 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b7.1
e5aee1
- Update to beta 7.
e5aee1
- Adapt to current guidelines.
e5aee1
- Fix pom names.
e5aee1
e5aee1
* Thu Sep 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b6.3
e5aee1
- Use javadoc:aggregate.
e5aee1
- Drop ant build.
e5aee1
- Use global instead of define.
e5aee1
e5aee1
* Fri May 14 2010 Yong Yang <yyang@redhat.com> 0:1.0-0.2.b6.2
e5aee1
- Create patch for wagon-http-shared pom.xml
e5aee1
e5aee1
* Wed May 12 2010 Yong Yang <yyang@redhat.com> 0:1.0-0.2.b6.1
e5aee1
- Update to beta 6, build with with_maven 1
e5aee1
e5aee1
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b2.7
e5aee1
- Remove gcj parts.
e5aee1
e5aee1
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.2.b2.6
e5aee1
- Update to beta2 - sync with jpackage.
e5aee1
e5aee1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.a5.3.5
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e5aee1
e5aee1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.2.a5.3.5
e5aee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e5aee1
e5aee1
* Mon Dec  1 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0:1.0-0.1.a5.3.5
e5aee1
- include missing dir below _docdir
e5aee1
e5aee1
* Fri Oct 03 2008 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3.4
e5aee1
- added patch to make it compatible with the newer version of jsch
e5aee1
e5aee1
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-0.1.a5.3.3
e5aee1
- drop repotag
e5aee1
- fix license tag
e5aee1
e5aee1
* Sat Apr 05 2008 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3jpp.2
e5aee1
- Rebuild with new version of jsch
e5aee1
e5aee1
* Tue Mar 13 2007 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3jpp.1
e5aee1
- Merge in the changes neeeded to build without jetty
e5aee1
- Fix rpmlint issues
e5aee1
- Generate new *-build.xml files from pom.xml files as origins of
e5aee1
  *-project files is unknown.
e5aee1
- Remove maven1 project.xml files from sources
e5aee1
- Comment out various section requiring maven or javadocs
e5aee1
  (to be re-enabled at a future time). Note that the ant:ant task
e5aee1
  for maven2 does not currently generate javadocs.
e5aee1
e5aee1
* Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> - 0:1.0-0.a5.3jpp
e5aee1
- Require j-c-codec, to build with j-c-httpclient = 3.0
e5aee1
e5aee1
* Thu Dec 22 2005 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.a5.2jpp
e5aee1
- Commented out potentially superfluous dependencies.
e5aee1
- Disabled wagon-scm
e5aee1
e5aee1
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.a5.1jpp
e5aee1
- First JPackage build