commit 3e67c1b163e2178694159aa562f1ecafadc85e1f95b951f05bbf3041109e1421 Author: Fridrich Strba Date: Fri Mar 15 11:21:01 2019 +0000 OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-wagon?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/maven-wagon-build.tar.xz b/maven-wagon-build.tar.xz new file mode 100644 index 0000000..ae10800 --- /dev/null +++ b/maven-wagon-build.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb5b972aacb660a3d03fceb76578de0ed2c7e4cc8e5b78e67d95cbb7fc9469a7 +size 4316 diff --git a/maven-wagon.changes b/maven-wagon.changes new file mode 100644 index 0000000..eed69ba --- /dev/null +++ b/maven-wagon.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Mar 15 11:16:53 UTC 2019 - Fridrich Strba + +- Initial packaging of maven-wagon 3.2.0 +- Generate and customize the ant build files diff --git a/maven-wagon.spec b/maven-wagon.spec new file mode 100644 index 0000000..33434ce --- /dev/null +++ b/maven-wagon.spec @@ -0,0 +1,216 @@ +# +# spec file for package maven-wagon +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: maven-wagon +Version: 3.2.0 +Release: 0 +Summary: Tools to manage artifacts and deployment +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://maven.apache.org/wagon +Source0: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/%{version}/wagon-%{version}-source-release.zip +Source1: %{name}-build.tar.xz +BuildRequires: ant +BuildRequires: apache-commons-io +BuildRequires: apache-commons-net +BuildRequires: fdupes +BuildRequires: httpcomponents-client +BuildRequires: httpcomponents-core +BuildRequires: javapackages-local +BuildRequires: jsoup +BuildRequires: plexus-metadata-generator +BuildRequires: plexus-utils +BuildRequires: slf4j +BuildRequires: unzip +BuildArch: noarch + +%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 +* SSH/SCP +* WebDAV +* SCM (in progress) + +%package provider-api +Summary: The provider-api module for %{name} +Group: Development/Libraries/Java +Requires: mvn(org.codehaus.plexus:plexus-utils) + +%description provider-api +The provider-api module for %{name}. + +%package file +Summary: The file module for %{name} +Group: Development/Libraries/Java +Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version} +Requires: mvn(org.codehaus.plexus:plexus-utils) + +%description file +The file module for %{name}. + +%package ftp +Summary: The ftp module for %{name} +Group: Development/Libraries/Java +Requires: mvn(commons-io:commons-io) +Requires: mvn(commons-net:commons-net) +Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version} +Requires: mvn(org.slf4j:slf4j-api) + +%description ftp +The ftp module for %{name}. + +%package http +Summary: The http module for %{name} +Group: Development/Libraries/Java +Requires: mvn(org.apache.httpcomponents:httpclient) +Requires: mvn(org.apache.httpcomponents:httpcore) +Requires: mvn(org.apache.maven.wagon:wagon-http-shared) = %{version} +Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version} +Requires: mvn(org.codehaus.plexus:plexus-utils) +Requires: mvn(org.slf4j:jcl-over-slf4j) + +%description http +The http module for %{name}. + +%package http-shared +Summary: The http-shared module for %{name} +Group: Development/Libraries/Java +Requires: mvn(commons-io:commons-io) +Requires: mvn(org.apache.httpcomponents:httpclient) +Requires: mvn(org.apache.httpcomponents:httpcore) +Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version} +Requires: mvn(org.jsoup:jsoup) +Requires: mvn(org.slf4j:slf4j-api) + +%description http-shared +The http-shared module for %{name}. + +%package http-lightweight +Summary: The http-lightweight module for %{name} +Group: Development/Libraries/Java +Requires: mvn(commons-io:commons-io) +Requires: mvn(org.apache.maven.wagon:wagon-http-shared) = %{version} +Requires: mvn(org.apache.maven.wagon:wagon-provider-api) = %{version} +Requires: mvn(org.codehaus.plexus:plexus-utils) + +%description http-lightweight +The http-lightweight module for %{name}. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n wagon-%{version} -a1 + +%pom_remove_plugin :animal-sniffer-maven-plugin +%pom_remove_plugin :maven-enforcer-plugin +%pom_remove_dep :wagon-tck-http wagon-providers/wagon-http + +# disable tests, missing dependencies +%pom_disable_module wagon-tcks +%pom_disable_module wagon-ssh-common-test wagon-providers/pom.xml +%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 + +%pom_disable_module wagon-scm wagon-providers + +%pom_disable_module wagon-ssh wagon-providers +%pom_disable_module wagon-ssh-common wagon-providers +%pom_disable_module wagon-ssh-external wagon-providers + +for i in file ftp http http-shared http-lightweight; do + %pom_remove_parent wagon-providers/wagon-${i} + %pom_xpath_inject "pom:project" " + org.apache.maven.wagon + %{version}" wagon-providers/wagon-${i} +done +%pom_remove_parent wagon-provider-api +%pom_xpath_inject "pom:project" " + org.apache.maven.wagon + %{version}" wagon-provider-api + +%build +mkdir -p lib +build-jar-repository -s lib \ + commons-io commons-net \ + httpcomponents/httpclient httpcomponents/httpcore \ + jsoup/jsoup plexus/utils slf4j/api +# tests are disabled because of missing dependencies +%{ant} package javadoc + +%install +# jars +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 wagon-provider-api/target/wagon-provider-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/provider-api.jar +for i in file ftp http http-shared http-lightweight; do + install -pm 0644 wagon-providers/wagon-${i}/target/wagon-${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/${i}.jar +done +# poms +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 wagon-provider-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/provider-api.pom +%add_maven_depmap %{name}/provider-api.pom %{name}/provider-api.jar -f provider-api +for i in file ftp http http-shared http-lightweight; do + install -pm 0644 wagon-providers/wagon-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom + if [ x${i} = xhttp ]; then + # Maven requires Wagon HTTP with classifier "shaded" + %add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -a org.apache.maven.wagon:wagon-http::shaded: -f ${i} + else + %add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f ${i} + fi +done +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/provider-api +cp -pr wagon-provider-api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/provider-api +for i in file ftp http http-shared http-lightweight; do + install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i} + cp -pr wagon-providers/wagon-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/ +done +%fdupes -s %{buildroot}%{_javadocdir} + +%files provider-api -f .mfiles-provider-api +%license LICENSE NOTICE +%doc DEPENDENCIES + +%files file -f .mfiles-file + +%files ftp -f .mfiles-ftp + +%files http -f .mfiles-http + +%files http-shared -f .mfiles-http-shared + +%files http-lightweight -f .mfiles-http-lightweight + +%files javadoc +%license LICENSE NOTICE +%doc DEPENDENCIES +%{_javadocdir}/%{name} + +%changelog diff --git a/wagon-3.2.0-source-release.zip b/wagon-3.2.0-source-release.zip new file mode 100644 index 0000000..002011a --- /dev/null +++ b/wagon-3.2.0-source-release.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f1f3e718c435e7ea3bca6ce777ad22c12f425ea2af1cbd33b8bf9d0f54c0757 +size 623053