Blame SPECS/maven-wagon.spec

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