diff --git a/MANIFEST.MF b/MANIFEST.MF new file mode 100644 index 0000000000000000000000000000000000000000..b0fbaba45ed1ffa4f871b8ff718cccca1a62f8e2 --- /dev/null +++ b/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %bundleName +Bundle-SymbolicName: com.jcraft.jsch +Bundle-Version: 0.1.54 +Bundle-Vendor: %venderName +Bundle-Localization: plugin +Export-Package: com.jcraft.jsch;version="0.1.54", + com.jcraft.jsch.jce;version="0.1.54";x-internal:=true, + com.jcraft.jsch.jcraft;version="0.1.54";x-internal:=true, + com.jcraft.jsch.jgss;version="0.1.54";x-internal:=true +Bundle-RequiredExecutionEnvironment: J2SE-1.4 +Created-By: 1.4.0 (Sun Microsystems Inc.) + + diff --git a/jsch-0.1.54.zip b/jsch-0.1.54.zip new file mode 100644 index 0000000000000000000000000000000000000000..37e74bd6e0a2bccd1dc2aa20572b64de5e7cd68e Binary files /dev/null and b/jsch-0.1.54.zip differ diff --git a/jsch.spec b/jsch.spec new file mode 100644 index 0000000000000000000000000000000000000000..3d7fcb85f57a634bf15aded8e77550de6553d3d1 --- /dev/null +++ b/jsch.spec @@ -0,0 +1,59 @@ +Name: jsch +Version: 0.1.54 +Release: 9 +Summary: A Pure Java implementation of SSH2 +License: BSD +URL: http://www.jcraft.com/jsch/ +BuildArch: noarch +Source0: http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip +Source1: MANIFEST.MF +Source2: plugin.properties +BuildRequires: maven-local mvn(com.jcraft:jzlib) mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) zip +Requires: jzlib >= 0:1.0.5 +Obsoletes: %{name}-demo < %{version} + +%description +JSch is a pure Java implementation of SSH2. JSch allows you to +connect to an sshd server and use port forwarding, X11 forwarding, +file transfer, etc., and you can integrate its functionality +into your own Java programs. JSch is licensed under BSD style license. + +%package help +Summary: This package contains help documents +Requires: %{name} = %{version}-%{release} +Provides: jsch-javadoc = %{version}-%{release} +Obsoletes: jsch-javadoc < %{version}-%{release} + +%description help +Files for help with jsch. + +%prep +%autosetup -n %{name}-%{version} -p1 +%mvn_file : jsch +%pom_remove_plugin :maven-javadoc-plugin +%pom_xpath_remove pom:project/pom:build/pom:extensions +%pom_xpath_set pom:project/pom:version %{version} +%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:target' + +%build +%mvn_build +install -d META-INF +install -D %{SOURCE1} META-INF +install -D %{SOURCE2} plugin.properties +touch META-INF/MANIFEST.MF +touch plugin.properties +zip target/%{name}-%{version}.jar META-INF/MANIFEST.MF +zip target/%{name}-%{version}.jar plugin.properties + +%install +%mvn_install + +%files -f .mfiles +%doc LICENSE.txt + +%files help -f .mfiles-javadoc + +%changelog +* Thu Dec 12 2019 gulining - 0.1.54-8 +- Pakcage init diff --git a/plugin.properties b/plugin.properties new file mode 100644 index 0000000000000000000000000000000000000000..a0f0aaae159c805c0107afd348b5f2f9c36d4d60 --- /dev/null +++ b/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# Copyright (c) 2006 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Atsuhiko Yamanaka, JCraft,Inc. - initial API and implementation. +# IBM Corporation - implementation +############################################################################### +venderName=JCraft, Inc. +bundleName=JSch