2009-05-01 14:01:21 +02:00
|
|
|
#
|
2012-10-17 07:13:45 +02:00
|
|
|
# spec file for package jsch
|
2009-05-01 14:01:21 +02:00
|
|
|
#
|
2019-09-20 14:18:40 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-01 14:01:21 +02: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 14:18:40 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-01 14:01:21 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jsch
|
2017-02-13 11:03:28 +01:00
|
|
|
Version: 0.1.54
|
2012-10-17 07:13:45 +02:00
|
|
|
Release: 0
|
2009-05-01 14:01:21 +02:00
|
|
|
Summary: Pure Java implementation of SSH2
|
2011-12-06 18:20:52 +01:00
|
|
|
License: BSD-3-Clause
|
2012-10-17 07:13:45 +02:00
|
|
|
Group: Development/Libraries/Java
|
2009-05-01 14:01:21 +02:00
|
|
|
Url: http://www.jcraft.com/jsch/
|
2014-06-17 17:50:49 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
|
|
|
|
Source1: MANIFEST.MF
|
|
|
|
Source2: plugin.properties
|
|
|
|
Source3: http://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
|
2017-09-08 10:30:48 +02:00
|
|
|
Patch0: jsch-0.1.54-sourcetarget.patch
|
2012-10-17 07:13:45 +02:00
|
|
|
BuildRequires: ant
|
2017-06-09 12:58:07 +02:00
|
|
|
BuildRequires: java-devel >= 1.6.0
|
2017-05-19 12:12:13 +02:00
|
|
|
BuildRequires: javapackages-local
|
2009-05-01 14:01:21 +02:00
|
|
|
BuildRequires: jzlib
|
|
|
|
BuildRequires: unzip
|
2014-06-17 17:50:49 +02:00
|
|
|
BuildRequires: zip
|
|
|
|
Requires: jzlib
|
2009-05-01 14:01:21 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-06-17 17:50:49 +02:00
|
|
|
BuildArch: noarch
|
2009-05-01 14:01:21 +02: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 10:30:48 +02:00
|
|
|
%patch0 -p1
|
2019-09-20 14:18:40 +02:00
|
|
|
cp %{SOURCE3} pom.xml
|
|
|
|
%pom_remove_parent
|
2009-05-01 14:01:21 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=$(build-classpath jzlib)
|
2014-06-17 17:50:49 +02:00
|
|
|
ant dist javadoc
|
2009-05-01 14:01:21 +02:00
|
|
|
|
|
|
|
%install
|
2014-06-17 17:50:49 +02:00
|
|
|
# inject the OSGi Manifest
|
|
|
|
mkdir META-INF
|
|
|
|
cp %{SOURCE1} META-INF
|
|
|
|
cp %{SOURCE2} plugin.properties
|
|
|
|
zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF
|
|
|
|
zip dist/lib/%{name}-*.jar plugin.properties
|
|
|
|
|
2009-05-01 14:01:21 +02:00
|
|
|
# jars
|
|
|
|
install -Dpm 644 dist/lib/%{name}-*.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2014-06-17 17:50:49 +02:00
|
|
|
|
2009-05-01 14:01:21 +02:00
|
|
|
# javadoc
|
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
2014-06-17 17:50:49 +02:00
|
|
|
|
2009-05-01 14:01:21 +02:00
|
|
|
# examples
|
|
|
|
install -dm 755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -pr examples/* %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
2014-06-17 17:50:49 +02:00
|
|
|
# POM and depmap
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2019-09-20 14:18:40 +02:00
|
|
|
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2014-06-17 17:50:49 +02:00
|
|
|
%add_maven_depmap
|
2009-05-01 14:01:21 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
2014-06-17 17:50:49 +02:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2017-02-13 11:03:28 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml
|
2009-05-01 14:01:21 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|