!1 jsch: openEuler init

Merge pull request !1 from gu-gu-gu/pravite
This commit is contained in:
openeuler-ci-bot 2019-12-13 11:37:40 +08:00 committed by Gitee
commit d1abf5b104
4 changed files with 87 additions and 0 deletions

15
MANIFEST.MF Normal file
View File

@ -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.)

BIN
jsch-0.1.54.zip Normal file

Binary file not shown.

59
jsch.spec Normal file
View File

@ -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<gulining1@huawei.com> - 0.1.54-8
- Pakcage init

13
plugin.properties Normal file
View File

@ -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