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