2009-05-01 12:01:21 +00:00
|
|
|
#
|
2012-10-17 05:13:45 +00:00
|
|
|
# spec file for package jsch
|
2009-05-01 12:01:21 +00:00
|
|
|
#
|
2020-04-07 13:53:37 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2009-05-01 12:01:21 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-20 12:18:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-01 12:01:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jsch
|
2020-04-07 14:04:23 +00:00
|
|
|
Version: 0.1.55
|
2012-10-17 05:13:45 +00:00
|
|
|
Release: 0
|
2009-05-01 12:01:21 +00:00
|
|
|
Summary: Pure Java implementation of SSH2
|
2011-12-06 17:20:52 +00:00
|
|
|
License: BSD-3-Clause
|
2012-10-17 05:13:45 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-04-07 13:53:37 +00:00
|
|
|
URL: https://www.jcraft.com/jsch/
|
|
|
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
|
|
|
|
Source1: https://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
|
2014-06-17 15:50:49 +00:00
|
|
|
Source2: plugin.properties
|
2017-09-08 08:30:48 +00:00
|
|
|
Patch0: jsch-0.1.54-sourcetarget.patch
|
2020-04-07 13:53:37 +00:00
|
|
|
Patch1: jsch-osgi-manifest.patch
|
2012-10-17 05:13:45 +00:00
|
|
|
BuildRequires: ant
|
2020-04-07 13:53:37 +00:00
|
|
|
BuildRequires: fdupes
|
2017-06-09 10:58:07 +00:00
|
|
|
BuildRequires: java-devel >= 1.6.0
|
2017-05-19 10:12:13 +00:00
|
|
|
BuildRequires: javapackages-local
|
2009-05-01 12:01:21 +00:00
|
|
|
BuildRequires: jzlib
|
|
|
|
BuildRequires: unzip
|
2014-06-17 15:50:49 +00:00
|
|
|
BuildRequires: zip
|
|
|
|
Requires: jzlib
|
|
|
|
BuildArch: noarch
|
2009-05-01 12:01:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Pure Java implementation of SSH2
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Summary: Pure Java implementation of SSH2
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-09-08 08:30:48 +00:00
|
|
|
%patch0 -p1
|
2020-04-07 13:53:37 +00:00
|
|
|
%patch1 -p1
|
|
|
|
cp %{SOURCE1} pom.xml
|
|
|
|
%pom_remove_parent
|
2009-05-01 12:01:21 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=$(build-classpath jzlib)
|
2014-06-17 15:50:49 +00:00
|
|
|
ant dist javadoc
|
2009-05-01 12:01:21 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-17 15:50:49 +00:00
|
|
|
# inject the OSGi Manifest
|
|
|
|
cp %{SOURCE2} plugin.properties
|
2020-04-07 13:53:37 +00:00
|
|
|
jar uf dist/lib/%{name}-*.jar plugin.properties
|
2014-06-17 15:50:49 +00:00
|
|
|
|
2009-05-01 12:01:21 +00:00
|
|
|
# jars
|
2020-04-07 13:53:37 +00:00
|
|
|
install -Dpm 644 dist/lib/%{name}-*.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
2014-06-17 15:50:49 +00:00
|
|
|
|
2009-05-01 12:01:21 +00:00
|
|
|
# javadoc
|
2020-04-07 13:53:37 +00:00
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2014-06-17 15:50:49 +00:00
|
|
|
|
2009-05-01 12:01:21 +00:00
|
|
|
# examples
|
|
|
|
install -dm 755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -pr examples/* %{buildroot}%{_datadir}/%{name}
|
2020-04-07 13:53:37 +00:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
2009-05-01 12:01:21 +00:00
|
|
|
|
2020-04-07 13:53:37 +00:00
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
2009-05-01 12:01:21 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|