2005-03-10 14:49:52 +00:00
|
|
|
Name: jsch
|
2015-06-05 13:32:12 +00:00
|
|
|
Version: 0.1.53
|
2015-06-05 15:06:22 +00:00
|
|
|
Release: 2%{?dist}
|
2005-03-10 14:49:52 +00:00
|
|
|
Summary: Pure Java implementation of SSH2
|
2010-01-11 16:40:09 +00:00
|
|
|
Group: Development/Libraries
|
2008-05-29 14:26:41 +00:00
|
|
|
License: BSD
|
2005-03-10 14:49:52 +00:00
|
|
|
URL: http://www.jcraft.com/jsch/
|
2014-05-21 16:19:44 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2005-04-22 18:35:54 +00:00
|
|
|
Source0: http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
|
2008-07-14 14:15:31 +00:00
|
|
|
# wget \
|
2010-01-11 16:40:09 +00:00
|
|
|
# http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/com.jcraft.jsch_0.1.41.v200903070017.jar
|
2008-07-14 14:15:31 +00:00
|
|
|
# unzip com.jcraft.jsch_*.jar META-INF/MANIFEST.MF
|
|
|
|
# mv META-INF/MANIFEST.MF .
|
|
|
|
# sed -i "/^Name/d" MANIFEST.MF
|
|
|
|
# sed -i "/^SHA1/d" MANIFEST.MF
|
|
|
|
# dos2unix MANIFEST.MF
|
|
|
|
# sed -i "/^$/d" MANIFEST.MF
|
|
|
|
# unix2dos MANIFEST.MF
|
2007-04-03 04:21:39 +00:00
|
|
|
Source1: MANIFEST.MF
|
2012-03-15 15:33:29 +00:00
|
|
|
Source2: plugin.properties
|
2008-04-07 17:34:57 +00:00
|
|
|
|
2015-06-05 13:32:12 +00:00
|
|
|
BuildRequires: java-devel
|
2005-03-10 14:49:52 +00:00
|
|
|
BuildRequires: jzlib >= 0:1.0.5
|
2015-06-05 13:32:12 +00:00
|
|
|
BuildRequires: maven-local
|
2010-12-07 23:06:22 +00:00
|
|
|
BuildRequires: zip
|
2006-08-04 23:52:07 +00:00
|
|
|
|
2005-03-10 14:49:52 +00:00
|
|
|
Requires: jzlib >= 0:1.0.5
|
2015-06-05 13:32:12 +00:00
|
|
|
Obsoletes: %{name}-demo < %{version}
|
2005-03-10 14:49:52 +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: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-06-05 15:06:22 +00:00
|
|
|
%mvn_file : jsch
|
2005-03-10 14:49:52 +00:00
|
|
|
|
2015-06-05 13:32:12 +00:00
|
|
|
%pom_xpath_remove pom:project/pom:build/pom:extensions
|
|
|
|
|
2005-03-10 14:49:52 +00:00
|
|
|
%build
|
2015-06-05 13:32:12 +00:00
|
|
|
%mvn_build
|
2005-03-10 14:49:52 +00:00
|
|
|
|
2007-04-03 04:21:39 +00:00
|
|
|
# inject the OSGi Manifest
|
|
|
|
mkdir META-INF
|
2007-06-08 04:35:06 +00:00
|
|
|
cp %{SOURCE1} META-INF
|
2012-03-15 15:33:29 +00:00
|
|
|
cp %{SOURCE2} plugin.properties
|
2015-06-05 13:32:12 +00:00
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
touch plugin.properties
|
|
|
|
zip target/%{name}-%{version}.jar META-INF/MANIFEST.MF
|
|
|
|
zip target/%{name}-%{version}.jar plugin.properties
|
2007-04-03 04:21:39 +00:00
|
|
|
|
2005-03-10 14:49:52 +00:00
|
|
|
%install
|
2015-06-05 13:32:12 +00:00
|
|
|
%mvn_install
|
2012-11-01 14:47:37 +00:00
|
|
|
|
2014-05-21 16:19:44 +00:00
|
|
|
%files -f .mfiles
|
2015-06-05 13:32:12 +00:00
|
|
|
%license LICENSE.txt
|
2005-03-10 14:49:52 +00:00
|
|
|
|
2015-06-05 13:32:12 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE.txt
|
2005-03-10 14:49:52 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-06-05 15:06:22 +00:00
|
|
|
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-2
|
|
|
|
- Revert jsch.jar to not be in javadir subdir.
|
|
|
|
|
2015-06-05 13:32:12 +00:00
|
|
|
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-1
|
|
|
|
- Update to 0.1.53
|
|
|
|
- Build with xmvn.
|