Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37634146
en ru br
ALT Linux repos
S:0.1.55-alt1_7jpp11
5.0: 0.1.39-alt1_1.1jpp5
4.1: 0.1.31-alt1_1.2jpp1.7
4.0: 0.1.31-alt1_1.2jpp1.7
3.0: 0.1.18-alt1

Group :: System/Libraries
RPM: jsch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: jsch
Version: 0.1.18
Release: alt1

%def_without origsrc

Summary: Java implementation of SSH2
Group: System/Libraries
License: BSD-style
URL: http://www.jcraft.com/jsch/

%define javadocdir      %_datadir/javadoc

%if_with origsrc
Source: %name-%version.zip
%else
Source: %name-%version.tar.bz2
%endif

BuildArch: noarch

BuildPreReq: rpm-build-java
BuildRequires: ant
BuildRequires: j2se-devel >= 1.4

%description
JSch is a pure Java implementation of SSH2, a secure remote shell protocol.
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: Javadoc for %name
Group: Development/Java

%description javadoc
Javadoc-generated API documentation for JSch, a pure Java
implementation of SSH2.

%package demo
Summary: Examples for %name
Group: Development/Java
Requires: %name = %version-%release

%description demo
Examples demonstrating how to use JSch, a pure Java
implementation of SSH2.

%prep
%setup -q

%build
%ant_build \
%if_enabled debug
   -Djavac.debug=true \
%endif
   dist javadoc examples

%install
# jar
%__mkdir_p %buildroot%_javadir
%__install -p -m644 dist/lib/%name-*.jar %buildroot%_javadir/%name.jar

# javadoc

%__install -d -m755 %buildroot%_javadocdir/%name
%__cp -a javadoc/* %buildroot%_javadocdir/%name/

# demo

%__install -d -m755 %buildroot%_datadir/%name
cp -a examples %buildroot%_datadir/%name/

%files
%doc README LICENSE.txt ChangeLog
%_javadir/*

%files javadoc
%_javadocdir/%name

%files demo
%_datadir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin