Blame SPECS/maven-wagon.spec

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