79 lines
2.0 KiB
RPMSpec
79 lines
2.0 KiB
RPMSpec
Name: jsch
|
|
Version: 0.1.53
|
|
Release: 3%{?dist}
|
|
Summary: Pure Java implementation of SSH2
|
|
Group: Development/Libraries
|
|
License: BSD
|
|
URL: http://www.jcraft.com/jsch/
|
|
BuildArch: noarch
|
|
|
|
Source0: http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
|
|
# wget \
|
|
# http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/com.jcraft.jsch_0.1.41.v200903070017.jar
|
|
# 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
|
|
Source1: MANIFEST.MF
|
|
Source2: plugin.properties
|
|
|
|
BuildRequires: java-devel
|
|
BuildRequires: jzlib >= 0:1.0.5
|
|
BuildRequires: maven-local
|
|
BuildRequires: zip
|
|
|
|
Requires: jzlib >= 0:1.0.5
|
|
Obsoletes: %{name}-demo < %{version}
|
|
|
|
%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
|
|
%mvn_file : jsch
|
|
|
|
%pom_xpath_remove pom:project/pom:build/pom:extensions
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
# inject the OSGi Manifest
|
|
mkdir META-INF
|
|
cp %{SOURCE1} META-INF
|
|
cp %{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
|
|
%license LICENSE.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.53-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-2
|
|
- Revert jsch.jar to not be in javadir subdir.
|
|
|
|
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-1
|
|
- Update to 0.1.53
|
|
- Build with xmvn.
|